FSCTL_MARK_VOLUME_DIRTY - NtDoc

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

// CTL_CODE(0x0009, 0x00c, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_MARK_VOLUME_DIRTY 0x00090030
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-mark-volume-dirty)

FSCTL_MARK_VOLUME_DIRTY control code

The FSCTL_MARK_VOLUME_DIRTY control code marks a specified volume as dirty, which triggers Autochk.exe to run on the volume during the next system restart.

To perform this operation, call FltFsControlFile or ZwFsControlFile with the following parameters.

Parameters

Status block

The FltFsControlFile or ZwFsControlFile routine returns STATUS_SUCCESS or an appropriate NTSTATUS value.

Code Meaning
STATUS_INVALID_PARAMETER The FileObject or FileHandle does not represent a valid volume handle or another parameter is invalid.
STATUS_ACCESS_DENIED The caller does not have SE_MANAGE_VOLUME access rights.
STATUS_VOLUME_DISMOUNTED The file system volume is dismounted.
STATUS_TOO_LATE The file system volume is shut down.
STATUS_MEDIA_WRITE_PROTECTED The file system volume is read-only.

Remarks

This code is not supported by ReFS.

Requirements

< Requirement type Requirement
Header Ntifs.h (include Ntifs.h or FltKernel.h)

See also

FltFsControlFile

FSCTL_IS_VOLUME_DIRTY

ZwFsControlFile