1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! The `SmartCardEmulation` domain.
//!
//! Method names for the `SmartCardEmulation` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Enables the |SmartCardEmulation| domain.
pub const ENABLE: &str = "SmartCardEmulation.enable";
/// Disables the |SmartCardEmulation| domain.
pub const DISABLE: &str = "SmartCardEmulation.disable";
/// Reports the successful result of a |SCardEstablishContext| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext>
///
/// Parameters:
/// - `requestId`: string
/// - `contextId`: integer
pub const REPORT_ESTABLISH_CONTEXT_RESULT: &str = "SmartCardEmulation.reportEstablishContextResult";
/// Reports the successful result of a |SCardReleaseContext| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext>
///
/// Parameters:
/// - `requestId`: string
pub const REPORT_RELEASE_CONTEXT_RESULT: &str = "SmartCardEmulation.reportReleaseContextResult";
/// Reports the successful result of a |SCardListReaders| call. This maps to:
/// PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa>
///
/// Parameters:
/// - `requestId`: string
/// - `readers`: array
pub const REPORT_LIST_READERS_RESULT: &str = "SmartCardEmulation.reportListReadersResult";
/// Reports the successful result of a |SCardGetStatusChange| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea>
///
/// Parameters:
/// - `requestId`: string
/// - `readerStates`: array
pub const REPORT_GET_STATUS_CHANGE_RESULT: &str = "SmartCardEmulation.reportGetStatusChangeResult";
/// Reports the result of a |SCardBeginTransaction| call. On success, this
/// creates a new transaction object. This maps to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction>
///
/// Parameters:
/// - `requestId`: string
/// - `handle`: integer
pub const REPORT_BEGIN_TRANSACTION_RESULT: &str = "SmartCardEmulation.reportBeginTransactionResult";
/// Reports the successful result of a call that returns only a result code.
/// Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|,
/// |SCardEndTransaction|. This maps to: 1. SCardCancel PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel>
/// 2. SCardDisconnect PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect>
/// 3. SCardSetAttrib PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib>
/// 4. SCardEndTransaction PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction>
///
/// Parameters:
/// - `requestId`: string
pub const REPORT_PLAIN_RESULT: &str = "SmartCardEmulation.reportPlainResult";
/// Reports the successful result of a |SCardConnect| call. This maps to:
/// PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta>
///
/// Parameters:
/// - `requestId`: string
/// - `handle`: integer
/// - `activeProtocol`: Protocol (optional)
pub const REPORT_CONNECT_RESULT: &str = "SmartCardEmulation.reportConnectResult";
/// Reports the successful result of a call that sends back data on success.
/// Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. This maps
/// to: 1. SCardTransmit PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit>
/// 2. SCardControl PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol>
/// 3. SCardGetAttrib PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib>
///
/// Parameters:
/// - `requestId`: string
/// - `data`: string
pub const REPORT_DATA_RESULT: &str = "SmartCardEmulation.reportDataResult";
/// Reports the successful result of a |SCardStatus| call. This maps to: PC/SC
/// Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa>
///
/// Parameters:
/// - `requestId`: string
/// - `readerName`: string
/// - `state`: ConnectionState
/// - `atr`: string
/// - `protocol`: Protocol (optional)
pub const REPORT_STATUS_RESULT: &str = "SmartCardEmulation.reportStatusResult";
/// Reports an error result for the given request.
///
/// Parameters:
/// - `requestId`: string
/// - `resultCode`: ResultCode
pub const REPORT_ERROR: &str = "SmartCardEmulation.reportError";