2 * Copyright 2022 Hans Leidekker for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 /* pcsclite defines DWORD as unsigned long on 64-bit (except on macOS),
20 * so use UINT64 instead. */
22 struct scard_establish_context_params
28 struct scard_release_context_params
33 struct scard_is_valid_context_params
38 #define MAX_ATR_SIZE 33
46 unsigned char atr
[MAX_ATR_SIZE
];
49 struct scard_get_status_change_params
53 struct reader_state
*states
;
57 struct scard_cancel_params
62 struct scard_list_readers_params
70 struct scard_list_reader_groups_params
77 struct scard_connect_params
79 UINT64 context_handle
;
82 UINT64 preferred_protocols
;
83 UINT64
*connect_handle
;
87 struct scard_status_params
98 struct scard_reconnect_params
102 UINT64 preferred_protocols
;
103 UINT64 initialization
;
107 struct scard_disconnect_params
113 struct scard_begin_transaction_params
118 struct scard_end_transaction_params
130 struct scard_transmit_params
133 const struct io_request
*send
;
134 const BYTE
*send_buf
;
136 struct io_request
*recv
;
141 struct scard_control_params
152 struct scard_get_attrib_params
160 struct scard_set_attrib_params
170 unix_scard_establish_context
,
171 unix_scard_release_context
,
172 unix_scard_is_valid_context
,
173 unix_scard_get_status_change
,
175 unix_scard_list_readers
,
176 unix_scard_list_reader_groups
,
179 unix_scard_reconnect
,
180 unix_scard_disconnect
,
181 unix_scard_begin_transaction
,
182 unix_scard_end_transaction
,
185 unix_scard_get_attrib
,
186 unix_scard_set_attrib
,