다음을 통해 공유


IMediaObject::Lock (Windows CE 5.0)

Send Feedback

This method acquires or releases a lock on the DMO. Call this method to keep the DMO serialized when performing multiple operations.

HRESULT Lock(LONGbLock);

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 Values

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

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmo.h.
Link Library: Dmoguid.lib.

See Also

IMediaObject

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.