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 typedef long RPC_STATUS
;
60 #if defined(__RPC_WIN32__) || defined(__RPC_WIN64__)
61 #define RPC_UNICODE_SUPPORTED
65 #if !defined(__RPC_MAC__)
66 #define __RPC_API __stdcall
67 #define __RPC_USER __stdcall
68 #define __RPC_STUB __stdcall
69 #define RPC_ENTRY __stdcall
79 #if !defined(DECLSPEC_IMPORT)
80 #define DECLSPEC_IMPORT
83 #if !defined(_RPCRT4_)
84 #define RPCRTAPI DECLSPEC_IMPORT
89 #if !defined(_RPCNS4_)
90 #define RPCNSAPI DECLSPEC_IMPORT
101 #define RPCXCWORD (sizeof(jmp_buf)/sizeof(int))
103 #pragma warning(push)
104 #pragma warning( disable: 4005 )
111 typedef void (RPC_ENTRY
*MACYIELDCALLBACK
)(short *) ;
113 RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback
) ;
115 #if !defined(UNALIGNED)
122 /* #include <rpcnsi.h> */
123 #include <rpcnterr.h>
125 #include <winerror.h>
128 #define RpcTryExcept __try {
129 #define RpcExcept(expr) } __except (expr) {
130 #define RpcEndExcept }
131 #define RpcTryFinally __try {
132 #define RpcFinally } __finally {
133 #define RpcEndFinally }
134 #define RpcExceptionCode() GetExceptionCode()
135 #define RpcAbnormalTermination() AbnormalTermination()
137 #define RpcTryExcept _SEH2_TRY
138 #define RpcExcept(expr) _SEH2_EXCEPT((expr))
139 #define RpcEndExcept _SEH2_END;
140 #define RpcTryFinally _SEH2_TRY
141 #define RpcFinally _SEH2_FINALLY
142 #define RpcEndFinally _SEH2_END;
143 #define RpcExceptionCode() _SEH2_GetExceptionCode()
144 #define RpcAbnormalTermination() (_SEH2_GetExceptionCode() != 0)
148 #if defined(__RPC_WIN64__)
152 #ifndef RPC_NO_WINDOWS_H
153 #include <rpcasync.h>