VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/rpc.h@ 33281

Last change on this file since 33281 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
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/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef RPC_NO_WINDOWS_H
31# ifdef __WINESRC__
32# ifndef RC_INVOKED
33# include <stdarg.h>
34# endif
35# include <windef.h>
36# include <winbase.h>
37# else
38# include <windows.h>
39# endif
40#endif
41
42#ifndef __WINE_RPC_H
43#define __WINE_RPC_H
44
45#if defined(__powerpc__) || defined(_MAC) /* ? */
46# define __RPC_MAC__
47 /* Also define __RPC_WIN32__ to ensure compatibility */
48# define __RPC_WIN32__
49#elif defined(_WIN64)
50# define __RPC_WIN64__
51#else
52# define __RPC_WIN32__
53#endif
54
55#include <basetsd.h>
56
57#define __RPC_FAR
58#define __RPC_API __stdcall
59#define __RPC_USER __stdcall
60#define __RPC_STUB __stdcall
61#define RPC_ENTRY __stdcall
62#define RPCRTAPI
63typedef LONG RPC_STATUS;
64
65typedef void* I_RPC_HANDLE;
66
67#include <rpcdce.h>
68/* #include <rpcnsi.h> */
69#include <rpcnterr.h>
70#include <excpt.h>
71#include <winerror.h>
72#ifndef RPC_NO_WINDOWS_H
73#include <rpcasync.h>
74#endif
75
76#ifdef USE_COMPILER_EXCEPTIONS
77
78#define RpcTryExcept __try {
79#define RpcExcept(expr) } __except (expr) {
80#define RpcEndExcept }
81#define RpcTryFinally __try {
82#define RpcFinally } __finally {
83#define RpcEndFinally }
84#define RpcExceptionCode() GetExceptionCode()
85#define RpcAbnormalTermination() AbnormalTermination()
86
87#else /* USE_COMPILER_EXCEPTIONS */
88
89/* ignore exception handling for now */
90#define RpcTryExcept if (1) {
91#define RpcExcept(expr) } else {
92#define RpcEndExcept }
93#define RpcTryFinally
94#define RpcFinally
95#define RpcEndFinally
96#define RpcExceptionCode() 0
97/* #define RpcAbnormalTermination() abort() */
98
99#endif /* USE_COMPILER_EXCEPTIONS */
100
101#endif /*__WINE_RPC_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette