ReadDirectoryChangesW method

int ReadDirectoryChangesW(
  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,
)

Implementation

int ReadDirectoryChangesW(
  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,
) {
  return (_ReadDirectoryChangesW ??= _dylib.lookupFunction<
      _c_ReadDirectoryChangesW,
      _dart_ReadDirectoryChangesW>('ReadDirectoryChangesW'))(
    hDirectory,
    lpBuffer,
    nBufferLength,
    bWatchSubtree,
    dwNotifyFilter,
    lpBytesReturned,
    lpOverlapped,
    lpCompletionRoutine,
  );
}