• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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].

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,26 @@ RELEASE 4.1:
1212 * include/unknwn.h: Move the RPC headers before the file protection.
1313 [#2087] unknwn.h needs to include RPC headers before file filter.
1414
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+
1535 2013-10-02 Earnie Boyd <earnie@users.sourceforge.net>
1636
1737 [#2081] Neeed a __FORCEINLINE macro for better definition.
--- a/include/rpcasync.h
+++ b/include/rpcasync.h
@@ -49,18 +49,19 @@ typedef enum _RPC_NOTIFICATION_TYPES {
4949 RpcNotificationTypeCallback
5050 } RPC_NOTIFICATION_TYPES;
5151
52-#if !(_WIN32_WINNT >= _WIN32_WINNT_VISTA)
5352 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
5860 } RPC_ASYNC_EVENT;
5961
6062 #define RPC_CALL_ATTRIBUTES_VERSION 1
6163 #define RPC_QUERY_SERVER_PRINCIPAL_NAME 2
6264 #define RPC_QUERY_CLIENT_PRINCIPAL_NAME 4
63-#endif
6465
6566 struct _RPC_ASYNC_STATE;
6667
@@ -156,7 +157,7 @@ typedef struct tagRPC_EE_INFO_PARAM {
156157 #define EEInfoUseFileTime 4
157158 #define EEInfoGCCOM 11
158159
159-typedef struct tagRPC_EXTENDED_ERROR_INFO
160+typedef struct tagRPC_EXTENDED_ERROR_INFO {
160161 ULONG Version;
161162 LPWSTR ComputerName;
162163 ULONG ProcessID;
@@ -232,13 +233,6 @@ typedef RPC_CALL_ATTRIBUTES_V1 RPC_CALL_ATTRIBUTES;
232233 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WINXP) */
233234
234235 #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;
242236
243237 #define RPC_CALL_STATUS_CANCELLED 0x01
244238 #define RPC_CALL_STATUS_DISCONNECTED 0x02
@@ -257,6 +251,19 @@ typedef enum tagRpcCallClientLocality {
257251 rcclClientUnknownLocality
258252 } RpcCallClientLocality;
259253
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+
260267 typedef struct tagRPC_CALL_ATTRIBUTES_V2_W {
261268 unsigned int Version;
262269 unsigned long Flags;
@@ -299,18 +306,7 @@ typedef struct tagRPC_CALL_ATTRIBUTES_V2_A {
299306 UUID InterfaceUuid;
300307 } RPC_CALL_ATTRIBUTES_V2_A;
301308
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_)
314310
315311 #define RPC_CALL_ATTRIBUTES_VERSION 2
316312 #define RPC_QUERY_SERVER_PRINCIPAL_NAME 0x02
--- a/include/rpcdce.h
+++ b/include/rpcdce.h
@@ -352,7 +352,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A {
352352 unsigned long NumberOfAuthnSchemes;
353353 unsigned long *AuthnSchemes;
354354 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;
356356
357357 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W {
358358 SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials;
@@ -361,7 +361,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W {
361361 unsigned long NumberOfAuthnSchemes;
362362 unsigned long *AuthnSchemes;
363363 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;
365365
366366 #define RPC_HTTP_TRANSPORT_CREDENTIALS __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_)
367367 #define PRPC_HTTP_TRANSPORT_CREDENTIALS __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_)
@@ -374,9 +374,9 @@ typedef struct _RPC_SECURITY_QOS_V2_A {
374374 unsigned long ImpersonationType;
375375 unsigned long AdditionalSecurityInfoType;
376376 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;
380380
381381 typedef struct _RPC_SECURITY_QOS_V2_W {
382382 unsigned long Version;
@@ -385,9 +385,9 @@ typedef struct _RPC_SECURITY_QOS_V2_W {
385385 unsigned long ImpersonationType;
386386 unsigned long AdditionalSecurityInfoType;
387387 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;
391391
392392 #define RPC_SECURITY_QOS_V2 __AW(RPC_SECURITY_QOS_V2_)
393393 #define PRPC_SECURITY_QOS_V2 __AW(PRPC_SECURITY_QOS_V2_)
@@ -409,10 +409,10 @@ typedef struct _RPC_SECURITY_QOS_V3_A {
409409 unsigned long ImpersonationType;
410410 unsigned long AdditionalSecurityInfoType;
411411 union {
412- RPC_HTTP_TRANSPORT_CREDENITIALS_A *HttpCredentials;
413- } u
412+ RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
413+ } u;
414414 void *Sid;
415-} RPC_SECURITY_QOS_V3_A *PRPC_SECURITY_QOS_V3_A;
415+} RPC_SECURITY_QOS_V3_A, *PRPC_SECURITY_QOS_V3_A;
416416
417417 typedef struct _RPC_SECURITY_QOS_V3_W {
418418 unsigned long Version;
@@ -421,10 +421,10 @@ typedef struct _RPC_SECURITY_QOS_V3_W {
421421 unsigned long ImpersonationType;
422422 unsigned long AdditionalSecurityInfoType;
423423 union {
424- RPC_HTTP_TRANSPORT_CREDENITIALS_W *HttpCredentials;
425- } u
424+ RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
425+ } u;
426426 void *Sid;
427-} RPC_SECURITY_QOS_V3_W *PRPC_SECURITY_QOS_V3_W;
427+} RPC_SECURITY_QOS_V3_W, *PRPC_SECURITY_QOS_V3_W;
428428
429429 #define RPC_SECURITY_QOS_V3 __AW(RPC_SECURITY_QOS_V3_)
430430 #define PRPC_SECURITY_QOS_V3 __AW(PRPC_SECURITY_QOS_V3_)
@@ -436,7 +436,7 @@ typedef enum _RPC_HTTP_REDIRECTOR_STAGE {
436436 RPCHTTP_RS_SESSION,
437437 RPCHTTP_RS_ACCESS_2,
438438 RPCHTTP_RS_INTERFACE
439-} RPC_HTTP_REDIRECTORY_STAGE;
439+} RPC_HTTP_REDIRECTOR_STAGE;
440440
441441 typedef RPC_STATUS (__RPC_USER * RPC_NEW_HTTP_PROXY_CHANNEL) (
442442 RPC_HTTP_REDIRECTOR_STAGE RedirectorStage,
@@ -478,7 +478,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A {
478478 SEC_WINNT_AUTH_IDENTITY_A *ProxyCredentials;
479479 unsigned long NumberOfProxyAuthnSchemes;
480480 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;
482482
483483 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W {
484484 SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials;
@@ -490,7 +490,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W {
490490 SEC_WINNT_AUTH_IDENTITY_W *ProxyCredentials;
491491 unsigned long NumberOfProxyAuthnSchemes;
492492 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;
494494
495495 #define RPC_HTTP_TRANSPORT_CREDENTIALS_V2 __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_V2_)
496496 #define PRPC_HTTP_TRANSPORT_CREDENTIALS_V2 __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_)
@@ -503,11 +503,11 @@ typedef struct _RPC_SECURITY_QOS_V4_A {
503503 unsigned long ImpersonationType;
504504 unsigned long AdditionalSecurityInfoType;
505505 union {
506- RPC_HTTP_TRANSPORT_CREDENITIALS_A *HttpCredentials;
507- } u
506+ RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
507+ } u;
508508 void *Sid;
509509 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;
511511
512512 typedef struct _RPC_SECURITY_QOS_V4_W {
513513 unsigned long Version;
@@ -516,11 +516,11 @@ typedef struct _RPC_SECURITY_QOS_V4_W {
516516 unsigned long ImpersonationType;
517517 unsigned long AdditionalSecurityInfoType;
518518 union {
519- RPC_HTTP_TRANSPORT_CREDENITIALS_W *HttpCredentials;
520- } u
519+ RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
520+ } u;
521521 void *Sid;
522522 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;
524524
525525 #define RPC_SECURITY_QOS_V4 __AW(RPC_SECURITY_QOS_V4_)
526526 #define PRPC_SECURITY_QOS_V4 __AW(PRPC_SECURITY_QOS_V4_)
@@ -538,7 +538,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A {
538538 RPC_AUTH_IDENTITY_HANDLE ProxyCredentials;
539539 unsigned long NumberOfProxyAuthnSchemes;
540540 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;
542542
543543 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W {
544544 SEC_WINNT_AUTH_IDENTITY_W *TrasportCredentials;
@@ -550,7 +550,7 @@ typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W {
550550 RPC_AUTH_IDENTITY_HANDLE ProxyCredentials;
551551 unsigned long NumberOfProxyAuthnSchemes;
552552 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;
554554
555555 #define RPC_HTTP_TRANSPORT_CREDENTIALS_V3 __AW(RPC_HTTP_TRANSPORT_CREDENTIALS_V3_)
556556 #define PRPC_HTTP_TRANSPORT_CREDENTIALS_V3 __AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_)
@@ -834,7 +834,7 @@ typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A {
834834 union {
835835 unsigned short *Reserved;
836836 } u1;
837- UUID Object Uuid;
837+ UUID ObjectUuid;
838838 } RPC_BINDING_HANDLE_TEMPLATE_V1_A, *PRPC_BINDING_HANDLE_TEMPLATE_V1_A;
839839
840840 typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W {
@@ -846,7 +846,7 @@ typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W {
846846 union {
847847 unsigned short *Reserved;
848848 } u1;
849- UUID Object Uuid;
849+ UUID ObjectUuid;
850850 } RPC_BINDING_HANDLE_TEMPLATE_V1_W, *PRPC_BINDING_HANDLE_TEMPLATE_V1_W;
851851
852852 #define RPC_BINDING_HANDLE_TEMPLATE_V1 __AW(RPC_BINDING_HANDLE_TEMPLATE_V1_)
@@ -877,6 +877,13 @@ typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_W {
877877 #define PRPC_BINDING_HANDLE_SECURITY_V1 __AW(PRPC_BINDING_HANDLE_SECURITY_V1_)
878878 #define _RPC_BINDING_HANDLE_SECURITY_V1 __AW(_RPC_BINDING_HANDLE_SECURITY_V1_)
879879
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+
880887 #ifdef _AUTH_IDENTITY_A_DEFINED
881888 ___RPC_ENTRY__ RpcBindingCreateA(RPC_BINDING_HANDLE_TEMPLATE_V1_A *, RPC_BINDING_HANDLE_SECURITY_V1_A *, RPC_BINDING_HANDLE_OPTIONS_V1 *, RPC_BINDING_HANDLE *);
882889 #endif /* def _AUTH_IDENTITY_A_DEFINED */
--- a/include/windows.h
+++ b/include/windows.h
@@ -76,6 +76,7 @@
7676 #include <mmsystem.h>
7777 #include <nb30.h>
7878 #include <rpc.h>
79+#include <basetyps.h>
7980 #include <shellapi.h>
8081 #include <winperf.h>
8182 #include <winsock.h>
--- a/include/winefs.h
+++ b/include/winefs.h
@@ -33,7 +33,7 @@ extern "C" {
3333 #define ___API_DWORD__ WINADVAPI DWORD WINAPI
3434 #define ___API_BOOL__ WINADVAPI BOOL WINAPI
3535 #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
3737 #define ___API_VOID_DEPRECATED__ __MINGW_DEPRECATED WINADVAPI VOID WINAPI
3838
3939 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
@@ -186,7 +186,7 @@ ___API_DWORD__ SetUserFileEncryptionKeyEx(PENCRYPTION_CERTIFICATE, DWORD, DWORD,
186186
187187 ___API_DWORD_DEPRECATED__ GetEncryptedFileMetadata(LPCWSTR, PDWORD, PBYTE);
188188 ___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);
190190
191191 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_VISTA) */
192192
--- a/include/winscard.h
+++ b/include/winscard.h
@@ -410,14 +410,14 @@ ___EAPI_LONG__ SCardDlgExtendedError(void);
410410 ___EAPI_HANDLE__ SCardAccessStartedEvent(void);
411411 ___EAPI_VOID__ SCardReleaseStartedEvent(void);
412412
413-typedef struct _SCARD_AIRMASK {
413+typedef struct _SCARD_ATRMASK {
414414 DWORD cbAtr;
415415 BYTE rgbAtr[36];
416416 BYTE rgbMask[36];
417-} SCARD_AIRMASK, *PSCARD_AIRMASK, *LPSCARD_AIRMASK;
417+} SCARD_ATRMASK, *PSCARD_ATRMASK, *LPSCARD_ATRMASK;
418418
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);
421421 #define SCardLocateCardsByATR __AW(SCardLocateCardsByATR)
422422 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WINXP) */
423423
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -42,6 +42,7 @@
4242 #define _GNU_H_WINDOWS32_SOCKETS
4343
4444 #include <windows.h>
45+#include <sys/time.h>
4546
4647 #ifdef __cplusplus
4748 extern "C" {
--- a/include/winsock2.h
+++ b/include/winsock2.h
@@ -38,6 +38,7 @@
3838 #define _GNU_H_WINDOWS32_SOCKETS
3939
4040 #include <windows.h>
41+#include <sys/time.h>
4142
4243 #ifndef WINSOCK_API_LINKAGE
4344 #ifdef __W32API_USE_DLLIMPORT__