IBlockingLock interface
Provides a semaphore that can be used to provide temporarily exclusive access to a shared resource such as a file.
When to implement
You do not need to implement this interface.
When to use
Use this interface when you want to ensure that no other thread accesses a resource while you are using it. Locks are useful for preventing file corruption when writing to shared files.
Members
The IBlockingLock interface inherits from the IUnknown interface. IBlockingLock also has these types of members:
Methods
The IBlockingLock interface has these methods.
| Method | Description |
|---|---|
| Lock |
Requests a lock on a shared resource. |
| Unlock |
Releases a lock on a shared resource. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IBlockingLock is defined as 30f3d47a-6447-11d1-8e3c-00c04fb9386d |