CardQueryCapabilities Function

The CardQueryCapabilities function, defined by a smart card module, retrieves information about the functionality provided by a smart card.


DWORD WINAPI CardQueryCapabilities(
  __in     PCARD_DATA pCardData,
  __inout  PCARD_CAPABILITIES pCardCapabilities


  • pCardData [in]
    A pointer to a CARD_DATA structure received from a call to the CardAcquireContext function.

  • pCardCapabilities [in, out]
    A pointer to a CARD_CAPABILITIES structure that, on output, contains information about the capabilities of the smart card.

Return Value

If the function succeeds, the function returns zero.

If the function fails, it returns a nonzero value.


Minimum supported client Windows XP, Windows 2000 Professional with SP4
Minimum supported server Windows Server 2003, Windows 2000 Server with SP4
Header Cardmod.h

See Also

Microsoft Base Smart Card Cryptographic Service Provider




Send comments about this topic to Microsoft

Build date: 3/5/2009