DwmApiDwmRegisterThumbnail Method
Creates a Desktop Window Manager (DWM) thumbnail relationship between the destination and source windows.
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 DwmRegisterThumbnail(
IntPtr dstHwnd,
IntPtr srcHwnd,
ref IntPtr refThumbnailId
)
<DllImportAttribute("DwmApi.dll", SetLastError := true>]
Public Shared Function DwmRegisterThumbnail (
dstHwnd As IntPtr,
srcHwnd As IntPtr,
ByRef refThumbnailId As IntPtr
) As HResult
Dim dstHwnd As IntPtr
Dim srcHwnd As IntPtr
Dim refThumbnailId As IntPtr
Dim returnValue As HResult
returnValue = DwmApi.DwmRegisterThumbnail(dstHwnd,
srcHwnd, refThumbnailId)
public:
[DllImportAttribute(L"DwmApi.dll", SetLastError = true)]
static HResult DwmRegisterThumbnail(
IntPtr dstHwnd,
IntPtr srcHwnd,
IntPtr% refThumbnailId
)
[<DllImportAttribute("DwmApi.dll", SetLastError = true)>]
static member DwmRegisterThumbnail :
dstHwnd : IntPtr *
srcHwnd : IntPtr *
refThumbnailId : IntPtr byref -> HResult
No code example is currently available or this language may not be supported.
- dstHwnd IntPtr
-
The handle to the window that will use the DWM thumbnail.
Setting the destination window handle to anything other than a top-level window type will result in a
return value of E_INVALIDARG.
- srcHwnd IntPtr
-
The handle to the window to use as the thumbnail source.
Setting the source window handle to anything other than a top-level window type will result in a
return value of E_INVALIDARG.
- refThumbnailId IntPtr
-
A pointer to a handle that, when this function returns successfully,
represents the registration of the DWM thumbnail.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.