What does Windows error code 745 (ERROR_NOTIFY_CLEANUP) mean?

 
Previous Next
ERROR_RXACT_COMMITTED ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED

ERROR_NOTIFY_CLEANUP

A change-notification request completed because its handle was closed

ERROR_NOTIFY_CLEANUP corresponds to Win32 error value documented as: This indicates that a notify change request has been completed due to closing the handle which made the notify change request. A pending directory, registry, or object notification was canceled by cleanup of the handle that registered it. This is normal during orderly shutdown but can reveal premature handle closure when notifications disappear unexpectedly.

Where the result appears in real systems

  • ReadDirectoryChangesW loops.
  • Registry change watchers.
  • Asynchronous I/O cancellation.
  • Service or thread teardown.

What to collect before making changes

Log the watched object, handle owner, close stack, overlapped structure, and shutdown state; distinguish ERROR_OPERATION_ABORTED from a genuine object change; use handle tracing when another thread may close the resource.

Handling and recovery

Stop issuing new waits, cancel outstanding I/O in a controlled order, and keep the handle alive until callbacks have drained. During normal shutdown, consume the cleanup completion without reporting data loss as a filesystem fault.

What not to infer from this code

This result explains why the notification ended; it does not mean the watched directory or registry key was deleted.

References


Looking for a different code? Search another status or error code.