MapViewOfFile2 method

Pointer<Void> MapViewOfFile2(
  1. Pointer<Void> FileMappingHandle,
  2. Pointer<Void> ProcessHandle,
  3. int Offset,
  4. Pointer<Void> BaseAddress,
  5. int ViewSize,
  6. int AllocationType,
  7. int PageProtection,
)

Implementation

ffi.Pointer<ffi.Void> MapViewOfFile2(
  ffi.Pointer<ffi.Void> FileMappingHandle,
  ffi.Pointer<ffi.Void> ProcessHandle,
  int Offset,
  ffi.Pointer<ffi.Void> BaseAddress,
  int ViewSize,
  int AllocationType,
  int PageProtection,
) {
  return (_MapViewOfFile2 ??=
      _dylib.lookupFunction<_c_MapViewOfFile2, _dart_MapViewOfFile2>(
          'MapViewOfFile2'))(
    FileMappingHandle,
    ProcessHandle,
    Offset,
    BaseAddress,
    ViewSize,
    AllocationType,
    PageProtection,
  );
}