Kernel32FindResource(IntPtr, IntPtr, ResourceType) Method
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", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static IntPtr FindResource(
IntPtr hModule,
IntPtr resourceId,
ResourceType resourceType
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function FindResource (
hModule As IntPtr,
resourceId As IntPtr,
resourceType As ResourceType
) As IntPtr
Dim hModule As IntPtr
Dim resourceId As IntPtr
Dim resourceType As ResourceType
Dim returnValue As IntPtr
returnValue = Kernel32.FindResource(hModule,
resourceId, resourceType)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr FindResource(
IntPtr hModule,
[InAttribute] IntPtr resourceId,
[InAttribute] ResourceType resourceType
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member FindResource :
hModule : IntPtr *
resourceId : IntPtr *
resourceType : ResourceType -> IntPtr
No code example is currently available or this language may not be supported.
- hModule IntPtr
-
A handle to the module whose portable executable file or an accompanying MUI file contains the resource.
If this parameter is , the function searches the module used to create the current process.
- resourceId IntPtr
-
The integer identifier of the resource.
- resourceType ResourceType
-
The resource type.
IntPtr
If the function succeeds, the return value is a handle to the specified resource's information block.
To obtain a handle to the resource, pass this handle to the
LoadResource(SafeModuleHandle, IntPtr) function.
If the function fails, the return value is
Zero.
To get extended error information, call
GetLastWin32Error.