FsRtlNotifyVolumeEventEx - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

NTSTATUS FsRtlNotifyVolumeEventEx(
  [in] PFILE_OBJECT                       FileObject,
  [in] ULONG                              EventCode,
  [in] PTARGET_DEVICE_CUSTOM_NOTIFICATION Event
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlnotifyvolumeeventex)

FsRtlNotifyVolumeEventEx function

Description

The FsRtlNotifyVolumeEventEx routine notifies any registered applications that a volume event is occurring. Volume events include the volume being locked, unlocked, mounted, or made read-only.

Parameters

FileObject [in]

A pointer to a FILE_OBJECT that specifies a volume.

EventCode [in]

An event code for the event that is occurring. For a table of event codes, see FsRtlNotifyVolumeEvent.

Event [in]

A pointer to the initialized custom notification structure (TARGET_DEVICE_CUSTOM_NOTIFICATION) to use.

Return value

Returns STATUS_SUCCESS on success or another relevant NTSTATUS value, such as STATUS_INVALID_PARAMETER, if the EventCode is not valid.

Remarks

Note When you specify the Event parameter as a custom volume notification, set the following members of the TARGET_DEVICE_CUSTOM_NOTIFICATION object as follows:

Version to 1.

FileObject to NULL.

See also

FsRtlNotifyVolumeEvent

IoRegisterPlugPlayNotification

IoUnregisterPlugPlayNotification

TARGET_DEVICE_CUSTOM_NOTIFICATION