Platform SDK: Win32 API |
Unlocks the logical volume or decrements the lock level.
mov ax, 440Dh ; generic IOCTL mov bl, DriveNum ; see below mov ch, DeviceCat ; see below mov cl, 6Ah ; Unlock Logical Volume int 21h jc error_handler
Value | Description |
---|---|
08h | FAT32, FAT16, or FAT12 drive. |
48h | FAT32, FAT16, or FAT12 drive. This value is supported on Windows 95 OEM Service Release 2 and later. |
Note: Because this call may be implemented in the device driver, the 48h form of this call may fail on FAT16 or FAT12 media. Therefore, applications making the 48h form of this call must fall back on the 08h form if the 48h call fails.
Clears the carry flag if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.
Use this function to release the lock obtained by using Lock Logical Volume (Interrupt 21h Function 440Dh Minor Code 4Ah). Only the lock owner can release the lock on a volume.
To release the lock on the volume, an application must call Unlock Logical Volume the same number of times that Lock Logical Volume was called.