Kernel32SizeofResource(IntPtr, IntPtr) Method
Retrieves the size, in bytes, of the specified resource..
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("Kernel32.dll", SetLastError = true)]
public static uint SizeofResource(
IntPtr hModule,
IntPtr hResInfo
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function SizeofResource (
hModule As IntPtr,
hResInfo As IntPtr
) As UInteger
Dim hModule As IntPtr
Dim hResInfo As IntPtr
Dim returnValue As UInteger
returnValue = Kernel32.SizeofResource(hModule,
hResInfo)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static unsigned int SizeofResource(
IntPtr hModule,
IntPtr hResInfo
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member SizeofResource :
hModule : IntPtr *
hResInfo : IntPtr -> uint32
No code example is currently available or this language may not be supported.
- hModule IntPtr
-
A handle to the module whose executable file contains the resource.
- hResInfo IntPtr
-
A handle to the resource.
This handle must be created by using the FindResource(SafeModuleHandle, IntPtr, ResourceType)
or FindResourceEx(SafeModuleHandle, ResourceType, IntPtr, UInt16) function.
UInt32
If the function succeeds, the return value is the number of bytes in the resource.
If the function fails, the return value is zero.
To get extended error information, call
GetLastWin32Error.