rpc.h 1.72 KB
Newer Older
1
/*
Huw D M Davies's avatar
Huw D M Davies committed
2 3
 *    RPC interface
 *
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 * Copyright (C) the Wine project
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Huw D M Davies's avatar
Huw D M Davies committed
19
 */
20

21
#if !defined(RPC_NO_WINDOWS_H) && !defined(__WINESRC__)
22
#include <windows.h>
23 24
#endif

25 26 27
#ifndef __WINE_RPC_H
#define __WINE_RPC_H

28
#if defined(__powerpc__) || defined(_MAC) /* ? */
29
 #define __RPC_MAC__
30 31
 /* Also define __RPC_WIN32__ to ensure compatibility */
 #define __RPC_WIN32__
32 33 34 35 36
#elif defined(_WIN64)
 #define __RPC_WIN64__
#else
 #define __RPC_WIN32__
#endif
Ove Kaaven's avatar
Ove Kaaven committed
37

38 39
#include <basetsd.h>

40 41 42 43 44
#define __RPC_FAR
#define __RPC_API  WINAPI
#define __RPC_USER WINAPI
#define __RPC_STUB WINAPI
#define RPC_ENTRY  WINAPI
45
#define RPCRTAPI
Huw D M Davies's avatar
Huw D M Davies committed
46 47
typedef long RPC_STATUS;

48
typedef void* I_RPC_HANDLE;
Huw D M Davies's avatar
Huw D M Davies committed
49

50 51 52 53
#include <rpcdce.h>
/* #include <rpcnsi.h> */
#include <rpcnterr.h>
#include <winerror.h>
54

Ove Kaaven's avatar
Ove Kaaven committed
55 56 57 58 59 60 61 62 63 64
/* ignore exception handling for now */
#define RpcTryExcept if (1) {
#define RpcExcept(expr) } else {
#define RpcEndExcept }
#define RpcTryFinally
#define RpcFinally
#define RpcEndFinally
#define RpcExceptionCode() 0
/* #define RpcAbnormalTermination() abort() */

Huw D M Davies's avatar
Huw D M Davies committed
65
#endif /*__WINE_RPC_H */