다음을 통해 공유


AcquireRemoveLock (Windows CE 5.0)

Send Feedback

This function acquires a remove lock. It attempts to call InterlockedIncrement on Lock.

DWORD AcquireRemoveLock(  IN PREMOVE_LOCK Lock,  IN OPTIONAL PVOID Tag);

Parameters

  • Lock
    [in] Pointer to a REMOVE_LOCK structure.
  • Tag
    [in] Optional. Set to NULL.

Return Values

The following table shows the possible return values.

Value Description
STATUS_DELETE_PENDING Returned if Lock has been removed. If Lock has been removed, InterlockedDecrement is called on the Lock count, and SetEvent signals a remove event.
STATUS_INVALID_PARAMETER Returned if Lock is passed in as zero.
ERROR_SUCCESS Returned if the Lock has not been removed.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Usbclient.h.

See Also

InterlockedDecrement | InterlockedIncrement | REMOVE_LOCK | SetEvent

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.