GetProcAddress function Null safety kernel32
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
FARPROC GetProcAddress(
HMODULE hModule,
LPCSTR lpProcName
);
Implementation
int GetProcAddress(int hModule, Pointer<Uint8> lpProcName) {
final _GetProcAddress = _kernel32.lookupFunction<
IntPtr Function(IntPtr hModule, Pointer<Uint8> lpProcName),
int Function(int hModule, Pointer<Uint8> lpProcName)>('GetProcAddress');
return _GetProcAddress(hModule, lpProcName);
}