IMediaObject::Lock (Compact 2013)
3/26/2014
This method acquires or releases a lock on the DMO. Call this method to keep the DMO serialized when performing multiple operations.
Syntax
HRESULT Lock(
LONG bLock
);
Parameters
- bLock
Value that specifies whether to acquire or release the lock. If the value is nonzero, a lock is acquired. If the value is zero, the lock is released.
Return Value
Returns an HRESULT value. Possible values include the following.
Value |
Description |
---|---|
S_OK |
Success |
E_FAIL |
Failure |
Remarks
This method prevents other threads from calling methods on the DMO. If another thread calls a method on the DMO, the thread blocks until the lock is released.
Requirements
Header |
dmo.h |
Library |
Dmoguid.lib |