// winioctl.h
// CTL_CODE(0x0009, 0x09e, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_IS_VOLUME_OWNED_BYCSVFS 0x00090278
View the official Win32 API referenceNo description available.
Determines whether a volume is locked by CSVFS.
To perform this operation, call the DeviceIoControl function with the following parameters.
BOOL DeviceIoControl(
(HANDLE) hDevice, // handle to device
FSCTL_IS_VOLUME_OWNED_BYCSVFS, // dwIoControlCode
NULL, // input buffer
0, // size of input buffer
(LPVOID) lpOutBuffer, // lpOutBuffer
(DWORD) nOutBufferSize, // nOutBufferSize
(LPDWORD) lpBytesReturned, // number of bytes returned
(LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.
Otherwise, Status to the appropriate error condition as a NTSTATUS code.
For more information, see NTSTATUS Values.
If the volume is locked on behalf of CSVFS, the control code returns information that is sent to an NTFS volume. If the volume is locked (using FSCTL_LOCK_VOLUME) from a request that originates from CSVFS, then the CSV_IS_OWNED_BY_CSVFS structure's OwnedByCSVFS member has a value of TRUE.