SCardTransmit function Null safety winscard

int SCardTransmit(
  1. int hCard,
  2. Pointer<SCARD_IO_REQUEST> pioSendPci,
  3. Pointer<Uint8> pbSendBuffer,
  4. int cbSendLength,
  5. Pointer<SCARD_IO_REQUEST> pioRecvPci,
  6. Pointer<Uint8> pbRecvBuffer,
  7. Pointer<Uint32> pcbRecvLength
)

The SCardTransmit function sends a service request to the smart card and expects to receive data back from the card.

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

Implementation

int SCardTransmit(
        int hCard,
        Pointer<SCARD_IO_REQUEST> pioSendPci,
        Pointer<Uint8> pbSendBuffer,
        int cbSendLength,
        Pointer<SCARD_IO_REQUEST> pioRecvPci,
        Pointer<Uint8> pbRecvBuffer,
        Pointer<Uint32> pcbRecvLength) =>
    _SCardTransmit(hCard, pioSendPci, pbSendBuffer, cbSendLength, pioRecvPci,
        pbRecvBuffer, pcbRecvLength);