home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / GENINC32.PAK / RPC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  2.4 KB  |  132 lines

  1. /*********************************************************/
  2. /**               Microsoft LAN Manager                 **/
  3. /**                                                     **/
  4. /**              Base Include file for NT               **/
  5. /**                                                     **/
  6. /*********************************************************/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 6.0
  10.  *
  11.  *      Copyright (c) 1992, 1993 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16. #ifndef __RPC_H__
  17. #define __RPC_H__
  18.  
  19. #ifndef RC_INVOKED
  20. #pragma option -a
  21. #endif /* RC_INVOKED */
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. #define __RPC_WIN32__
  28.  
  29. #ifndef __MIDL_USER_DEFINED
  30. #define midl_user_allocate MIDL_user_allocate
  31. #define midl_user_free     MIDL_user_free
  32. #define __MIDL_USER_DEFINED
  33. #endif
  34.  
  35. typedef void * I_RPC_HANDLE;
  36. typedef long RPC_STATUS;
  37.  
  38. #define RPC_UNICODE_SUPPORTED
  39. #if   (_MSC_VER >= 800) || defined(__BORLANDC__)
  40. #define __RPC_FAR
  41. #define __RPC_API  __stdcall
  42. #define __RPC_USER __stdcall
  43. #define __RPC_STUB __stdcall
  44. #define RPC_ENTRY  __stdcall
  45. #else
  46. #define __RPC_FAR
  47. #define __RPC_API
  48. #define __RPC_USER
  49. #define __RPC_STUB
  50. #define RPC_ENTRY
  51. #endif
  52.  
  53. #ifdef IN
  54. #undef IN
  55. #undef OUT
  56. #undef OPTIONAL
  57. #endif /* IN */
  58.  
  59. #include "rpcdce.h"
  60. #include "rpcnsi.h"
  61. #include "rpcnterr.h"
  62.  
  63. #ifndef RPC_NO_WINDOWS_H
  64. #include <windows.h>
  65. #endif // RPC_NO_WINDOWS_H
  66.  
  67. #include <excpt.h>
  68. #include <winerror.h>
  69.  
  70. #ifndef RC_INVOKED
  71. #pragma option -a
  72. #endif /* RC_INVOKED */
  73.  
  74. #define RpcTryExcept \
  75.     try \
  76.         {
  77.  
  78. // trystmts
  79.  
  80. #define RpcExcept(expr) \
  81.         } \
  82.     except (expr) \
  83.         {
  84.  
  85. // exceptstmts
  86.  
  87. #define RpcEndExcept \
  88.         }
  89.  
  90. #define RpcTryFinally \
  91.     try \
  92.         {
  93.  
  94. // trystmts
  95.  
  96. #define RpcFinally \
  97.         } \
  98.     finally \
  99.         {
  100.  
  101. // finallystmts
  102.  
  103. #define RpcEndFinally \
  104.         }
  105.  
  106. #define RpcExceptionCode() GetExceptionCode()
  107. #define RpcAbnormalTermination() AbnormalTermination()
  108.  
  109. RPC_STATUS RPC_ENTRY
  110. RpcImpersonateClient (
  111.     IN RPC_BINDING_HANDLE BindingHandle OPTIONAL
  112.     );
  113.  
  114. RPC_STATUS RPC_ENTRY
  115. RpcRevertToSelf (
  116.     );
  117.  
  118. unsigned long RPC_ENTRY
  119. I_RpcMapWin32Status (
  120.     IN RPC_STATUS Status
  121.     );
  122.  
  123. #ifdef __cplusplus
  124. }
  125. #endif
  126.  
  127. #ifndef RC_INVOKED
  128. #pragma option -a.
  129. #endif /* RC_INVOKED */
  130.  
  131. #endif // __RPC_H__
  132.