Поделиться через


IOCTL_FLASH_GET_SECTOR_ADDRESS (Compact 2013)

3/26/2014

This I/O control message retrieves, for every logical sector address provided, the corresponding statically mapped virtual address of the physical sector. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,          // handle to the device
    DWORD dwIoControlCode,   // use IOCTL_FLASH_GET_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_GET_SECTOR_ADDRESS for this operation.
  • nInBufferSize
    [in] Size of the FLASH_GET_SECTOR_ADDRESS structure plus the size of a ULONG for each logical sector beyond the first.
  • lpOutBuffer
    [out] Receives the array of physical sector addresses.
  • nOutBufferSize
    [in] Size of the physical sector address array.
  • 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

FlashMdd.h

See Also

Reference

Flash Driver MDD IOCTLs