user32/tests: Test delayed clipboard rendering after window destruction.
[wine.git] / include / rpc.h
blob9fa1c1ef1610cb31232eb2ec318f503a71daede8
1 /*
2 * RPC interface
4 * Copyright (C) the Wine project
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.
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.
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
21 #ifndef RPC_NO_WINDOWS_H
22 # include <windows.h>
23 #endif
25 #ifndef __WINE_RPC_H
26 #define __WINE_RPC_H
28 #ifdef _WIN64
29 # define __RPC_WIN64__
30 #else
31 # define __RPC_WIN32__
32 #endif
34 #include <basetsd.h>
36 #define __RPC_FAR
37 #define __RPC_API __stdcall
38 #define __RPC_USER __stdcall
39 #define __RPC_STUB __stdcall
40 #define RPC_ENTRY __stdcall
41 #define RPCRTAPI
42 typedef LONG RPC_STATUS;
44 typedef void* I_RPC_HANDLE;
46 #include <rpcdce.h>
47 /* #include <rpcnsi.h> */
48 #include <rpcnterr.h>
49 #include <excpt.h>
50 #include <winerror.h>
51 #ifndef RPC_NO_WINDOWS_H
52 #include <rpcasync.h>
53 #endif
55 #ifdef USE_COMPILER_EXCEPTIONS
57 #define RpcTryExcept __try {
58 #define RpcExcept(expr) } __except (expr) {
59 #define RpcEndExcept }
60 #define RpcTryFinally __try {
61 #define RpcFinally } __finally {
62 #define RpcEndFinally }
63 #define RpcExceptionCode() GetExceptionCode()
64 #define RpcAbnormalTermination() AbnormalTermination()
66 #else /* USE_COMPILER_EXCEPTIONS */
68 /* ignore exception handling for now */
69 #define RpcTryExcept if (1) {
70 #define RpcExcept(expr) } else {
71 #define RpcEndExcept }
72 #define RpcTryFinally
73 #define RpcFinally
74 #define RpcEndFinally
75 #define RpcExceptionCode() 0
76 /* #define RpcAbnormalTermination() abort() */
78 #endif /* USE_COMPILER_EXCEPTIONS */
80 #endif /*__WINE_RPC_H */