2 #if !defined( RPC_NO_WINDOWS_H ) && !defined( MAC ) && !defined( _MAC )
15 #include <pseh/pseh2.h>
30 #if defined( MAC ) || defined( _MAC ) || defined(__powerpc__) && !defined(__REACTOS__)
36 #if defined(_M_IA64) || defined(_M_AMD64) || defined(_WIN64)
45 #if defined(__RPC_WIN64__)
49 #ifndef __MIDL_USER_DEFINED
50 #define midl_user_allocate MIDL_user_allocate
51 #define midl_user_free MIDL_user_free
52 #define __MIDL_USER_DEFINED
56 typedef void * I_RPC_HANDLE
;
57 #ifndef __ROS_LONG64__
58 typedef long RPC_STATUS
;
60 typedef int RPC_STATUS
;
64 #if defined(__RPC_WIN32__) || defined(__RPC_WIN64__)
65 #define RPC_UNICODE_SUPPORTED
69 #if !defined(__RPC_MAC__)
70 #define __RPC_API __stdcall
71 #define __RPC_USER __stdcall
72 #define __RPC_STUB __stdcall
73 #define RPC_ENTRY __stdcall
83 #if !defined(DECLSPEC_IMPORT)
84 #define DECLSPEC_IMPORT
87 #if !defined(_RPCRT4_)
88 #define RPCRTAPI DECLSPEC_IMPORT
93 #if !defined(_RPCNS4_)
94 #define RPCNSAPI DECLSPEC_IMPORT
105 #define RPCXCWORD (sizeof(jmp_buf)/sizeof(int))
107 #pragma warning(push)
108 #pragma warning( disable: 4005 )
115 typedef void (RPC_ENTRY
*MACYIELDCALLBACK
)(short *) ;
117 RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback
) ;
119 #if !defined(UNALIGNED)
126 /* #include <rpcnsi.h> */
127 #include <rpcnterr.h>
129 #include <winerror.h>
132 #define RpcTryExcept __try {
133 #define RpcExcept(expr) } __except (expr) {
134 #define RpcEndExcept }
135 #define RpcTryFinally __try {
136 #define RpcFinally } __finally {
137 #define RpcEndFinally }
138 #define RpcExceptionCode() GetExceptionCode()
139 #define RpcAbnormalTermination() AbnormalTermination()
141 #define RpcTryExcept _SEH2_TRY
142 #define RpcExcept(expr) _SEH2_EXCEPT((expr))
143 #define RpcEndExcept _SEH2_END;
144 #define RpcTryFinally _SEH2_TRY
145 #define RpcFinally _SEH2_FINALLY
146 #define RpcEndFinally _SEH2_END;
147 #define RpcExceptionCode() _SEH2_GetExceptionCode()
148 #define RpcAbnormalTermination() (_SEH2_GetExceptionCode() != 0)
152 #if defined(__RPC_WIN64__)
156 #ifndef RPC_NO_WINDOWS_H
157 #include <rpcasync.h>