CreateFileMappingW method

Pointer<Void> CreateFileMappingW(
  1. Pointer<Void> hFile,
  2. Pointer<LPSECURITY_ATTRIBUTES> lpFileMappingAttributes,
  3. int flProtect,
  4. int dwMaximumSizeHigh,
  5. int dwMaximumSizeLow,
  6. Pointer<Uint16> lpName,
)

Implementation

ffi.Pointer<ffi.Void> CreateFileMappingW(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpFileMappingAttributes,
  int flProtect,
  int dwMaximumSizeHigh,
  int dwMaximumSizeLow,
  ffi.Pointer<ffi.Uint16> lpName,
) {
  return (_CreateFileMappingW ??=
      _dylib.lookupFunction<_c_CreateFileMappingW, _dart_CreateFileMappingW>(
          'CreateFileMappingW'))(
    hFile,
    lpFileMappingAttributes,
    flProtect,
    dwMaximumSizeHigh,
    dwMaximumSizeLow,
    lpName,
  );
}