FindResource function Null safety kernel32
Determines the location of a resource with the specified type and name in the specified module.
HRSRC FindResourceW(
HMODULE hModule,
LPCWSTR lpName,
LPCWSTR lpType
);
Implementation
int FindResource(int hModule, Pointer<Utf16> lpName, Pointer<Utf16> lpType) {
final _FindResource = _kernel32.lookupFunction<
IntPtr Function(
IntPtr hModule, Pointer<Utf16> lpName, Pointer<Utf16> lpType),
int Function(int hModule, Pointer<Utf16> lpName,
Pointer<Utf16> lpType)>('FindResourceW');
return _FindResource(hModule, lpName, lpType);
}