IOCTL_FLASH_CREATE_PARTITION (Compact 2013)
3/26/2014
This I/O control message creates one or more new partitions located at the end of the existing partitions. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to the device
DWORD dwIoControlCode, // use IOCTL_FLASH_CREATE_PARTITION
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_CREATE_PARTITION for this operation.
- lpInBuffer
[in] Pointer to an array of FLASH_PARTITION_CREATE_INFO structures, which contains the parameters for the request.
- nInBufferSize
[in] Size of the FLASH_PARTITION_CREATE_INFO structure multiplied by the number of elements in the input array.
- lpOutBuffer
[in] Pointer to an array of FLASH_PARTITION_INFO structures, which contains the information for the created partition(s). If partition information is not needed, then set to NULL.
- nOutBufferSize
[in] Size of the FLASH_PARTITION_INFO structure multiplied by the number of elements in the output array. Set to zero (0) if partition information is not needed.
- 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 |