IOCTL_FLASH_READ_LOGICAL_SECTORS (Compact 2013)
3/26/2014
This I/O control message reads a set of sector range/sector data pairs from the storage media in a single transfer. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_FLASH_READ_LOGICAL_SECTORS
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] The control code for the operation. Use IOCTL_FLASH_READ_LOGICAL_SECTORS for this operation.
- lpInBuffer
[in] Pointer to a FLASH_TRANSFER_REQUEST structure.
- nInBufferSize
[in] Size of the FLASH_TRANSFER_REQUEST structure plus the size of the FLASH_SECTOR_TRANSFER structure for each FLASH_SECTOR_TRANSFER structure in the transfer list beyond the first.
- lpOutBuffer
[in] Not used; set to NULL.
- nOutBufferSize
[out] Not used; set to zero.
- lpBytesReturned
[in] Not used; set to NULL.
Return Values
Returns nonzero if successful; otherwise, returns zero.
Remarks
To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.
Requirements
Header |
FlashMdd.h |