Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

MethodDescription
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

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IBlockingLock is defined as 30f3d47a-6447-11d1-8e3c-00c04fb9386d

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.