LoadResource function Null safety kernel32
Retrieves a handle that can be used to obtain a pointer to the first byte of the specified resource in memory.
HGLOBAL LoadResource(
HMODULE hModule,
HRSRC hResInfo
);
Implementation
int LoadResource(int hModule, int hResInfo) {
final _LoadResource = _kernel32.lookupFunction<
IntPtr Function(IntPtr hModule, IntPtr hResInfo),
int Function(int hModule, int hResInfo)>('LoadResource');
return _LoadResource(hModule, hResInfo);
}