![]() | IoLockType Enumeration |
Specifies the type of lock to obtain for the device session.
enum IoLockType
Member name | Description | |
---|---|---|
IoLockExclusive | Obtain an exclusive lock on the device. A session can lock a device using this lock type to get exclusive access privileges to the device. This exclusive lock type excludes access to the device from all other sessions. | |
IoLockShared | Obtain a shared lock on the device. A session can share a lock on a device with other sessions by using a shared lock. Shared locks are similar to exclusive locks in terms of access privileges, but they can be shared between multiple sessions. A session that has obtained a shared lock can modify aspects of the device (unless it has been exclusively locked by another session). Sessions that do not have a shared lock on the device will not be able to access it. |
See the Lock function for details.