SmcCxT0Request function
Prepares the buffer with data for use with the T=0 protocol to send to the smart card.
Syntax
NTSTATUS SmcCxT0Request(
_In_ WDFDEVICE Device,
_In_ WDFREQUEST FxRequest,
_In_ PSMARTCARD_REQUEST SmartcardRequest
);
Parameters
Device [in]
Handle to the framework device object.FxRequest [in]
Handle to the framework request object.SmartcardRequest [in]
Pointer to a caller-allocated SMARTCARD_REQUEST structure.
Return value
If the function encounters no errors, it must return STATUS_SUCCESS. Otherwise returns an appropriate NTSTATUS values. Possible values include:
Return code | Description |
---|---|
STATUS_BUFFER_OVERFLOW | The request buffer is too large. that contains the result of the operation is NULL. |
STATUS_INVALID_PARAMETER | The protocol-level parameters are invalid. For example, T0 request is less than 4 bytes. |
Remarks
When the client driver calls SmcCxT0Request, the BufferLength member of SMARTCARD_REQUEST indicates the offset at which data must be copied. This is usually used by readers that need some bytes as header bytes to send to the reader before sending the data bytes for the smart card.
Requirements
Target platform |
Desktop |
Header |
SmcCx.h on Windows 10 |