GetProcAddress method

Pointer<NativeFunction<FARPROC>> GetProcAddress(
  1. Pointer<HINSTANCE__> hModule,
  2. Pointer<Int8> lpProcName
)

Implementation

ffi.Pointer<ffi.NativeFunction<FARPROC>> GetProcAddress(
  ffi.Pointer<HINSTANCE__> hModule,
  ffi.Pointer<ffi.Int8> lpProcName,
) {
  return (_GetProcAddress ??=
      _dylib.lookupFunction<_c_GetProcAddress, _dart_GetProcAddress>(
          'GetProcAddress'))(
    hModule,
    lpProcName,
  );
}