ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

rpc.h
Go to the documentation of this file.
00001 
00002 #if !defined( RPC_NO_WINDOWS_H ) && !defined( MAC ) && !defined( _MAC )
00003 #ifndef _INC_WINDOWS
00004 #include <windows.h>
00005 #endif /* _INC_WINDOWS */
00006 #endif
00007 
00008 #ifndef RC_INVOKED
00009 #include  <pseh/pseh2.h>
00010 #endif
00011 
00012 #ifndef __RPC_H__
00013 #define __RPC_H__
00014 
00015 #if _MSC_VER > 1000
00016 #pragma once
00017 #endif
00018 
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 #if defined( MAC ) || defined( _MAC ) || defined(__powerpc__) && !defined(__REACTOS__)
00025     #define __RPC_MAC__
00026     #define __RPC_WIN32__
00027     #include <pshpack2.h>
00028 
00029 #else
00030     #if defined(_M_IA64) || defined(_M_AMD64) || defined(_WIN64)
00031         #define __RPC_WIN64__
00032     #else
00033         #define __RPC_WIN32__
00034     #endif
00035 #endif
00036 
00037 #include <basetsd.h>
00038 
00039 #if defined(__RPC_WIN64__)
00040     #include <pshpack8.h>
00041 #endif
00042 
00043 #ifndef __MIDL_USER_DEFINED
00044     #define midl_user_allocate MIDL_user_allocate
00045     #define midl_user_free MIDL_user_free
00046     #define __MIDL_USER_DEFINED
00047 #endif
00048 
00049 
00050 typedef void * I_RPC_HANDLE;
00051 #ifndef __ROS_LONG64__
00052 typedef long RPC_STATUS;
00053 #else
00054 typedef int RPC_STATUS;
00055 #endif
00056 #define __RPC_FAR
00057 
00058 #if defined(__RPC_WIN32__) || defined(__RPC_WIN64__)
00059     #define RPC_UNICODE_SUPPORTED
00060 #endif
00061 
00062 
00063 #if !defined(__RPC_MAC__)
00064     #define __RPC_API  __stdcall
00065     #define __RPC_USER __stdcall
00066     #define __RPC_STUB __stdcall
00067     #define  RPC_ENTRY __stdcall
00068 #else
00069     #define __RPC_API
00070     #define __RPC_USER
00071     #define __RPC_STUB
00072     #define RPC_ENTRY
00073 #endif
00074 
00075 
00076 #ifndef __GNUC__
00077     #if !defined(DECLSPEC_IMPORT)
00078             #define DECLSPEC_IMPORT
00079     #endif
00080 
00081     #if !defined(_RPCRT4_)
00082         #define RPCRTAPI DECLSPEC_IMPORT
00083     #else
00084         #define RPCRTAPI
00085     #endif
00086 
00087     #if !defined(_RPCNS4_)
00088         #define RPCNSAPI DECLSPEC_IMPORT
00089     #else
00090         #define RPCNSAPI
00091     #endif
00092 #else
00093     #define RPCRTAPI
00094     #define RPCNSAPI
00095 #endif
00096 
00097 #ifdef __RPC_MAC__
00098     #include <setjmp.h>
00099     #define RPCXCWORD (sizeof(jmp_buf)/sizeof(int))
00100 
00101     #pragma warning(push)
00102     #pragma warning( disable: 4005 )
00103     #include <rpcdce.h>
00104     #include <rpcnsi.h>
00105     #include <rpcerr.h>
00106     #include <rpcmac.h>
00107     #pragma warning(pop)
00108 
00109     typedef void  (RPC_ENTRY *MACYIELDCALLBACK)(short *) ;
00110     RPC_STATUS RPC_ENTRY
00111     RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback) ;
00112 
00113     #if !defined(UNALIGNED)
00114         #define UNALIGNED
00115     #endif
00116 
00117     #include <poppack.h>
00118 #else
00119     #include <rpcdce.h>
00120     /* #include <rpcnsi.h> */
00121     #include <rpcnterr.h>
00122     #include <excpt.h>
00123     #include <winerror.h>
00124 
00125     #ifndef __GNUC__
00126         #define RpcTryExcept __try {
00127         #define RpcExcept(expr) } __except (expr) {
00128         #define RpcEndExcept }
00129         #define RpcTryFinally __try {
00130         #define RpcFinally } __finally {
00131         #define RpcEndFinally }
00132         #define RpcExceptionCode() GetExceptionCode()
00133         #define RpcAbnormalTermination() AbnormalTermination()
00134     #else
00135         #define RpcTryExcept _SEH2_TRY
00136         #define RpcExcept(expr) _SEH2_EXCEPT((expr))
00137         #define RpcEndExcept _SEH2_END;
00138         #define RpcTryFinally _SEH2_TRY
00139         #define RpcFinally _SEH2_FINALLY
00140         #define RpcEndFinally _SEH2_END;
00141         #define RpcExceptionCode() _SEH2_GetExceptionCode()
00142         #define RpcAbnormalTermination() (_SEH2_GetExceptionCode() != 0)
00143     #endif
00144 #endif
00145 
00146 #if defined(__RPC_WIN64__)
00147     #include <poppack.h>
00148 #endif
00149 
00150 #ifndef RPC_NO_WINDOWS_H
00151 #include <rpcasync.h>
00152 #endif
00153 
00154 #ifdef __cplusplus
00155 }
00156 #endif
00157 
00158 #endif
00159 
00160 

Generated on Wed May 23 2012 04:30:16 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.