VirtualAlloc2 method

Pointer<Void> VirtualAlloc2(
  1. Pointer<Void> Process,
  2. Pointer<Void> BaseAddress,
  3. int Size,
  4. int AllocationType,
  5. int PageProtection,
  6. Pointer<PMEM_EXTENDED_PARAMETER> ExtendedParameters,
  7. int ParameterCount,
)

Implementation

ffi.Pointer<ffi.Void> VirtualAlloc2(
  ffi.Pointer<ffi.Void> Process,
  ffi.Pointer<ffi.Void> BaseAddress,
  int Size,
  int AllocationType,
  int PageProtection,
  ffi.Pointer<PMEM_EXTENDED_PARAMETER> ExtendedParameters,
  int ParameterCount,
) {
  return (_VirtualAlloc2 ??=
      _dylib.lookupFunction<_c_VirtualAlloc2, _dart_VirtualAlloc2>(
          'VirtualAlloc2'))(
    Process,
    BaseAddress,
    Size,
    AllocationType,
    PageProtection,
    ExtendedParameters,
    ParameterCount,
  );
}