CreateFileFromAppW method

Pointer<Void> CreateFileFromAppW(
  1. Pointer<Uint16> lpFileName,
  2. int dwDesiredAccess,
  3. int dwShareMode,
  4. Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  5. int dwCreationDisposition,
  6. int dwFlagsAndAttributes,
  7. Pointer<Void> hTemplateFile,
)

Implementation

ffi.Pointer<ffi.Void> CreateFileFromAppW(
  ffi.Pointer<ffi.Uint16> lpFileName,
  int dwDesiredAccess,
  int dwShareMode,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  int dwCreationDisposition,
  int dwFlagsAndAttributes,
  ffi.Pointer<ffi.Void> hTemplateFile,
) {
  return (_CreateFileFromAppW ??=
      _dylib.lookupFunction<_c_CreateFileFromAppW, _dart_CreateFileFromAppW>(
          'CreateFileFromAppW'))(
    lpFileName,
    dwDesiredAccess,
    dwShareMode,
    lpSecurityAttributes,
    dwCreationDisposition,
    dwFlagsAndAttributes,
    hTemplateFile,
  );
}