Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 2.29 KB

SCardTransmit.md

File metadata and controls

84 lines (58 loc) · 2.29 KB

Home

Function name : SCardTransmit

Group: Authentication - Library: winscard


Note that this document contains some links to the old news2news website which does not work at the moment. This material will be available sometime in the future.

Sends a service request to the smart card and expects to receive data back from the card.


Declaration:

LONG SCardTransmit(
  __in     SCARDHANDLE hCard,
  __in     LPCSCARD_IO_REQUEST pioSendPci,
  __in     LPCBYTE pbSendBuffer,
  __in     DWORD cbSendLength,
  __inout  LPSCARD_IO_REQUEST pioRecvPci,
  __out    LPBYTE pbRecvBuffer,
  __inout  LPDWORD pcbRecvLength
);  

FoxPro declaration:

DECLARE LONG SCardTransmit IN Winscard;
	INTEGER hCard,;
	STRING pioSendPci,;
	STRING pbSendBuffer,;
	LONG cbSendLength,;
	INTEGER pioRecvPci,;
	STRING @pbRecvBuffer,;
	LONG @pcbRecvLength  

Parameters:

hCard [in] A reference value returned from the SCardConnect function.

pioSendPci [in] A pointer to the protocol header structure for the instruction.

pbSendBuffer [in] A pointer to the actual data to be written to the card.

cbSendLength [in] The length, in bytes, of the pbSendBuffer parameter.

pioRecvPci [in, out] Pointer to the protocol header structure for the instruction, followed by a buffer in which to receive any returned protocol control information (PCI) specific to the protocol in use. This parameter can be NULL if no PCI is returned.

pbRecvBuffer [out] Pointer to any data returned from the card.

pcbRecvLength [in, out] Supplies the length, in bytes, of the pbRecvBuffer parameter and receives the actual number of bytes received from the smart card.


Return value:

Returns SCARD_S_SUCCESS (0) or error code.


Comments:

Purchase complete VFP solution.
Download ACOS3 Class Library

The SCardTransmit function is a smart card and reader access function.

See also: SCardConnect.