CreateFile2 method

Pointer<Void> CreateFile2(
  1. Pointer<Uint16> lpFileName,
  2. int dwDesiredAccess,
  3. int dwShareMode,
  4. int dwCreationDisposition,
  5. Pointer<LPCREATEFILE2_EXTENDED_PARAMETERS> pCreateExParams,
)

Implementation

ffi.Pointer<ffi.Void> CreateFile2(
  ffi.Pointer<ffi.Uint16> lpFileName,
  int dwDesiredAccess,
  int dwShareMode,
  int dwCreationDisposition,
  ffi.Pointer<LPCREATEFILE2_EXTENDED_PARAMETERS> pCreateExParams,
) {
  return (_CreateFile2 ??= _dylib
      .lookupFunction<_c_CreateFile2, _dart_CreateFile2>('CreateFile2'))(
    lpFileName,
    dwDesiredAccess,
    dwShareMode,
    dwCreationDisposition,
    pCreateExParams,
  );
}