SmartcardReleaseRemoveLockWithTag (WDM) function

SmartcardReleaseRemoveLockWithTag decrements the driver's reference counter, which SmartcardAcquireRemoveLockWithTag (WDM) incremented. The current IRP is used as the tag. The tag is checked upon releasing the lock to make sure that the same IRP was used to both obtain and release the lock.

Syntax

VOID  SmartcardReleaseRemoveLockWithTag(
   PSMARTCARD_EXTENSION SmartcardExtension
);

Parameters

  • SmartcardExtension
    A pointer to a SMARTCARD_EXTENSION structure that contains the device extension of the smart card device. It also contains the pointer to the current IRP.

Return value

None

Remarks

Call SmartcardReleaseRemoveLockWithTag to release the lock that was obtained by calling SmartcardAcquireRemoveLockWithTag (WDM).

Requirements

Target platform

Desktop

Version

Available in Windows XP and later versions of Windows.

Header

Smclib.h (include Smclib.h)

Library

Smclib.lib

IRQL

<= DISPATCH_LEVEL

See also

SmartcardAcquireRemoveLockWithTag (WDM)

SMARTCARD_EXTENSION

 

 

Send comments about this topic to Microsoft