Jump to content

PDSK_LOCKPHYSDRIVE

From EDM2


Category
IOCTL_PHYSICALDISK (09h)
Function
PDSK_LOCKPHYSDRIVE (00h)
Description
Lock Physical Drive

Description

This function locks the physical drive.

Command Information

Reserved. Must be set to 0.

Parameter Packet Format

Field Length C Datatype
Command Information BYTE UCHAR

Data Packet Format

Field Length C Datatype
Reserved. Set to 0. 31 BYTES UCHAR[31]

Returns

Possible values are shown in the following list:

Code Description
0 NO_ERROR
1 ERROR_INVALID_FUNCTION
6 ERROR_INVALID_HANDLE
15 ERROR_INVALID_DRIVE
31 ERROR_GEN_FAILURE
87 ERROR_INVALID_PARAMETER
111 ERROR_BUFFER_OVERFLOW
115 ERROR_PROTECTION_VIOLATION
117 ERROR_INVALID_CATEGORY
119 ERROR_BAD_DRIVER_LEVEL
163 ERROR_UNCERTAIN_MEDIA
165 ERROR_MONITORS_NOT_SUPPORTED

Remarks

All the logical units on the physical drive are affected as well.