Kernel32FindResourceEx(IntPtr, String, String, UInt16) Method
Determines the location of the resource with the specified type, name, and language in the specified module.
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 FindResourceEx(
IntPtr hModule,
string resourceType,
string resourceName,
ushort languageId
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function FindResourceEx (
hModule As IntPtr,
resourceType As String,
resourceName As String,
languageId As UShort
) As IntPtr
Dim hModule As IntPtr
Dim resourceType As String
Dim resourceName As String
Dim languageId As UShort
Dim returnValue As IntPtr
returnValue = Kernel32.FindResourceEx(hModule,
resourceType, resourceName, languageId)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static IntPtr FindResourceEx(
IntPtr hModule,
[InAttribute] String^ resourceType,
[InAttribute] String^ resourceName,
unsigned short languageId
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member FindResourceEx :
hModule : IntPtr *
resourceType : string *
resourceName : string *
languageId : uint16 -> 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.
- resourceType String
-
The resource type.
- resourceName String
-
The name of the resource.
- languageId UInt16
-
The language identifier of the resource.
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.