msacm32: Don't clear DONE flag in Un,PrepareHeader.
[wine.git] / include / rpc.h
blobeb7d0417bd67b4e8f8c2d08baeb4e4941986e889
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 #if defined(__powerpc__) || defined(_MAC) /* ? */
29 # define __RPC_MAC__
30 /* Also define __RPC_WIN32__ to ensure compatibility */
31 # define __RPC_WIN32__
32 #elif defined(_WIN64)
33 # define __RPC_WIN64__
34 #else
35 # define __RPC_WIN32__
36 #endif
38 #include <basetsd.h>
40 #define __RPC_FAR
41 #define __RPC_API __stdcall
42 #define __RPC_USER __stdcall
43 #define __RPC_STUB __stdcall
44 #define RPC_ENTRY __stdcall
45 #define RPCRTAPI
46 typedef LONG RPC_STATUS;
48 typedef void* I_RPC_HANDLE;
50 #include <rpcdce.h>
51 /* #include <rpcnsi.h> */
52 #include <rpcnterr.h>
53 #include <excpt.h>
54 #include <winerror.h>
55 #ifndef RPC_NO_WINDOWS_H
56 #include <rpcasync.h>
57 #endif
59 #ifdef USE_COMPILER_EXCEPTIONS
61 #define RpcTryExcept __try {
62 #define RpcExcept(expr) } __except (expr) {
63 #define RpcEndExcept }
64 #define RpcTryFinally __try {
65 #define RpcFinally } __finally {
66 #define RpcEndFinally }
67 #define RpcExceptionCode() GetExceptionCode()
68 #define RpcAbnormalTermination() AbnormalTermination()
70 #else /* USE_COMPILER_EXCEPTIONS */
72 /* ignore exception handling for now */
73 #define RpcTryExcept if (1) {
74 #define RpcExcept(expr) } else {
75 #define RpcEndExcept }
76 #define RpcTryFinally
77 #define RpcFinally
78 #define RpcEndFinally
79 #define RpcExceptionCode() 0
80 /* #define RpcAbnormalTermination() abort() */
82 #endif /* USE_COMPILER_EXCEPTIONS */
84 #endif /*__WINE_RPC_H */