FSCTL_IS_VOLUME_OWNED_BYCSVFS IOCTL (winioctl.h)
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
);
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Header | winioctl.h (include Windows.h) |