DwmApiDwmUpdateThumbnailProperties Method
Updates the properties for a Desktop Window Manager (DWM) thumbnail.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DwmApi.dll", SetLastError = true)]
public static HResult DwmUpdateThumbnailProperties(
IntPtr thumbnailId,
ref DwmThumbnailProperties refThumbnailProperties
)
<DllImportAttribute("DwmApi.dll", SetLastError := true>]
Public Shared Function DwmUpdateThumbnailProperties (
thumbnailId As IntPtr,
ByRef refThumbnailProperties As DwmThumbnailProperties
) As HResult
Dim thumbnailId As IntPtr
Dim refThumbnailProperties As DwmThumbnailProperties
Dim returnValue As HResult
returnValue = DwmApi.DwmUpdateThumbnailProperties(thumbnailId,
refThumbnailProperties)
public:
[DllImportAttribute(L"DwmApi.dll", SetLastError = true)]
static HResult DwmUpdateThumbnailProperties(
IntPtr thumbnailId,
DwmThumbnailProperties% refThumbnailProperties
)
[<DllImportAttribute("DwmApi.dll", SetLastError = true)>]
static member DwmUpdateThumbnailProperties :
thumbnailId : IntPtr *
refThumbnailProperties : DwmThumbnailProperties byref -> HResult
No code example is currently available or this language may not be supported.
- thumbnailId IntPtr
-
The handle to the DWM thumbnail to be updated.
A value of Zero or invalid thumbnail handles,
as well as thumbnails owned by other processes will result in a return value of E_INVALIDARG.
- refThumbnailProperties DwmThumbnailProperties
-
A pointer to a DwmThumbnailProperties structure that contains the new thumbnail properties.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.