VirtualAllocEx method

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

Implementation

ffi.Pointer<ffi.Void> VirtualAllocEx(
  ffi.Pointer<ffi.Void> hProcess,
  ffi.Pointer<ffi.Void> lpAddress,
  int dwSize,
  int flAllocationType,
  int flProtect,
) {
  return (_VirtualAllocEx ??=
      _dylib.lookupFunction<_c_VirtualAllocEx, _dart_VirtualAllocEx>(
          'VirtualAllocEx'))(
    hProcess,
    lpAddress,
    dwSize,
    flAllocationType,
    flProtect,
  );
}