Skip to content

Commit

Permalink
Updated SCardTransmit()
Browse files Browse the repository at this point in the history
  • Loading branch information
matt335672 committed Mar 20, 2024
1 parent 13b637a commit b755052
Show file tree
Hide file tree
Showing 4 changed files with 516 additions and 636 deletions.
81 changes: 40 additions & 41 deletions sesman/chansrv/pcsc/xrdp_pcsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,37 +126,34 @@ enum pcsc_message_code
// 16 dwActiveProtocol
//
// *****************************************************************************
// D I S C O N N E C T
// R E C O N N E C T
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.16) :-
// Offset Value
// 0 Header, code SCARD_DISCONNECT
// Request (See [MS-RDPESC] 2.2.2.15)
// 0 Header, code SCARD_RECONNECT
// 8 hCard
// 12 dwDisposition
// 12 dwShareMode
// 16 dwPreferredProtocols
// 20 dwInitialization
//
// Response (See [MS-RDPESC] 2.2.3.3) :-
// Response (See [MS-RDPESC] 2.2.3.7) :-
// Offset Value
// 0 Header, code SCARD_DISCONNECT
// 0 Header, code SCARD_RECONNECT
// 8 ReturnCode
// 12 dwActiveProtocol
//
// *****************************************************************************
// S T A T U S
// D I S C O N N E C T
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.18) :-
// Request (See [MS-RDPESC] 2.2.2.16) :-
// Offset Value
// 0 Header, code SCARD_STATUS
// 0 Header, code SCARD_DISCONNECT
// 8 hCard
// 12 dwDisposition
//
// Response (See [MS-RDPESC] 2.2.3.10) :-
// Response (See [MS-RDPESC] 2.2.3.3) :-
// Offset Value
// 0 Header, code SCARD_STATUS
// 0 Header, code SCARD_DISCONNECT
// 8 ReturnCode
// 12 dwState (MS-style - not a PCSCLite bitmask)
// 16 dwProtocol
// 20 cBytes
// 24 cbAtrLen
// 28 Friendly name of reader (UTF-8)
// 28+cBytes cbAtr
//
// *****************************************************************************
// B E G I N T R A N S A C T I O N
Expand Down Expand Up @@ -217,19 +214,6 @@ enum pcsc_message_code
// ?? pioRecvPci.pbExtraBytes
//
// *****************************************************************************
// C A N C E L
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.2) :-
// Offset Value
// 0 Header, code SCARD_CANCEL
// 8 hCard
//
// Response (See [MS-RDPESC] 2.2.3.3) :-
// Offset Value
// 0 Header, code SCARD_CANCEL
// 8 ReturnCode
//
// *****************************************************************************
// C O N T R O L
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.20) :-
Expand All @@ -249,21 +233,36 @@ enum pcsc_message_code
// 16 *pvOutBuffer (only if ReturnCode == SCARD_S_SUCCESS)
//
// *****************************************************************************
// R E C O N N E C T
// S T A T U S
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.15)
// 0 Header, code SCARD_RECONNECT
// Request (See [MS-RDPESC] 2.2.2.18) :-
// Offset Value
// 0 Header, code SCARD_STATUS
// 8 hCard
// 12 dwShareMode
// 16 dwPreferredProtocols
// 20 dwInitialization
//
// Response (See [MS-RDPESC] 2.2.3.7) :-
// Response (See [MS-RDPESC] 2.2.3.10) :-
// Offset Value
// 0 Header, code SCARD_RECONNECT
// 0 Header, code SCARD_STATUS
// 8 ReturnCode
// 12 dwState (MS-style - not a PCSCLite bitmask)
// 16 dwProtocol
// 20 cBytes
// 24 cbAtrLen
// 28 Friendly name of reader (UTF-8)
// 28+cBytes cbAtr
//
// *****************************************************************************
// C A N C E L
// *****************************************************************************
// Request (See [MS-RDPESC] 2.2.2.2) :-
// Offset Value
// 0 Header, code SCARD_CANCEL
// 8 hCard
//
// Response (See [MS-RDPESC] 2.2.3.3) :-
// Offset Value
// 0 Header, code SCARD_CANCEL
// 8 ReturnCode
// 12 dwActiveProtocol

//

#endif // XRDP_PCSC_H
Loading

0 comments on commit b755052

Please sign in to comment.