IOCTL_FLASH_PDD_GET_BLOCK_STATUS (Compact 2013)
3/26/2014
This I/O control message queries the status of a specific block. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_FLASH_PDD_GET_BLOCK_STATUS
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_PDD_GET_BLOCK_STATUS for this operation.
- lpInBuffer
[in] Pointer to a FLASH_GET_BLOCK_STATUS_REQUEST structure, which describes the run of blocks to query.
- nInBufferSize
[in] Set to the size of the FLASH_GET_BLOCK_STATUS_REQUEST structure.
- lpOutBuffer
[out] Array of ULONG values, where each ULONG value represents the status of the corresponding block.
- nOutBufferSize
[in] Size of the array of ULONG values. Specifically, it must equal sizeof(ULONG) multiplied by the BlockCount specified in the BLOCK_RUN member of the input structure.
- 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 |
FlashPdd.h |