IOCTL_FLASH_PDD_GET_PHYSICAL_SECTOR_ADDRESS (Compact 2013)
3/26/2014
This I/O control message retrieves the physical sector address. If XIP support is desired, then this IOCTL must be implemented. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_FLASH_PDD_GET_PHYSICAL_SECTOR_ADDRESS
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_PHYSICAL_SECTOR_ADDRESS for this operation.
- lpInBuffer
[in] Pointer to a FLASH_GET_PHYSICAL_SECTOR_ADDRESS_REQUEST structure, which contains a single run of sectors to query.
- nInBufferSize
[in] Size of the FLASH_GET_PHYSICAL_SECTOR_ADDRESS_REQUEST structure.
- lpOutBuffer
[out] Pointer to an array of void* pointers, where each pointer contains the statically mapped virtual address of the corresponding sector.
- nOutBufferSize
[in] Size, in bytes, of the output array. This size must be equal to the size of a void* pointer multiplied by the SectorCount value in the SECTOR_RUN structure.
- lpBytesReturned
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 |