Share via


AcquireRemoveLock (Compact 2013)

3/26/2014

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 Lockhas not been removed.

Requirements

Header

usbclient.h

See Also

Reference

USB Host Client Driver Functions
REMOVE_LOCK

Other Resources

InterlockedDecrement
InterlockedIncrement
SetEvent