VirtualAlloc2FromApp method

Pointer<Void> VirtualAlloc2FromApp(
  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> VirtualAlloc2FromApp(
  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 (_VirtualAlloc2FromApp ??= _dylib.lookupFunction<
      _c_VirtualAlloc2FromApp,
      _dart_VirtualAlloc2FromApp>('VirtualAlloc2FromApp'))(
    Process,
    BaseAddress,
    Size,
    AllocationType,
    PageProtection,
    ExtendedParameters,
    ParameterCount,
  );
}