2 #if !defined( RPC_NO_WINDOWS_H ) && !defined( MAC ) && !defined( _MAC )
5 #endif /* _INC_WINDOWS */
9 #include <pseh/pseh2.h>
24 #if defined( MAC ) || defined( _MAC ) || defined(__powerpc__) && !defined(__REACTOS__)
30 #if defined(_M_IA64) || defined(_M_AMD64) || defined(_WIN64)
39 #if defined(__RPC_WIN64__)
43 #ifndef __MIDL_USER_DEFINED
44 #define midl_user_allocate MIDL_user_allocate
45 #define midl_user_free MIDL_user_free
46 #define __MIDL_USER_DEFINED
50 typedef void * I_RPC_HANDLE
;
51 #ifndef __ROS_LONG64__
52 typedef long RPC_STATUS
;
54 typedef int RPC_STATUS
;
58 #if defined(__RPC_WIN32__) || defined(__RPC_WIN64__)
59 #define RPC_UNICODE_SUPPORTED
63 #if !defined(__RPC_MAC__)
64 #define __RPC_API __stdcall
65 #define __RPC_USER __stdcall
66 #define __RPC_STUB __stdcall
67 #define RPC_ENTRY __stdcall
77 #if !defined(DECLSPEC_IMPORT)
78 #define DECLSPEC_IMPORT
81 #if !defined(_RPCRT4_)
82 #define RPCRTAPI DECLSPEC_IMPORT
87 #if !defined(_RPCNS4_)
88 #define RPCNSAPI DECLSPEC_IMPORT
99 #define RPCXCWORD (sizeof(jmp_buf)/sizeof(int))
101 #pragma warning(push)
102 #pragma warning( disable: 4005 )
109 typedef void (RPC_ENTRY
*MACYIELDCALLBACK
)(short *) ;
111 RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback
) ;
113 #if !defined(UNALIGNED)
120 /* #include <rpcnsi.h> */
121 #include <rpcnterr.h>
123 #include <winerror.h>
126 #define RpcTryExcept __try {
127 #define RpcExcept(expr) } __except (expr) {
128 #define RpcEndExcept }
129 #define RpcTryFinally __try {
130 #define RpcFinally } __finally {
131 #define RpcEndFinally }
132 #define RpcExceptionCode() GetExceptionCode()
133 #define RpcAbnormalTermination() AbnormalTermination()
135 #define RpcTryExcept _SEH2_TRY
136 #define RpcExcept(expr) _SEH2_EXCEPT((expr))
137 #define RpcEndExcept _SEH2_END;
138 #define RpcTryFinally _SEH2_TRY
139 #define RpcFinally _SEH2_FINALLY
140 #define RpcEndFinally _SEH2_END;
141 #define RpcExceptionCode() _SEH2_GetExceptionCode()
142 #define RpcAbnormalTermination() (_SEH2_GetExceptionCode() != 0)
146 #if defined(__RPC_WIN64__)
150 #ifndef RPC_NO_WINDOWS_H
151 #include <rpcasync.h>