PFN_SMC_SWALLOW function pointer

Optional. Handles the request to perform a mechanical swallow, which is what happens when the smart card is fully inserted into the smart card reader.

Syntax

typedef NTSTATUS ( *PFN_SMC_SWALLOW)(
  _In_ WDFDEVICE  FxDevice,
  _In_ WDFREQUEST FxRequest
);

Parameters

  • FxDevice [in]
    Handle to the framework device object.

  • FxRequest [in]
    Handle to the framework request object.

Return value

If the function encounters no errors, it must return STATUS_SUCCESS. Otherwise, one of the appropriate NTSTATUS values.

Remarks

The client driver must register its implementation with the smart card call extension in the driver's EvtDriverDeviceAdd callback function. For example code that shows how to register, see SmcDeviceInitConfig.

The smart card class extension invokes client driver's PFN_SMC_SWALLOW callback function when the class extension receives an IOCTL_SMARTCARD_SWALLOW request from another driver or an application.

Requirements

Target platform

Desktop

Header

SmcCx.h on Windows 10

See also

IOCTL_SMARTCARD_SWALLOW

SmcDeviceInitConfig

EvtDriverDeviceAdd

 

 

Send comments about this topic to Microsoft