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
- Instance
-
FltFsControlFile only. An opaque instance pointer to the minifilter driver instance that is initiating the FSCTL request.
- FileObject
-
FltFsControlFile only. A file pointer object specifying the volume to be marked dirty. This parameter is required and cannot be NULL.
- FileHandle
-
ZwFsControlFile only. A handle to the volume that is to be marked dirty. This parameter is required and cannot be NULL.
- FsControlCode
-
Control code for the operation. Use FSCTL_MARK_VOLUME_DIRTY for this operation.
- InputBuffer
-
Not used with this operation. Set to NULL.
- InputBufferLength
-
Not used with this operation. Set to 0.
- OutputBuffer
-
Not used with this operation. Set to NULL.
- OutputBufferLength
-
Not used with this operation. Set to 0.
Return value
The FltFsControlFile or ZwFsControlFile routine returns STATUS_SUCCESS or an appropriate NTSTATUS value.
| Return code | Description |
|---|---|
|
The FileObject or FileHandle does not represent a valid volume handle or another parameter is invalid. |
|
The caller does not have SE_MANAGE_VOLUME access rights. |
|
The file system volume is dismounted. |
|
The file system volume is shut down. |
|
The file system volume is read-only. |
Remarks
ReFS: This code is not supported.
Requirements
|
Header |
|
|---|
See also
Send comments about this topic to Microsoft
Build date: 11/21/2012
