This service returns information about volume locks on a given drive.
| Lock Flag Values: |
|
| Value |
Meaning |
| LOCKP_ALLOW_WRITES |
Indicates that the volume lock taken allows writes to happen while it is in effect. If this flag is not set and a volume lock is in effect, the volume lock does not allow writes to happen. This flag is not valid for a level 0 lock, it is valid on all other lock levels. |
| LOCKP_FAIL_MEM_MAPPING |
Indicates that memory-mapping operations cannot be done while the volume lock is effect. If this flag is not set and a volume lock is in effect, memory-mappings are allowed while the volume lock is operative. This flag is not valid for a level 0 lock, it is valid on all other lock levels. |
| LOCKP_LOCK_FOR_FORMAT |
Indicates that the volume is locked for a format operation. This flag is valid only when the lock level is 0. If this flag is not and a level 0 lock is in effect, the volume is not locked for formatting. |