IOCTL_FLASH_PDD_WRITE_PHYSICAL_SECTORS (Compact 2013)
3/26/2014
This I/O control message writes data and/or spare area to multiple, possibly noncontiguous, sectors. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_FLASH_PDD_WRITE_PHYSICAL_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_PDD_WRITE_PHYSICAL_SECTORS for this operation.
- lpInBuffer
[in] Pointer to an array of FLASH_PDD_TRANSFER structures, where each element of the array describes a request of contiguous sectors to write.
- nInBufferSize
[in] Set to the size, in bytes, of the FLASH_PDD_TRANSFER array.
- lpOutBuffer
[out] Pointer to FLASH_WRITE_STATUS indicating the status of the write operation. Currently, there are no status values defined for write operations.
- nOutBufferSize
[in] Set to sizeof(ULONG).
- 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 |