IOCTL_DISK_DEVICE_INFO (Compact 2013)
3/26/2014
This I/O control message returns storage information to block device drivers. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to device
DWORD dwIoControlCode, // use IOCTL_DISK_DEVICE_INFO
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
[in] Handle to the device.
- dwIoControlCode
[in] Control code for the operation. Use IOCTL_DISK_DEVICE_INFO for this operation.
- lpInBuffer
[in] Pointer to a STORAGEDEVICEINFO structure.
- nInBufferSize
[in] Specifies the size of the STORAGEDEVICEINFO structure in lpInBuffer.
- lpOutBuffer
Not used. Set to NULL.
- nOutBufferSize
Not used. Set to zero.
- lpBytesReturned
Pointer to a DWORD to receive total bytes returned.
- lpOverlapped
Not used.
Return Values
Returns TRUE if successful; otherwise, returns FALSE.
Remarks
To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.
Requirements
Header |
diskio.h |
See Also
Reference
Block Driver IOCTLs
DeviceIoControl