SCardSetAttrib (Windows CE 5.0)

Send Feedback

This function sets the specified reader attribute for the specified handle. It does not affect the state of the reader, reader driver, or smart card. Not all attributes are supported by all readers nor can they be set at all times, as many of the attributes are under direct control of the transport protocol.

LONG SCardSetAttrib(SCARDHANDLEhCard, DWORDdwAttrId, LPCBYTEpbAttr, DWORD cbAttrLen);

Parameters

  • hCard
    [in] Handle to the reference value returned from SCardConnect.
  • dwAttrId
    [in] Specifies the identifier for the attribute to set.
  • pbAttr
    [in] Pointer to a buffer that supplies the attribute whose identifier is supplied in dwAttrId.
  • cbAttrLen
    [in] Count of bytes that represent the length of the attribute value in the pbAttr buffer.

Return Values

The following table shows the possible return values.

Value Description
SCARD_S_SUCCESS Succeeds
An error value (see Smart Card Error Values for a list of all error values). Fails

Remarks

SCardSetAttrib is a direct card access function.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Winscard.h.
Link Library: Winscard.lib.

See Also

SCardConnect | SCardGetAttrib

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.