wined3d: Rename WINED3D_MAX_TEXTURES to WINED3D_MAX_FFP_TEXTURES.
[wine.git] / include / rpc.h
blob0b0295326558d9a698f47f91bc08221ac4d60cc1
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
42 #ifndef RPCRTAPI
43 #if !defined(_RPCRT4_) && !defined(_KRPCENV_)
44 #define RPCRTAPI DECLSPEC_IMPORT
45 #else
46 #define RPCRTAPI
47 #endif
48 #endif
50 typedef LONG RPC_STATUS;
51 typedef void* I_RPC_HANDLE;
53 #include <rpcdce.h>
54 /* #include <rpcnsi.h> */
55 #include <rpcnterr.h>
56 #include <excpt.h>
57 #include <winerror.h>
58 #ifndef RPC_NO_WINDOWS_H
59 #include <rpcasync.h>
60 #endif
62 #ifdef USE_COMPILER_EXCEPTIONS
64 #define RpcTryExcept __try {
65 #define RpcExcept(expr) } __except (expr) {
66 #define RpcEndExcept }
67 #define RpcTryFinally __try {
68 #define RpcFinally } __finally {
69 #define RpcEndFinally }
70 #define RpcExceptionCode() GetExceptionCode()
71 #define RpcAbnormalTermination() AbnormalTermination()
73 #else /* USE_COMPILER_EXCEPTIONS */
75 /* ignore exception handling for now */
76 #define RpcTryExcept if (1) {
77 #define RpcExcept(expr) } else {
78 #define RpcEndExcept }
79 #define RpcTryFinally
80 #define RpcFinally
81 #define RpcEndFinally
82 #define RpcExceptionCode() 0
83 /* #define RpcAbnormalTermination() abort() */
85 #endif /* USE_COMPILER_EXCEPTIONS */
87 #endif /*__WINE_RPC_H */