Microsoft Windows CE 3.0  

SmartcardRawRequest

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The SmartcardRawRequestfunction copies data from the user buffer to the send buffer that the driver uses to transmit data to the reader.

NTSTATUS SmartcardRawRequest(
PSMARTCARD_EXTENSION
SmartcardExtension
);

Parameters

SmartcardExtension
Points to the smart card extension of the device.

Return Values

SmartcardRawRequestreturns an NTSTATUS value. Possible values are the following:

Value Meaning
STATUS_SUCCESS Buffer successfully set up.
STATUS_BUFFER_OVERFLOW The internal buffer is too small to hold the data to send to the smart card. To fix this error, allocate a larger send buffer. See SmartcardInitializefor details.
STATUS_BUFFER_TOO_SMALL The user buffer is too small to hold the data.

Remarks

This function copies data from the user buffer to SmartcardExtension->SmartcardRequest.Bufferand adjusts SmartcardExtension->SmartcardRequest.BufferLengthto the number of bytes to be transmitted to the smart card. The driver then simply writes this buffer to the card and reads the bytes coming from the card into SmartcardExtension->SmartcardReply.Buffer, as described in SmartcardRawReply.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later      
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.