ReactOS 0.4.16-dev-320-g3bd9ddc
rpc_defs.h File Reference
#include "pshpack1.h"
#include "poppack.h"
Include dependency graph for rpc_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RpcPktCommonHdr
 
struct  RpcPktRequestHdr
 
struct  RpcPktResponseHdr
 
struct  RpcPktFaultHdr
 
struct  RpcContextElement
 
struct  RpcPktBindHdr
 
struct  RpcAddressString
 
struct  RpcResult
 
struct  RpcResultList
 
struct  RpcPktBindAckHdr
 
struct  RpcPktBindNAckHdr
 
struct  RpcPktHttpHdr
 
struct  RpcPktAuth3Hdr
 
union  RpcPktHdr
 
struct  RpcAuthVerifier
 

Macros

#define RPC_AUTH_VERIFIER_LEN(common_hdr)    ((common_hdr)->auth_len ? (common_hdr)->auth_len + sizeof(RpcAuthVerifier) : 0)
 
#define RPC_VER_MAJOR   5
 
#define RPC_VER_MINOR   0
 
#define RPC_FLG_FIRST   1
 
#define RPC_FLG_LAST   2
 
#define RPC_FLG_OBJECT_UUID   0x80
 
#define RPC_MIN_PACKET_SIZE   0x1000
 
#define RPC_MAX_PACKET_SIZE   0x16D0
 
#define RESULT_ACCEPT   0
 
#define RESULT_USER_REJECTION   1
 
#define RESULT_PROVIDER_REJECTION   2
 
#define REASON_NONE   0
 
#define REASON_ABSTRACT_SYNTAX_NOT_SUPPORTED   1
 
#define REASON_TRANSFER_SYNTAXES_NOT_SUPPORTED   2
 
#define REASON_LOCAL_LIMIT_EXCEEDED   3
 
#define REJECT_REASON_NOT_SPECIFIED   0
 
#define REJECT_TEMPORARY_CONGESTION   1
 
#define REJECT_LOCAL_LIMIT_EXCEEDED   2
 
#define REJECT_CALLED_PADDR_UNKNOWN   3 /* not used */
 
#define REJECT_PROTOCOL_VERSION_NOT_SUPPORTED   4
 
#define REJECT_DEFAULT_CONTEXT_NOT_SUPPORTED   5 /* not used */
 
#define REJECT_USER_DATA_NOT_READABLE   6 /* not used */
 
#define REJECT_NO_PSAP_AVAILABLE   7 /* not used */
 
#define REJECT_UNKNOWN_AUTHN_SERVICE   8
 
#define REJECT_INVALID_CHECKSUM   9
 
#define NCADG_IP_UDP   0x08
 
#define NCACN_IP_TCP   0x07
 
#define NCADG_IPX   0x0E
 
#define NCACN_SPX   0x0C
 
#define NCACN_NB_NB   0x12
 
#define NCACN_NB_IPX   0x0D
 
#define NCACN_DNET_NSP   0x04
 
#define NCACN_HTTP   0x1F
 
#define TWR_IP   0x09
 

Enumerations

enum  rpc_packet_type {
  PKT_REQUEST = 0 , PKT_PING = 1 , PKT_RESPONSE = 2 , PKT_FAULT = 3 ,
  PKT_WORKING = 4 , PKT_NOCALL = 5 , PKT_REJECT = 6 , PKT_ACK = 7 ,
  PKT_CL_CANCEL = 8 , PKT_FACK = 9 , PKT_CANCEL_ACK = 10 , PKT_BIND = 11 ,
  PKT_BIND_ACK = 12 , PKT_BIND_NACK = 13 , PKT_ALTER_CONTEXT = 14 , PKT_ALTER_CONTEXT_RESP = 15 ,
  PKT_AUTH3 = 16 , PKT_SHUTDOWN = 17 , PKT_CO_CANCEL = 18 , PKT_ORPHANED = 19 ,
  PKT_HTTP = 20
}
 

Macro Definition Documentation

◆ NCACN_DNET_NSP

#define NCACN_DNET_NSP   0x04

Definition at line 237 of file rpc_defs.h.

◆ NCACN_HTTP

#define NCACN_HTTP   0x1F

Definition at line 238 of file rpc_defs.h.

◆ NCACN_IP_TCP

#define NCACN_IP_TCP   0x07

Definition at line 232 of file rpc_defs.h.

◆ NCACN_NB_IPX

#define NCACN_NB_IPX   0x0D

Definition at line 236 of file rpc_defs.h.

◆ NCACN_NB_NB

#define NCACN_NB_NB   0x12

Definition at line 235 of file rpc_defs.h.

◆ NCACN_SPX

#define NCACN_SPX   0x0C

Definition at line 234 of file rpc_defs.h.

◆ NCADG_IP_UDP

#define NCADG_IP_UDP   0x08

Definition at line 231 of file rpc_defs.h.

◆ NCADG_IPX

#define NCADG_IPX   0x0E

Definition at line 233 of file rpc_defs.h.

◆ REASON_ABSTRACT_SYNTAX_NOT_SUPPORTED

#define REASON_ABSTRACT_SYNTAX_NOT_SUPPORTED   1

Definition at line 216 of file rpc_defs.h.

◆ REASON_LOCAL_LIMIT_EXCEEDED

#define REASON_LOCAL_LIMIT_EXCEEDED   3

Definition at line 218 of file rpc_defs.h.

◆ REASON_NONE

#define REASON_NONE   0

Definition at line 215 of file rpc_defs.h.

◆ REASON_TRANSFER_SYNTAXES_NOT_SUPPORTED

#define REASON_TRANSFER_SYNTAXES_NOT_SUPPORTED   2

Definition at line 217 of file rpc_defs.h.

◆ REJECT_CALLED_PADDR_UNKNOWN

#define REJECT_CALLED_PADDR_UNKNOWN   3 /* not used */

Definition at line 223 of file rpc_defs.h.

◆ REJECT_DEFAULT_CONTEXT_NOT_SUPPORTED

#define REJECT_DEFAULT_CONTEXT_NOT_SUPPORTED   5 /* not used */

Definition at line 225 of file rpc_defs.h.

◆ REJECT_INVALID_CHECKSUM

#define REJECT_INVALID_CHECKSUM   9

Definition at line 229 of file rpc_defs.h.

◆ REJECT_LOCAL_LIMIT_EXCEEDED

#define REJECT_LOCAL_LIMIT_EXCEEDED   2

Definition at line 222 of file rpc_defs.h.

◆ REJECT_NO_PSAP_AVAILABLE

#define REJECT_NO_PSAP_AVAILABLE   7 /* not used */

Definition at line 227 of file rpc_defs.h.

◆ REJECT_PROTOCOL_VERSION_NOT_SUPPORTED

#define REJECT_PROTOCOL_VERSION_NOT_SUPPORTED   4

Definition at line 224 of file rpc_defs.h.

◆ REJECT_REASON_NOT_SPECIFIED

#define REJECT_REASON_NOT_SPECIFIED   0

Definition at line 220 of file rpc_defs.h.

◆ REJECT_TEMPORARY_CONGESTION

#define REJECT_TEMPORARY_CONGESTION   1

Definition at line 221 of file rpc_defs.h.

◆ REJECT_UNKNOWN_AUTHN_SERVICE

#define REJECT_UNKNOWN_AUTHN_SERVICE   8

Definition at line 228 of file rpc_defs.h.

◆ REJECT_USER_DATA_NOT_READABLE

#define REJECT_USER_DATA_NOT_READABLE   6 /* not used */

Definition at line 226 of file rpc_defs.h.

◆ RESULT_ACCEPT

#define RESULT_ACCEPT   0

Definition at line 211 of file rpc_defs.h.

◆ RESULT_PROVIDER_REJECTION

#define RESULT_PROVIDER_REJECTION   2

Definition at line 213 of file rpc_defs.h.

◆ RESULT_USER_REJECTION

#define RESULT_USER_REJECTION   1

Definition at line 212 of file rpc_defs.h.

◆ RPC_AUTH_VERIFIER_LEN

#define RPC_AUTH_VERIFIER_LEN (   common_hdr)     ((common_hdr)->auth_len ? (common_hdr)->auth_len + sizeof(RpcAuthVerifier) : 0)

Definition at line 173 of file rpc_defs.h.

◆ RPC_FLG_FIRST

#define RPC_FLG_FIRST   1

Definition at line 179 of file rpc_defs.h.

◆ RPC_FLG_LAST

#define RPC_FLG_LAST   2

Definition at line 180 of file rpc_defs.h.

◆ RPC_FLG_OBJECT_UUID

#define RPC_FLG_OBJECT_UUID   0x80

Definition at line 181 of file rpc_defs.h.

◆ RPC_MAX_PACKET_SIZE

#define RPC_MAX_PACKET_SIZE   0x16D0

Definition at line 184 of file rpc_defs.h.

◆ RPC_MIN_PACKET_SIZE

#define RPC_MIN_PACKET_SIZE   0x1000

Definition at line 183 of file rpc_defs.h.

◆ RPC_VER_MAJOR

#define RPC_VER_MAJOR   5

Definition at line 176 of file rpc_defs.h.

◆ RPC_VER_MINOR

#define RPC_VER_MINOR   0

Definition at line 177 of file rpc_defs.h.

◆ TWR_IP

#define TWR_IP   0x09

Definition at line 241 of file rpc_defs.h.

Enumeration Type Documentation

◆ rpc_packet_type

Enumerator
PKT_REQUEST 
PKT_PING 
PKT_RESPONSE 
PKT_FAULT 
PKT_WORKING 
PKT_NOCALL 
PKT_REJECT 
PKT_ACK 
PKT_CL_CANCEL 
PKT_FACK 
PKT_CANCEL_ACK 
PKT_BIND 
PKT_BIND_ACK 
PKT_BIND_NACK 
PKT_ALTER_CONTEXT 
PKT_ALTER_CONTEXT_RESP 
PKT_AUTH3 
PKT_SHUTDOWN 
PKT_CO_CANCEL 
PKT_ORPHANED 
PKT_HTTP 

Definition at line 186 of file rpc_defs.h.

187{
188 PKT_REQUEST = 0,
189 PKT_PING = 1,
190 PKT_RESPONSE = 2,
191 PKT_FAULT = 3,
192 PKT_WORKING = 4,
193 PKT_NOCALL = 5,
194 PKT_REJECT = 6,
195 PKT_ACK = 7,
196 PKT_CL_CANCEL = 8,
197 PKT_FACK = 9,
198 PKT_CANCEL_ACK = 10,
199 PKT_BIND = 11,
200 PKT_BIND_ACK = 12,
201 PKT_BIND_NACK = 13,
204 PKT_AUTH3 = 16,
205 PKT_SHUTDOWN = 17,
206 PKT_CO_CANCEL = 18,
207 PKT_ORPHANED = 19,
208 PKT_HTTP = 20,
209};
@ PKT_FAULT
Definition: rpc_defs.h:191
@ PKT_NOCALL
Definition: rpc_defs.h:193
@ PKT_WORKING
Definition: rpc_defs.h:192
@ PKT_CANCEL_ACK
Definition: rpc_defs.h:198
@ PKT_REQUEST
Definition: rpc_defs.h:188
@ PKT_RESPONSE
Definition: rpc_defs.h:190
@ PKT_ACK
Definition: rpc_defs.h:195
@ PKT_PING
Definition: rpc_defs.h:189
@ PKT_BIND_NACK
Definition: rpc_defs.h:201
@ PKT_FACK
Definition: rpc_defs.h:197
@ PKT_ALTER_CONTEXT
Definition: rpc_defs.h:202
@ PKT_BIND
Definition: rpc_defs.h:199
@ PKT_CL_CANCEL
Definition: rpc_defs.h:196
@ PKT_ALTER_CONTEXT_RESP
Definition: rpc_defs.h:203
@ PKT_CO_CANCEL
Definition: rpc_defs.h:206
@ PKT_SHUTDOWN
Definition: rpc_defs.h:205
@ PKT_AUTH3
Definition: rpc_defs.h:204
@ PKT_HTTP
Definition: rpc_defs.h:208
@ PKT_ORPHANED
Definition: rpc_defs.h:207
@ PKT_BIND_ACK
Definition: rpc_defs.h:200
@ PKT_REJECT
Definition: rpc_defs.h:194