Install msysDVLPR-1.0.0-alpha-1
[msysgit.git] / include / rpc.h
blob12f5fd030abbb28c622ee3759f760ffdd0ab453d
1 #ifndef _RPC_H
2 #define _RPC_H
3 #ifndef RPC_NO_WINDOWS_H
4 #include <windows.h>
5 #endif
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 #define __RPC_WIN32__
10 #ifndef _WIN95
11 #define __RPC_NT__
12 #define RPC_UNICODE_SUPPORTED
13 #endif
15 #ifndef __MIDL_USER_DEFINED
16 #define midl_user_allocate MIDL_user_allocate
17 #define midl_user_free MIDL_user_free
18 #define __MIDL_USER_DEFINED
19 #endif
20 #define RPC_UNICODE_SUPPORTED
21 #define __RPC_FAR
22 #define __RPC_API __stdcall
23 #define __RPC_USER __stdcall
24 #define __RPC_STUB __stdcall
25 #define RPC_ENTRY __stdcall
26 typedef void *I_RPC_HANDLE;
27 typedef long RPC_STATUS;
29 #include <rpcdce.h>
30 #include <rpcnsi.h>
31 #include <rpcnterr.h>
33 #include <winerror.h>
35 /* SEH is not supported */
36 #if 0
37 #include <excpt.h>
38 #define RpcTryExcept __try {
39 #define RpcExcept(x) } __except (x) {
40 #define RpcEndExcept }
41 #define RpcTryFinally __try {
42 #define RpcFinally } __finally {
43 #define RpcEndFinally }
44 #define RpcExceptionCode() GetExceptionCode()
45 #define RpcAbnormalTermination() AbnormalTermination()
46 #endif /* 0 */
48 RPC_STATUS RPC_ENTRY RpcImpersonateClient(RPC_BINDING_HANDLE);
49 RPC_STATUS RPC_ENTRY RpcRevertToSelf(void);
50 long RPC_ENTRY I_RpcMapWin32Status(RPC_STATUS);
51 #ifdef __cplusplus
53 #endif
54 #endif