libwine: Added a wine_call_on_stack function.
[wine] / include / rpc.h
1 /*
2  *    RPC interface
3  *
4  * Copyright (C) the Wine project
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef RPC_NO_WINDOWS_H
22 # ifdef __WINESRC__
23 #  ifndef RC_INVOKED
24 #   include <stdarg.h>
25 #  endif
26 #  include <windef.h>
27 #  include <winbase.h>
28 # else
29 #  include <windows.h>
30 # endif
31 #endif
32
33 #ifndef __WINE_RPC_H
34 #define __WINE_RPC_H
35
36 #if defined(__powerpc__) || defined(_MAC) /* ? */
37 # define __RPC_MAC__
38  /* Also define __RPC_WIN32__ to ensure compatibility */
39 # define __RPC_WIN32__
40 #elif defined(_WIN64)
41 # define __RPC_WIN64__
42 #else
43 # define __RPC_WIN32__
44 #endif
45
46 #include <basetsd.h>
47
48 #define __RPC_FAR
49 #define __RPC_API  __stdcall
50 #define __RPC_USER __stdcall
51 #define __RPC_STUB __stdcall
52 #define RPC_ENTRY  __stdcall
53 #define RPCRTAPI
54 typedef long RPC_STATUS;
55
56 typedef void* I_RPC_HANDLE;
57
58 #include <rpcdce.h>
59 /* #include <rpcnsi.h> */
60 #include <rpcnterr.h>
61 #include <excpt.h>
62 #include <winerror.h>
63 #ifndef RPC_NO_WINDOWS_H
64 #include <rpcasync.h>
65 #endif
66
67 /* ignore exception handling for now */
68 #define RpcTryExcept if (1) {
69 #define RpcExcept(expr) } else {
70 #define RpcEndExcept }
71 #define RpcTryFinally
72 #define RpcFinally
73 #define RpcEndFinally
74 #define RpcExceptionCode() 0
75 /* #define RpcAbnormalTermination() abort() */
76
77 #endif /*__WINE_RPC_H */