ReadDirectoryChangesExW method

int ReadDirectoryChangesExW(
  1. Pointer<Void> hDirectory,
  2. Pointer<Void> lpBuffer,
  3. int nBufferLength,
  4. int bWatchSubtree,
  5. int dwNotifyFilter,
  6. Pointer<Uint64> lpBytesReturned,
  7. Pointer<LPOVERLAPPED> lpOverlapped,
  8. Pointer<NativeFunction<LPOVERLAPPED_COMPLETION_ROUTINE>> lpCompletionRoutine,
  9. int ReadDirectoryNotifyInformationClass,
)

Implementation

int ReadDirectoryChangesExW(
  ffi.Pointer<ffi.Void> hDirectory,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nBufferLength,
  int bWatchSubtree,
  int dwNotifyFilter,
  ffi.Pointer<ffi.Uint64> lpBytesReturned,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
  ffi.Pointer<ffi.NativeFunction<LPOVERLAPPED_COMPLETION_ROUTINE>>
      lpCompletionRoutine,
  int ReadDirectoryNotifyInformationClass,
) {
  return (_ReadDirectoryChangesExW ??= _dylib.lookupFunction<
      _c_ReadDirectoryChangesExW,
      _dart_ReadDirectoryChangesExW>('ReadDirectoryChangesExW'))(
    hDirectory,
    lpBuffer,
    nBufferLength,
    bWatchSubtree,
    dwNotifyFilter,
    lpBytesReturned,
    lpOverlapped,
    lpCompletionRoutine,
    ReadDirectoryNotifyInformationClass,
  );
}