FSCTL_INVALIDATE_VOLUMES - NtDoc

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

// CTL_CODE(0x0009, 0x015, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_INVALIDATE_VOLUMES 0x00090054
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-invalidate-volumes)

FSCTL_INVALIDATE_VOLUMES control code

The FSCTL_INVALIDATE_VOLUMES control code finds and removes all the volumes mounted on the device represented by the specified file object or handle.

To perform this operation, minifilter drivers call FltFsControlFile, and file systems, redirectors, and legacy file system filter drivers call ZwFsControlFile, using the following parameters.

Parameters

Status block

FltFsControlFile and ZwFsControlFile return STATUS_SUCCESS if the operation succeeds or an appropriate NTSTATUS value.

Remarks

FSCTL_INVALIDATE_VOLUMES is sent to the file system's control (that is, named) device object, not to a volume device object. For more information about Control Device Objects, see Creating the Control Device Object.

FAT and NTFS file systems handle surprise removal by responding to IRP_MJ_PNP/IRP_MN_SURPRISE_REMOVAL.

Requirements

Requirement type Requirement
Header Ntifs.h (include Ntifs.h)

See also

FltFsControlFile

ZwFsControlFile