|
|
1.1 root 1: /*********************************************************/
2: /** Microsoft LAN Manager **/
3: /** Copyright(c) Microsoft Corp., 1991 **/
4: /** **/
5: /** Base Include file for NT **/
6: /** **/
7: /*********************************************************/
8:
9: #ifndef __RPC_H__
10: #define __RPC_H__
11:
12:
13: typedef long RPC_STATUS;
14:
15: #define PAPI
16: #define RPC_ENTRY
17:
18: #ifdef IN
19:
20: #undef IN
21: #undef OUT
22: #undef OPTIONAL
23: #endif
24:
25: typedef void * RPC_HANDLE;
26:
27: #include "rpcbse.h"
28: #include "rpcnterr.h"
29:
30: #ifndef try
31: #include <excpt.h>
32: #endif
33:
34: #define RpcTryExcept \
35: try \
36: {
37:
38: // trystmts
39:
40: #define RpcExcept(expr) \
41: } \
42: except (expr) \
43: {
44:
45: // exceptstmts
46:
47: #define RpcEndExcept \
48: }
49:
50: #define RpcTryFinally \
51: try \
52: {
53:
54: // trystmts
55:
56: #define RpcFinally \
57: } \
58: finally \
59: {
60:
61: // finallystmts
62:
63: #define RpcEndFinally \
64: }
65:
66: // define the following functions/variables for benifit of C++ preprocessors
67:
68: #if defined(i386)
69: unsigned long _exception_code(void);
70: int _abnormal_termination(void);
71:
72: #endif
73:
74: #define RpcExceptionCode() GetExceptionCode()
75: #define RpcAbnormalTermination() AbnormalTermination()
76:
77: RPC_STATUS RPC_ENTRY
78: RpcImpersonateClient (
79: IN RPC_HANDLE CallHandle OPTIONAL
80: );
81:
82: RPC_STATUS RPC_ENTRY
83: RpcRevertToSelf (
84: );
85:
86: #endif // __RPC_H__
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.