LockResource function Null safety kernel32

Pointer<NativeType> LockResource (
  1. int hResData
)

Retrieves a pointer to the specified resource in memory.

LPVOID LockResource(
  HGLOBAL hResData
);

Implementation

Pointer LockResource(int hResData) {
  final _LockResource = _kernel32.lookupFunction<
      Pointer Function(IntPtr hResData),
      Pointer Function(int hResData)>('LockResource');
  return _LockResource(hResData);
}