// ntifs.h
VOID FsRtlNotifyInitializeSync(
[in] PNOTIFY_SYNC *NotifySync
);
View the official Windows Driver Kit DDI referenceNo description available.
The FsRtlNotifyInitializeSync routine allocates and initializes a synchronization object for a notify list.
NotifySync [in]A pointer to a location in which to return a pointer to the opaque synchronization object.
The system allocates the synchronization object from nonpaged pool. If a pool allocation failure occurs, FsRtlNotifyInitializeSync raises a STATUS_INSUFFICIENT_RESOURCES exception. To gain control if this pool allocation failure occurs, the driver should wrap the call to FsRtlNotifyInitializeSync in a try-except or try-finally statement.
Every successful call to FsRtlNotifyInitializeSync must be matched by a subsequent call to FsRtlNotifyUninitializeSync.