IOCTL_FMD_LOCK_BLOCKS (Compact 2013)
3/26/2014
This I/O control message locks one or more blocks in a specified range.; that is, the IOCTL makes entire blocks read-only. Send this message with OEMIoControl.
Syntax
BOOL OEMIoControl(
HANDLE hDevice, // handle to device
DWORD dwIoControlCode, // use IOCTL_FMD_LOCK_BLOCKS
LPVOID lpInBuffer, // pointer to input buffer
DWORD nInBufferSize, // input buffer size
LPVOID lpOutBuffer, // pointer to output buffer
DWORD nOutBufferSize, // output buffer size
LPDWORD lpBytesReturned, // number of bytes returned
OVERLAPPED lpOverlapped // pointer to OVERLAPPED structure
);
Parameters
- hDevice
The handle to the block device.
- dwIoControlCode
[in] Control code for the operation. Use IOCTL_FMD_LOCK_BLOCKS for this operation.
- lpInBuffer
[in] Pointer to a BlockLockInfo structure.
- nInBufferSize
[in] Size of the BlockLockInfo structure.
- lpOutBuffer
[out] Set to NULL.
- nOutBufferSize
[out] Set to zero.
- lpBytesReturned
[out] Set to NULL.
- lpOverlapped
[in] Not used.
Return Values
Returns TRUE if successful; otherwise, returns FALSE.
Requirements
Header |
fmd.h |