Share via


SmcCxInitializeCx function

Initializes the Microsoft-provided smart card class extension (WudfSmcClassExt.dll).

Syntax

FORCEINLINE NTSTATUS SmcCxInitializeCx(
  _In_ WDFDEVICE Device
);

Parameters

  • Device [in]
    Handle to the framework device object received in the client driver's WdfDeviceCreate call.

Return value

Returns S_OK. unction encounters no errors, it must return STATUS_SUCCESS. Otherwise, one of the appropriate NTSTATUS values.

Remarks

The client driver must call SmcCxInitializeCx to initialize the class extension after the driver-implemented callback functions have been registered through the SmcDeviceInitConfig call. The SmcCxInitializeCx function sets up I/O queues and allocates resources for the smart card such as request and reply buffers and various stores information about various capabilities supported by smart card.

The driver must call SmcCxDeinitializeCx in its EvtDeviceReleaseHardware to release the class extension.

Examples

NTSTATUS
Configure(
    __in WDFDEVICE FxDevice
    )
{

    NTSTATUS status = STATUS_SUCCESS;

    ...

    // Initialize SMC class extension.
    status = SmcCxInitializeCx(FxDevice);

    ...
}

Requirements

Target platform

Desktop

Header

SmcCx.h on Windows 10

See also

SmcDeviceInitConfig

SmcCxDeinitializeCx

 

 

Send comments about this topic to Microsoft