Share via


AcquireRemoveLock (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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

Parameters

  • Tag
    [in] Optional. Set to NULL.

Return Value

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

Header usbclient.h
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

USB Host Client Driver Functions
REMOVE_LOCK

Other Resources

InterlockedDecrement
InterlockedIncrement
SetEvent