Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / rpc.h
blob659d909489a0e38a88f94434a9abab40338be680
1 #ifndef RPC_NO_WINDOWS_H
2 #include <windows.h>
3 #endif
5 #ifndef _RPC_H
6 #define _RPC_H
7 #if __GNUC__ >= 3
8 #pragma GCC system_header
9 #endif
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 #define __RPC_WIN32__
15 #ifndef _WIN95
16 #define __RPC_NT__
17 #define RPC_UNICODE_SUPPORTED
18 #endif
20 #ifdef _RPCRT4_
21 #define RPCRTAPI DECLSPEC_EXPORT
22 #else
23 #define RPCRTAPI DECLSPEC_IMPORT
24 #endif
26 #ifndef __MIDL_USER_DEFINED
27 #define midl_user_allocate MIDL_user_allocate
28 #define midl_user_free MIDL_user_free
29 #define __MIDL_USER_DEFINED
30 #endif
31 #define RPC_UNICODE_SUPPORTED
32 #define __RPC_FAR
33 #define __RPC_API __stdcall
34 #define __RPC_USER __stdcall
35 #define __RPC_STUB __stdcall
36 #define RPC_ENTRY __stdcall
37 typedef void *I_RPC_HANDLE;
38 typedef long RPC_STATUS;
40 #include <rpcdce.h>
41 #include <rpcnsi.h>
42 #include <rpcnterr.h>
44 #include <winerror.h>
46 /* SEH is not supported */
47 #if 0
48 #include <excpt.h>
49 #define RpcTryExcept __try {
50 #define RpcExcept(x) } __except (x) {
51 #define RpcEndExcept }
52 #define RpcTryFinally __try {
53 #define RpcFinally } __finally {
54 #define RpcEndFinally }
55 #define RpcExceptionCode() GetExceptionCode()
56 #define RpcAbnormalTermination() AbnormalTermination()
57 #endif /* 0 */
59 RPC_STATUS RPC_ENTRY RpcImpersonateClient(RPC_BINDING_HANDLE);
60 RPC_STATUS RPC_ENTRY RpcRevertToSelf(void);
61 long RPC_ENTRY I_RpcMapWin32Status(RPC_STATUS);
62 #ifdef __cplusplus
64 #endif
65 #endif