The MinGW.org Windows System Libraries
リビジョン | 2377a517504dd4ec483c1a2fab8f5967beb5153c (tree) |
---|---|
日時 | 2013-10-07 01:28:24 |
作者 | Earnie Boyd <earnie@user...> |
コミッター | Earnie Boyd |
Implement [#2072], [#2088], [#2089], [#2090], [#2091], [#2092] and [#2093].
@@ -12,6 +12,26 @@ RELEASE 4.1: | ||
12 | 12 | * include/unknwn.h: Move the RPC headers before the file protection. |
13 | 13 | [#2087] unknwn.h needs to include RPC headers before file filter. |
14 | 14 | |
15 | + * include/rpcasync.h: Restructure for proper use. | |
16 | + [#2072] rpcasync.h structures need filtered based on OS version. | |
17 | + | |
18 | + * include/rpcdce.h: This file contained a mess. | |
19 | + [#2088] rpcdce.h has typos and syntax errors throughout. | |
20 | + [#2089] rpcdce.h is missing RPC_BINDING_HANDLE_OPTIONS_V1 structure. | |
21 | + | |
22 | + * include/windows.h: Include basetyps.h for REFIID definition. | |
23 | + [#2090] Need basetyps.h in windows.h for shellapi.h use of REFIID. | |
24 | + | |
25 | + * include/winefs.h: Fix a badly formed define. Fix typo in use of | |
26 | + __API_VOID_DEPRECATED__. | |
27 | + [#2091] winefs.h has __API_DWORD_DEPRECATED__ incorrectly defined. | |
28 | + | |
29 | + * include/winscard.h: SCARD_AIRMASK should be SCARD_ATRMASK. | |
30 | + [#2092] SCARD_AIRMASK should be SCARD_ATRMASK in winscard.h. | |
31 | + | |
32 | + * include/winsock.h include/winsock2.h: Need timeval structure. | |
33 | + [#2093] Winsock.h and winsock2.h missing timeval structure. | |
34 | + | |
15 | 35 | 2013-10-02 Earnie Boyd <earnie@users.sourceforge.net> |
16 | 36 | |
17 | 37 | [#2081] Neeed a __FORCEINLINE macro for better definition. |
@@ -49,18 +49,19 @@ typedef enum _RPC_NOTIFICATION_TYPES { | ||
49 | 49 | RpcNotificationTypeCallback |
50 | 50 | } RPC_NOTIFICATION_TYPES; |
51 | 51 | |
52 | -#if !(_WIN32_WINNT >= _WIN32_WINNT_VISTA) | |
53 | 52 | typedef enum _RPC_ASYNC_EVENT { |
54 | - RpcCallComplete, | |
55 | - RpcSendComplete, | |
56 | - RpcReceiveComplete, | |
57 | - RpcClientDisconnect | |
53 | + RpcCallComplete | |
54 | + ,RpcSendComplete | |
55 | + ,RpcReceiveComplete | |
56 | + ,RpcClientDisconnect | |
57 | +#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA) | |
58 | + ,RpcClientCancel | |
59 | +#endif | |
58 | 60 | } RPC_ASYNC_EVENT; |
59 | 61 | |
60 | 62 | #define RPC_CALL_ATTRIBUTES_VERSION 1 |
61 | 63 | #define RPC_QUERY_SERVER_PRINCIPAL_NAME 2 |
62 | 64 | #define RPC_QUERY_CLIENT_PRINCIPAL_NAME 4 |
63 | -#endif | |
64 | 65 | |
65 | 66 | struct _RPC_ASYNC_STATE; |
66 | 67 |
@@ -156,7 +157,7 @@ typedef struct tagRPC_EE_INFO_PARAM { | ||
156 | 157 | #define EEInfoUseFileTime 4 |
157 | 158 | #define EEInfoGCCOM 11 |
158 | 159 | |
159 | -typedef struct tagRPC_EXTENDED_ERROR_INFO | |
160 | +typedef struct tagRPC_EXTENDED_ERROR_INFO { | |
160 | 161 | ULONG Version; |
161 | 162 | LPWSTR ComputerName; |
162 | 163 | ULONG ProcessID; |
@@ -232,13 +233,6 @@ typedef RPC_CALL_ATTRIBUTES_V1 RPC_CALL_ATTRIBUTES; | ||
232 | 233 | #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WINXP) */ |
233 | 234 | |
234 | 235 | #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA) |
235 | -typedef enum _RPC_ASYNC_EVENT { | |
236 | - RpcCallComplete, | |
237 | - RpcSendComplete, | |
238 | - RpcReceiveComplete, | |
239 | - RpcClientDisconnect, | |
240 | - RpcClientCancel | |
241 | -} RPC_ASYNC_EVENT; | |
242 | 236 | |
243 | 237 | #define RPC_CALL_STATUS_CANCELLED 0x01 |
244 | 238 | #define RPC_CALL_STATUS_DISCONNECTED 0x02 |
@@ -257,6 +251,19 @@ typedef enum tagRpcCallClientLocality { | ||
257 | 251 | rcclClientUnknownLocality |
258 | 252 | } RpcCallClientLocality; |
259 | 253 | |
254 | +typedef enum tagRpcLocalAddressFormat { | |
255 | + rlafInvalid = 0, | |
256 | + rlafIPv4, | |
257 | + rlafIPv6 | |
258 | +} RpcLocalAddressFormat; | |
259 | + | |
260 | +typedef struct _RPC_CALL_LOCAL_ADDRESS_V1 { | |
261 | + unsigned int Version; | |
262 | + void *Buffer; | |
263 | + unsigned long BufferSize; | |
264 | + RpcLocalAddressFormat AddressFormat; | |
265 | +} RPC_CALL_LOCAL_ADDRESS_V1, *PRPC_CALL_LOCAL_ADDRESS_V1; | |
266 | + | |
260 | 267 | typedef struct tagRPC_CALL_ATTRIBUTES_V2_W { |
261 | 268 | unsigned int Version; |
262 | 269 | unsigned long Flags; |
@@ -299,18 +306,7 @@ typedef struct tagRPC_CALL_ATTRIBUTES_V2_A { | ||
299 | 306 | UUID InterfaceUuid; |
300 | 307 | } RPC_CALL_ATTRIBUTES_V2_A; |
301 | 308 | |
302 | -typedef enum tagRpcLocalAddressFormat { | |
303 | - rlafInvalid = 0, | |
304 | - rlafIPv4, | |
305 | - rlafIPv6 | |
306 | -} RpcLocalAddressFormat; | |
307 | - | |
308 | -typedef struct _RPC_CALL_LOCAL_ADDRESS_V1 { | |
309 | - unsigned int Version; | |
310 | - void *Buffer; | |
311 | - unsigned long BufferSize; | |
312 | - RpcLocalAddressFormat AddressFormat; | |
313 | -} RPC_CALL_LOCAL_ADDRESS_V1, *PRPC_CALL_LOCAL_ADDRESS_V1; | |
309 | +#define RPC_CALL_ATTRIBUTES_V2 __AW(RPC_CALL_ATTRIBUTES_V2_) | |
314 | 310 | |
315 | 311 | #define RPC_CALL_ATTRIBUTES_VERSION 2 |
316 | 312 | #define RPC_QUERY_SERVER_PRINCIPAL_NAME 0x02 |
@@ -352,7 +352,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A { | ||
352 | 352 | unsigned long NumberOfAuthnSchemes; |
353 | 353 | unsigned long *AuthnSchemes; |
354 | 354 | RPC_CSTR ServerCertificateSubject; |
355 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A | |
355 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A; | |
356 | 356 | |
357 | 357 | typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W { |
358 | 358 | SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials; |
@@ -361,7 +361,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W { | ||
361 | 361 | unsigned long NumberOfAuthnSchemes; |
362 | 362 | unsigned long *AuthnSchemes; |
363 | 363 | RPC_WSTR ServerCertificateSubject; |
364 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W | |
364 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W; | |
365 | 365 | |
366 | 366 | #define RPC_HTTP_TRANSPORT_CREDENTIALS __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_) |
367 | 367 | #define PRPC_HTTP_TRANSPORT_CREDENTIALS __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_) |
@@ -374,9 +374,9 @@ typedef struct _RPC_SECURITY_QOS_V2_A { | ||
374 | 374 | unsigned long ImpersonationType; |
375 | 375 | unsigned long AdditionalSecurityInfoType; |
376 | 376 | union { |
377 | - RPC_HTTP_TRANSPORT_CREDENITIALS_A *HttpCredentials; | |
378 | - } u | |
379 | -} RPC_SECURITY_QOS_V2_A *PRPC_SECURITY_QOS_V2_A; | |
377 | + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; | |
378 | + } u; | |
379 | +} RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A; | |
380 | 380 | |
381 | 381 | typedef struct _RPC_SECURITY_QOS_V2_W { |
382 | 382 | unsigned long Version; |
@@ -385,9 +385,9 @@ typedef struct _RPC_SECURITY_QOS_V2_W { | ||
385 | 385 | unsigned long ImpersonationType; |
386 | 386 | unsigned long AdditionalSecurityInfoType; |
387 | 387 | union { |
388 | - RPC_HTTP_TRANSPORT_CREDENITIALS_W *HttpCredentials; | |
389 | - } u | |
390 | -} RPC_SECURITY_QOS_V2_W *PRPC_SECURITY_QOS_V2_W; | |
388 | + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; | |
389 | + } u; | |
390 | +} RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W; | |
391 | 391 | |
392 | 392 | #define RPC_SECURITY_QOS_V2 __AW(RPC_SECURITY_QOS_V2_) |
393 | 393 | #define PRPC_SECURITY_QOS_V2 __AW(PRPC_SECURITY_QOS_V2_) |
@@ -409,10 +409,10 @@ typedef struct _RPC_SECURITY_QOS_V3_A { | ||
409 | 409 | unsigned long ImpersonationType; |
410 | 410 | unsigned long AdditionalSecurityInfoType; |
411 | 411 | union { |
412 | - RPC_HTTP_TRANSPORT_CREDENITIALS_A *HttpCredentials; | |
413 | - } u | |
412 | + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; | |
413 | + } u; | |
414 | 414 | void *Sid; |
415 | -} RPC_SECURITY_QOS_V3_A *PRPC_SECURITY_QOS_V3_A; | |
415 | +} RPC_SECURITY_QOS_V3_A, *PRPC_SECURITY_QOS_V3_A; | |
416 | 416 | |
417 | 417 | typedef struct _RPC_SECURITY_QOS_V3_W { |
418 | 418 | unsigned long Version; |
@@ -421,10 +421,10 @@ typedef struct _RPC_SECURITY_QOS_V3_W { | ||
421 | 421 | unsigned long ImpersonationType; |
422 | 422 | unsigned long AdditionalSecurityInfoType; |
423 | 423 | union { |
424 | - RPC_HTTP_TRANSPORT_CREDENITIALS_W *HttpCredentials; | |
425 | - } u | |
424 | + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; | |
425 | + } u; | |
426 | 426 | void *Sid; |
427 | -} RPC_SECURITY_QOS_V3_W *PRPC_SECURITY_QOS_V3_W; | |
427 | +} RPC_SECURITY_QOS_V3_W, *PRPC_SECURITY_QOS_V3_W; | |
428 | 428 | |
429 | 429 | #define RPC_SECURITY_QOS_V3 __AW(RPC_SECURITY_QOS_V3_) |
430 | 430 | #define PRPC_SECURITY_QOS_V3 __AW(PRPC_SECURITY_QOS_V3_) |
@@ -436,7 +436,7 @@ typedef enum _RPC_HTTP_REDIRECTOR_STAGE { | ||
436 | 436 | RPCHTTP_RS_SESSION, |
437 | 437 | RPCHTTP_RS_ACCESS_2, |
438 | 438 | RPCHTTP_RS_INTERFACE |
439 | -} RPC_HTTP_REDIRECTORY_STAGE; | |
439 | +} RPC_HTTP_REDIRECTOR_STAGE; | |
440 | 440 | |
441 | 441 | typedef RPC_STATUS (__RPC_USER * RPC_NEW_HTTP_PROXY_CHANNEL) ( |
442 | 442 | RPC_HTTP_REDIRECTOR_STAGE RedirectorStage, |
@@ -478,7 +478,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A { | ||
478 | 478 | SEC_WINNT_AUTH_IDENTITY_A *ProxyCredentials; |
479 | 479 | unsigned long NumberOfProxyAuthnSchemes; |
480 | 480 | unsigned long *ProxyAuthnSchemes; |
481 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A | |
481 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; | |
482 | 482 | |
483 | 483 | typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W { |
484 | 484 | SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials; |
@@ -490,7 +490,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W { | ||
490 | 490 | SEC_WINNT_AUTH_IDENTITY_W *ProxyCredentials; |
491 | 491 | unsigned long NumberOfProxyAuthnSchemes; |
492 | 492 | unsigned long *ProxyAuthnSchemes; |
493 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W | |
493 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; | |
494 | 494 | |
495 | 495 | #define RPC_HTTP_TRANSPORT_CREDENTIALS_V2 __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_V2_) |
496 | 496 | #define PRPC_HTTP_TRANSPORT_CREDENTIALS_V2 __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_) |
@@ -503,11 +503,11 @@ typedef struct _RPC_SECURITY_QOS_V4_A { | ||
503 | 503 | unsigned long ImpersonationType; |
504 | 504 | unsigned long AdditionalSecurityInfoType; |
505 | 505 | union { |
506 | - RPC_HTTP_TRANSPORT_CREDENITIALS_A *HttpCredentials; | |
507 | - } u | |
506 | + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; | |
507 | + } u; | |
508 | 508 | void *Sid; |
509 | 509 | unsigned int EffectiveOnly; |
510 | -} RPC_SECURITY_QOS_V4_A *PRPC_SECURITY_QOS_V4_A; | |
510 | +} RPC_SECURITY_QOS_V4_A, *PRPC_SECURITY_QOS_V4_A; | |
511 | 511 | |
512 | 512 | typedef struct _RPC_SECURITY_QOS_V4_W { |
513 | 513 | unsigned long Version; |
@@ -516,11 +516,11 @@ typedef struct _RPC_SECURITY_QOS_V4_W { | ||
516 | 516 | unsigned long ImpersonationType; |
517 | 517 | unsigned long AdditionalSecurityInfoType; |
518 | 518 | union { |
519 | - RPC_HTTP_TRANSPORT_CREDENITIALS_W *HttpCredentials; | |
520 | - } u | |
519 | + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; | |
520 | + } u; | |
521 | 521 | void *Sid; |
522 | 522 | unsigned int EffectiveOnly; |
523 | -} RPC_SECURITY_QOS_V4_W *PRPC_SECURITY_QOS_V4_W; | |
523 | +} RPC_SECURITY_QOS_V4_W, *PRPC_SECURITY_QOS_V4_W; | |
524 | 524 | |
525 | 525 | #define RPC_SECURITY_QOS_V4 __AW(RPC_SECURITY_QOS_V4_) |
526 | 526 | #define PRPC_SECURITY_QOS_V4 __AW(PRPC_SECURITY_QOS_V4_) |
@@ -538,7 +538,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A { | ||
538 | 538 | RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; |
539 | 539 | unsigned long NumberOfProxyAuthnSchemes; |
540 | 540 | unsigned long *ProxyAuthnSchemes; |
541 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A | |
541 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; | |
542 | 542 | |
543 | 543 | typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W { |
544 | 544 | SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials; |
@@ -550,7 +550,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W { | ||
550 | 550 | RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; |
551 | 551 | unsigned long NumberOfProxyAuthnSchemes; |
552 | 552 | unsigned long *ProxyAuthnSchemes; |
553 | -} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W | |
553 | +} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; | |
554 | 554 | |
555 | 555 | #define RPC_HTTP_TRANSPORT_CREDENTIALS_V3 __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_V3_) |
556 | 556 | #define PRPC_HTTP_TRANSPORT_CREDENTIALS_V3 __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_) |
@@ -834,7 +834,7 @@ typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A { | ||
834 | 834 | union { |
835 | 835 | unsigned short *Reserved; |
836 | 836 | } u1; |
837 | - UUID Object Uuid; | |
837 | + UUID ObjectUuid; | |
838 | 838 | } RPC_BINDING_HANDLE_TEMPLATE_V1_A, *PRPC_BINDING_HANDLE_TEMPLATE_V1_A; |
839 | 839 | |
840 | 840 | typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { |
@@ -846,7 +846,7 @@ typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { | ||
846 | 846 | union { |
847 | 847 | unsigned short *Reserved; |
848 | 848 | } u1; |
849 | - UUID Object Uuid; | |
849 | + UUID ObjectUuid; | |
850 | 850 | } RPC_BINDING_HANDLE_TEMPLATE_V1_W, *PRPC_BINDING_HANDLE_TEMPLATE_V1_W; |
851 | 851 | |
852 | 852 | #define RPC_BINDING_HANDLE_TEMPLATE_V1 __AW(RPC_BINDING_HANDLE_TEMPLATE_V1_) |
@@ -877,6 +877,13 @@ typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_W { | ||
877 | 877 | #define PRPC_BINDING_HANDLE_SECURITY_V1 __AW(PRPC_BINDING_HANDLE_SECURITY_V1_) |
878 | 878 | #define _RPC_BINDING_HANDLE_SECURITY_V1 __AW(_RPC_BINDING_HANDLE_SECURITY_V1_) |
879 | 879 | |
880 | +typedef struct _RPC_BINDING_HANDLE_OPTIONS_V1 { | |
881 | + unsigned long Version; | |
882 | + unsigned long Flags; | |
883 | + unsigned long ComTimeout; | |
884 | + unsigned long CallTimeout; | |
885 | +} RPC_BINDING_HANDLE_OPTIONS_V1, RPC_BINDING_HANDLE_OPTIONS; | |
886 | + | |
880 | 887 | #ifdef _AUTH_IDENTITY_A_DEFINED |
881 | 888 | ___RPC_ENTRY__ RpcBindingCreateA(RPC_BINDING_HANDLE_TEMPLATE_V1_A *, RPC_BINDING_HANDLE_SECURITY_V1_A *, RPC_BINDING_HANDLE_OPTIONS_V1 *, RPC_BINDING_HANDLE *); |
882 | 889 | #endif /* def _AUTH_IDENTITY_A_DEFINED */ |
@@ -76,6 +76,7 @@ | ||
76 | 76 | #include <mmsystem.h> |
77 | 77 | #include <nb30.h> |
78 | 78 | #include <rpc.h> |
79 | +#include <basetyps.h> | |
79 | 80 | #include <shellapi.h> |
80 | 81 | #include <winperf.h> |
81 | 82 | #include <winsock.h> |
@@ -33,7 +33,7 @@ extern "C" { | ||
33 | 33 | #define ___API_DWORD__ WINADVAPI DWORD WINAPI |
34 | 34 | #define ___API_BOOL__ WINADVAPI BOOL WINAPI |
35 | 35 | #define ___API_VOID__ WINADVAPI VOID WINAPI |
36 | -#define ___API_DWORD_DEPRECATED__ __MINGW_DEPRECATED (WINADVAPI DWORD WINAPI) | |
36 | +#define ___API_DWORD_DEPRECATED__ __MINGW_DEPRECATED WINADVAPI DWORD WINAPI | |
37 | 37 | #define ___API_VOID_DEPRECATED__ __MINGW_DEPRECATED WINADVAPI VOID WINAPI |
38 | 38 | |
39 | 39 | #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) |
@@ -186,7 +186,7 @@ ___API_DWORD__ SetUserFileEncryptionKeyEx(PENCRYPTION_CERTIFICATE, DWORD, DWORD, | ||
186 | 186 | |
187 | 187 | ___API_DWORD_DEPRECATED__ GetEncryptedFileMetadata(LPCWSTR, PDWORD, PBYTE); |
188 | 188 | ___API_DWORD_DEPRECATED__ SetEncryptedFileMetadata(LPCWSTR, PBYTE, PBYTE, PENCRYPTION_CERTIFICATE_HASH, DWORD, PENCRYPTION_CERTIFICATE_HASH_LIST); |
189 | -___API_VOID_DEPRICATED__ FreeEncryptedFileMetadata(PBYTE); | |
189 | +___API_VOID_DEPRECATED__ FreeEncryptedFileMetadata(PBYTE); | |
190 | 190 | |
191 | 191 | #endif /* (_WIN32_WINNT >= _WIN32_WINNT_VISTA) */ |
192 | 192 |
@@ -410,14 +410,14 @@ ___EAPI_LONG__ SCardDlgExtendedError(void); | ||
410 | 410 | ___EAPI_HANDLE__ SCardAccessStartedEvent(void); |
411 | 411 | ___EAPI_VOID__ SCardReleaseStartedEvent(void); |
412 | 412 | |
413 | -typedef struct _SCARD_AIRMASK { | |
413 | +typedef struct _SCARD_ATRMASK { | |
414 | 414 | DWORD cbAtr; |
415 | 415 | BYTE rgbAtr[36]; |
416 | 416 | BYTE rgbMask[36]; |
417 | -} SCARD_AIRMASK, *PSCARD_AIRMASK, *LPSCARD_AIRMASK; | |
417 | +} SCARD_ATRMASK, *PSCARD_ATRMASK, *LPSCARD_ATRMASK; | |
418 | 418 | |
419 | -___EAPI_LONG__ SCardLocateCardsByATRA(SCARDCONTEXT, LPSCARD, DWORD, LPSCARD_READERSTATEA, DWORD); | |
420 | -___EAPI_LONG__ SCardLocateCardsByATRW(SCARDCONTEXT, LPSCARD, DWORD, LPSCARD_READERSTATEW, DWORD); | |
419 | +___EAPI_LONG__ SCardLocateCardsByATRA(SCARDCONTEXT, LPSCARD_ATRMASK, DWORD, LPSCARD_READERSTATEA, DWORD); | |
420 | +___EAPI_LONG__ SCardLocateCardsByATRW(SCARDCONTEXT, LPSCARD_ATRMASK, DWORD, LPSCARD_READERSTATEW, DWORD); | |
421 | 421 | #define SCardLocateCardsByATR __AW(SCardLocateCardsByATR) |
422 | 422 | #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WINXP) */ |
423 | 423 |
@@ -42,6 +42,7 @@ | ||
42 | 42 | #define _GNU_H_WINDOWS32_SOCKETS |
43 | 43 | |
44 | 44 | #include <windows.h> |
45 | +#include <sys/time.h> | |
45 | 46 | |
46 | 47 | #ifdef __cplusplus |
47 | 48 | extern "C" { |
@@ -38,6 +38,7 @@ | ||
38 | 38 | #define _GNU_H_WINDOWS32_SOCKETS |
39 | 39 | |
40 | 40 | #include <windows.h> |
41 | +#include <sys/time.h> | |
41 | 42 | |
42 | 43 | #ifndef WINSOCK_API_LINKAGE |
43 | 44 | #ifdef __W32API_USE_DLLIMPORT__ |