DwmApiDwmQueryThumbnailSourceSize Method
Retrieves the source size of the 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 DwmQueryThumbnailSourceSize(
IntPtr thumbnailId,
out NativeSize refSize
)
<DllImportAttribute("DwmApi.dll", SetLastError := true>]
Public Shared Function DwmQueryThumbnailSourceSize (
thumbnailId As IntPtr,
<OutAttribute> ByRef refSize As NativeSize
) As HResult
Dim thumbnailId As IntPtr
Dim refSize As NativeSize
Dim returnValue As HResult
returnValue = DwmApi.DwmQueryThumbnailSourceSize(thumbnailId,
refSize)
public:
[DllImportAttribute(L"DwmApi.dll", SetLastError = true)]
static HResult DwmQueryThumbnailSourceSize(
IntPtr thumbnailId,
[OutAttribute] NativeSize% refSize
)
[<DllImportAttribute("DwmApi.dll", SetLastError = true)>]
static member DwmQueryThumbnailSourceSize :
thumbnailId : IntPtr *
refSize : NativeSize byref -> HResult
No code example is currently available or this language may not be supported.
- thumbnailId IntPtr
-
A handle to the thumbnail to retrieve the source window size from.
- refSize NativeSize
-
A pointer to a NativeSize structure that, when this function returns successfully,
receives the size of the source thumbnail.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.