CreateFileMapping2 method

Pointer<Void> CreateFileMapping2(
  1. Pointer<Void> File,
  2. Pointer<LPSECURITY_ATTRIBUTES> SecurityAttributes,
  3. int DesiredAccess,
  4. int PageProtection,
  5. int AllocationAttributes,
  6. int MaximumSize,
  7. Pointer<Uint16> Name,
  8. Pointer<PMEM_EXTENDED_PARAMETER> ExtendedParameters,
  9. int ParameterCount,
)

Implementation

ffi.Pointer<ffi.Void> CreateFileMapping2(
  ffi.Pointer<ffi.Void> File,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> SecurityAttributes,
  int DesiredAccess,
  int PageProtection,
  int AllocationAttributes,
  int MaximumSize,
  ffi.Pointer<ffi.Uint16> Name,
  ffi.Pointer<PMEM_EXTENDED_PARAMETER> ExtendedParameters,
  int ParameterCount,
) {
  return (_CreateFileMapping2 ??=
      _dylib.lookupFunction<_c_CreateFileMapping2, _dart_CreateFileMapping2>(
          'CreateFileMapping2'))(
    File,
    SecurityAttributes,
    DesiredAccess,
    PageProtection,
    AllocationAttributes,
    MaximumSize,
    Name,
    ExtendedParameters,
    ParameterCount,
  );
}