VirtualAlloc method

Pointer<Void> VirtualAlloc(
  1. Pointer<Void> lpAddress,
  2. int dwSize,
  3. int flAllocationType,
  4. int flProtect,
)

Implementation

ffi.Pointer<ffi.Void> VirtualAlloc(
  ffi.Pointer<ffi.Void> lpAddress,
  int dwSize,
  int flAllocationType,
  int flProtect,
) {
  return (_VirtualAlloc ??= _dylib
      .lookupFunction<_c_VirtualAlloc, _dart_VirtualAlloc>('VirtualAlloc'))(
    lpAddress,
    dwSize,
    flAllocationType,
    flProtect,
  );
}