OpenFileById method

Pointer<Void> OpenFileById(
  1. Pointer<Void> hVolumeHint,
  2. Pointer<LPFILE_ID_DESCRIPTOR> lpFileId,
  3. int dwDesiredAccess,
  4. int dwShareMode,
  5. Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  6. int dwFlagsAndAttributes,
)

Implementation

ffi.Pointer<ffi.Void> OpenFileById(
  ffi.Pointer<ffi.Void> hVolumeHint,
  ffi.Pointer<LPFILE_ID_DESCRIPTOR> lpFileId,
  int dwDesiredAccess,
  int dwShareMode,
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSecurityAttributes,
  int dwFlagsAndAttributes,
) {
  return (_OpenFileById ??= _dylib
      .lookupFunction<_c_OpenFileById, _dart_OpenFileById>('OpenFileById'))(
    hVolumeHint,
    lpFileId,
    dwDesiredAccess,
    dwShareMode,
    lpSecurityAttributes,
    dwFlagsAndAttributes,
  );
}