Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than winscard, prefix the name with the module name and a period.
scardtransmit (winscard)
.
C# Signature:
[DllImport("winscard.dll")]
static extern int SCardTransmit(int hCard, IntPtr pioSendPci, byte[] pbSendBuffer, int cbSendLength, SCARD_IO_REQUEST pioRecvPci,
byte[] pbRecvBuffer, ref int pcbRecvLength);
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
One may Get the SCARD_IO_REQUEST values which are defined as pointer to initialised data export in WinSCard.dll using the LoadLibrary and GetProcAddress pair.
Sample Code:
// Paste here code for SCardEstablishContext, SCardConnect
[StructLayout(LayoutKind.Sequential)]
internal class SCARD_IO_REQUEST
{
internal uint dwProtocol;
internal int cbPciLength;
public SCARD_IO_REQUEST()
{
dwProtocol = 0;
}
}
// Paste here code for SCardDisconnect, pbRecvBuffer contains Answer as Byte[]
Alternative Managed API:
TODO
The SCardTransmit function sends a service request to the smart card and expects to receive data back from the card.
12/17/2015 2:53:28 AM - -88.98.38.185
TODO - a short description
3/16/2007 8:35:59 AM - -204.124.82.48
The LoadLibrary API maps the specified DLL file into the address space of the calling process.
1/15/2020 12:35:28 AM - -62.4.65.26
The GetProcAddress API
3/2/2022 7:31:41 PM - -78.86.32.130
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).