2007-06-30 00:33:38 +00:00
|
|
|
|
|
|
|
#if !defined( RPC_NO_WINDOWS_H ) && !defined( MAC ) && !defined( _MAC )
|
2011-02-11 13:48:41 +00:00
|
|
|
#ifndef _INC_WINDOWS
|
2008-09-13 21:46:45 +00:00
|
|
|
#include <windows.h>
|
2011-02-11 13:48:41 +00:00
|
|
|
#endif /* _INC_WINDOWS */
|
2008-09-14 05:08:29 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2011-02-11 13:48:41 +00:00
|
|
|
#ifndef RC_INVOKED
|
2008-11-24 13:05:40 +00:00
|
|
|
#include <pseh/pseh2.h>
|
2007-06-30 00:33:38 +00:00
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2007-06-30 00:33:38 +00:00
|
|
|
#ifndef __RPC_H__
|
|
|
|
#define __RPC_H__
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-10-06 18:04:03 +00:00
|
|
|
#if defined( MAC ) || defined( _MAC ) || defined(__powerpc__) && !defined(__REACTOS__)
|
2007-06-30 00:33:38 +00:00
|
|
|
#define __RPC_MAC__
|
|
|
|
#define __RPC_WIN32__
|
|
|
|
#include <pshpack2.h>
|
|
|
|
|
2007-10-19 23:21:45 +00:00
|
|
|
#else
|
2007-06-30 00:33:38 +00:00
|
|
|
#if defined(_M_IA64) || defined(_M_AMD64) || defined(_WIN64)
|
|
|
|
#define __RPC_WIN64__
|
|
|
|
#else
|
|
|
|
#define __RPC_WIN32__
|
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
#endif
|
|
|
|
|
2007-04-20 02:30:53 +00:00
|
|
|
#include <basetsd.h>
|
|
|
|
|
2007-06-30 00:33:38 +00:00
|
|
|
#if defined(__RPC_WIN64__)
|
|
|
|
#include <pshpack8.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __MIDL_USER_DEFINED
|
|
|
|
#define midl_user_allocate MIDL_user_allocate
|
|
|
|
#define midl_user_free MIDL_user_free
|
|
|
|
#define __MIDL_USER_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef void * I_RPC_HANDLE;
|
2009-08-08 13:32:15 +00:00
|
|
|
#ifndef __ROS_LONG64__
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef long RPC_STATUS;
|
2009-08-08 13:32:15 +00:00
|
|
|
#else
|
|
|
|
typedef int RPC_STATUS;
|
|
|
|
#endif
|
2007-06-30 00:33:38 +00:00
|
|
|
#define __RPC_FAR
|
|
|
|
|
|
|
|
#if defined(__RPC_WIN32__) || defined(__RPC_WIN64__)
|
|
|
|
#define RPC_UNICODE_SUPPORTED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(__RPC_MAC__)
|
|
|
|
#define __RPC_API __stdcall
|
|
|
|
#define __RPC_USER __stdcall
|
|
|
|
#define __RPC_STUB __stdcall
|
|
|
|
#define RPC_ENTRY __stdcall
|
|
|
|
#else
|
|
|
|
#define __RPC_API
|
|
|
|
#define __RPC_USER
|
|
|
|
#define __RPC_STUB
|
|
|
|
#define RPC_ENTRY
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
#if !defined(DECLSPEC_IMPORT)
|
|
|
|
#define DECLSPEC_IMPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(_RPCRT4_)
|
|
|
|
#define RPCRTAPI DECLSPEC_IMPORT
|
|
|
|
#else
|
2007-10-19 23:21:45 +00:00
|
|
|
#define RPCRTAPI
|
2007-06-30 00:33:38 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(_RPCNS4_)
|
|
|
|
#define RPCNSAPI DECLSPEC_IMPORT
|
|
|
|
#else
|
2007-10-19 23:21:45 +00:00
|
|
|
#define RPCNSAPI
|
2007-06-30 00:33:38 +00:00
|
|
|
#endif
|
|
|
|
#else
|
2007-10-19 23:21:45 +00:00
|
|
|
#define RPCRTAPI
|
|
|
|
#define RPCNSAPI
|
2007-06-30 00:33:38 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __RPC_MAC__
|
|
|
|
#include <setjmp.h>
|
|
|
|
#define RPCXCWORD (sizeof(jmp_buf)/sizeof(int))
|
|
|
|
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning( disable: 4005 )
|
|
|
|
#include <rpcdce.h>
|
|
|
|
#include <rpcnsi.h>
|
|
|
|
#include <rpcerr.h>
|
|
|
|
#include <rpcmac.h>
|
|
|
|
#pragma warning(pop)
|
|
|
|
|
|
|
|
typedef void (RPC_ENTRY *MACYIELDCALLBACK)(short *) ;
|
|
|
|
RPC_STATUS RPC_ENTRY
|
|
|
|
RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback) ;
|
|
|
|
|
|
|
|
#if !defined(UNALIGNED)
|
|
|
|
#define UNALIGNED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <poppack.h>
|
|
|
|
#else
|
|
|
|
#include <rpcdce.h>
|
|
|
|
/* #include <rpcnsi.h> */
|
|
|
|
#include <rpcnterr.h>
|
|
|
|
#include <excpt.h>
|
|
|
|
#include <winerror.h>
|
|
|
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
#define RpcTryExcept __try {
|
|
|
|
#define RpcExcept(expr) } __except (expr) {
|
|
|
|
#define RpcEndExcept }
|
|
|
|
#define RpcTryFinally __try {
|
|
|
|
#define RpcFinally } __finally {
|
|
|
|
#define RpcEndFinally }
|
|
|
|
#define RpcExceptionCode() GetExceptionCode()
|
|
|
|
#define RpcAbnormalTermination() AbnormalTermination()
|
|
|
|
#else
|
2008-11-24 13:05:40 +00:00
|
|
|
#define RpcTryExcept _SEH2_TRY
|
|
|
|
#define RpcExcept(expr) _SEH2_EXCEPT((expr))
|
|
|
|
#define RpcEndExcept _SEH2_END;
|
|
|
|
#define RpcTryFinally _SEH2_TRY
|
|
|
|
#define RpcFinally _SEH2_FINALLY
|
|
|
|
#define RpcEndFinally _SEH2_END;
|
|
|
|
#define RpcExceptionCode() _SEH2_GetExceptionCode()
|
|
|
|
#define RpcAbnormalTermination() (_SEH2_GetExceptionCode() != 0)
|
2007-06-30 00:33:38 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__RPC_WIN64__)
|
|
|
|
#include <poppack.h>
|
|
|
|
#endif
|
|
|
|
|
2008-02-04 13:15:01 +00:00
|
|
|
#ifndef RPC_NO_WINDOWS_H
|
|
|
|
#include <rpcasync.h>
|
|
|
|
#endif
|
|
|
|
|
2007-06-30 00:33:38 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
|