Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 2 | * RPC interface |
| 3 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 19 | */ |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 20 | |
Dimitrie O. Paun | 8b36681 | 2003-01-04 00:52:18 +0000 | [diff] [blame] | 21 | #if !defined(RPC_NO_WINDOWS_H) && !defined(__WINESRC__) |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 22 | #include <windows.h> |
Patrik Stridvall | 1ed5577 | 2000-11-30 01:31:28 +0000 | [diff] [blame] | 23 | #endif |
| 24 | |
Francois Gouget | d2cb1d1 | 2001-07-18 20:04:08 +0000 | [diff] [blame] | 25 | #ifndef __WINE_RPC_H |
| 26 | #define __WINE_RPC_H |
| 27 | |
Pierre d'Herbemont | 7f3074d | 2003-07-15 20:46:40 +0000 | [diff] [blame] | 28 | #if defined(__powerpc__) || defined(_MAC) /* ? */ |
Peter Berg Larsen | 08dbbeb | 2004-12-20 16:53:12 +0000 | [diff] [blame] | 29 | # define __RPC_MAC__ |
Pierre d'Herbemont | 7f3074d | 2003-07-15 20:46:40 +0000 | [diff] [blame] | 30 | /* Also define __RPC_WIN32__ to ensure compatibility */ |
Peter Berg Larsen | 08dbbeb | 2004-12-20 16:53:12 +0000 | [diff] [blame] | 31 | # define __RPC_WIN32__ |
Greg Turner | 733b88b | 2002-10-31 22:04:33 +0000 | [diff] [blame] | 32 | #elif defined(_WIN64) |
Peter Berg Larsen | 08dbbeb | 2004-12-20 16:53:12 +0000 | [diff] [blame] | 33 | # define __RPC_WIN64__ |
Greg Turner | 733b88b | 2002-10-31 22:04:33 +0000 | [diff] [blame] | 34 | #else |
Peter Berg Larsen | 08dbbeb | 2004-12-20 16:53:12 +0000 | [diff] [blame] | 35 | # define __RPC_WIN32__ |
Greg Turner | 733b88b | 2002-10-31 22:04:33 +0000 | [diff] [blame] | 36 | #endif |
Ove Kaaven | 29b3061 | 2002-08-09 01:11:39 +0000 | [diff] [blame] | 37 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 38 | #include <basetsd.h> |
| 39 | |
Francois Gouget | 552fddc | 2000-11-08 05:06:10 +0000 | [diff] [blame] | 40 | #define __RPC_FAR |
Mike McCormack | cdf631f | 2004-09-02 20:09:10 +0000 | [diff] [blame] | 41 | #define __RPC_API __stdcall |
| 42 | #define __RPC_USER __stdcall |
| 43 | #define __RPC_STUB __stdcall |
| 44 | #define RPC_ENTRY __stdcall |
Peter Hunnisett | 8cec3cff | 2001-07-11 20:19:06 +0000 | [diff] [blame] | 45 | #define RPCRTAPI |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 46 | typedef long RPC_STATUS; |
| 47 | |
Francois Gouget | 552fddc | 2000-11-08 05:06:10 +0000 | [diff] [blame] | 48 | typedef void* I_RPC_HANDLE; |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 49 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 50 | #include <rpcdce.h> |
| 51 | /* #include <rpcnsi.h> */ |
| 52 | #include <rpcnterr.h> |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 53 | #include <winerror.h> |
Francois Gouget | 552fddc | 2000-11-08 05:06:10 +0000 | [diff] [blame] | 54 | |
Ove Kaaven | 381e647 | 2003-04-19 20:06:58 +0000 | [diff] [blame] | 55 | /* ignore exception handling for now */ |
| 56 | #define RpcTryExcept if (1) { |
| 57 | #define RpcExcept(expr) } else { |
| 58 | #define RpcEndExcept } |
| 59 | #define RpcTryFinally |
| 60 | #define RpcFinally |
| 61 | #define RpcEndFinally |
| 62 | #define RpcExceptionCode() 0 |
| 63 | /* #define RpcAbnormalTermination() abort() */ |
| 64 | |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 65 | #endif /*__WINE_RPC_H */ |