Jump to content

PDSK_UNLOCKPHYSDRIVE

From EDM2
Revision as of 04:39, 19 May 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:PDSK_UNLOCKPHYSDRIVE}} ;Category:IOCTL_PHYSICALDISK (09h) ;Function: PDSK_UNLOCKPHYSDRIVE (01h) ;Description: Unlock Physical Drive ==Description== This function unlocks the physical drive. ==Command Information== Reserved. Must be set to 0. ==Parameter Packet Format== {| class="wikitable" |- ! Field ! Length ! C Datatype |- | Command Information | BYTE | UCHAR |} ==Data Packet Format== {| class="wikitable" |- ! Field ! Length ! C Datatype |- |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Category
IOCTL_PHYSICALDISK (09h)
Function
PDSK_UNLOCKPHYSDRIVE (01h)
Description
Unlock Physical Drive

Description

This function unlocks 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.