IOCTL_DISK_SECURE_WIPE (Compact 2013)
3/26/2014
This I/O control message specifies a secure removal of all specified sectors. The removal is requested in a call from the file system to the FAL. Send this message with DeviceIoControl.
Syntax
BOOL DeviceIoControl(
HANDLE hDevice, // handle to device
DWORD dwIoControlCode, // use IOCTL_DISK_SECURE_WIPE
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] Control code for the operation. Use IOCTL_DISK_SECURE_WIPE for this operation.
- lpInBuffer
[in] Pointer to a DELETE_SECTOR_INFO structure.
- nInBufferSize
[in] Specifies the size of the DELETE_SECTOR_INFO structure in lpInBuffer.
- lpOutBuffer
Not used. Set to NULL.
- nOutBufferSize
Not used. Set to zero.
- lpBytesReturned
Not used. Set to NULL.
- lpOverlapped
Not used.
Return Values
Returns TRUE if successful; otherwise, returns FALSE.
Remarks
To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.
Requirements
Header |
diskio.h |