Share via


SMC_CONFIG structure

Contains pointers to client driver implemented-callback functions.

Initialize this structure by calling SMC_CONFIG_INIT, set the members to the callback functions, and register them by calling SmcDeviceInitConfig. The Microsoft-provided smart card extension (WudfSmcClassExt.dll) invokes the registered callback functions when it receives requests to perform various operations on the smart card.

Syntax

typedef struct _SMC_CONFIG {
  ULONG                     Size;
  PFN_SMC_ASSIGN_CARD_POWER EvtCcidAssignCardPower;
  PFN_SMC_SET_PROTOCOL      EvtCcidSetProtocol;
  PFN_SMC_TRANSMIT          EvtCcidTransmit;
  PFN_SMC_EJECT             EvtCcidEject;
  PFN_SMC_SWALLOW           EvtCcidSwallow;
  PFN_SMC_VENDOR_IOCTL      EvtCcidVendorIoctl;
} SMC_CONFIG, *PSMC_CONFIG;

Members

  • Size
    Size of this structure.

  • EvtCcidAssignCardPower
    A pointer to your client driver's PFN_SMC_ASSIGN_CARD_POWER callback function, which is invoked when the class extension receives a request to resets or power off an inserted smart card.

  • EvtCcidSetProtocol
    A pointer to your client driver's PFN_SMC_SET_PROTOCOL callback function, which is invoked when the class extension receives a request to select a transmission protocol on the inserted smart card.

  • EvtCcidTransmit
    A pointer to your client driver's PFN_SMC_TRANSMIT callback function, which is invoked when the class extension receives a request to transmit data to or from the inserted smart card.

  • EvtCcidEject
    A pointer to your client driver's PFN_SMC_EJECT callback function, which is invoked when the class extension receives a request to eject the smart card.

  • EvtCcidSwallow
    A pointer to your client driver's PFN_SMC_SWALLOW callback function, which is invoked when the class extension receives a request to perform a mechanical swallow.

  • EvtCcidVendorIoctl
    A pointer to your client driver's PFN_SMC_VENDOR_IOCTL callback function, which is invoked when the class extension receives a request to process a vendor-defined functionality.

Requirements

Header

SmcCx.h on Windows 10

See also

SMC_CONFIG_INIT

SmcDeviceInitConfig

 

 

Send comments about this topic to Microsoft