ReactOS 0.4.15-dev-7958-gcd0bb1a
rpcdce2.h File Reference
#include <rpcdce.h>
Include dependency graph for rpcdce2.h:

Go to the source code of this file.

Macros

#define RPC_C_EP_ALL_ELTS   0
 
#define RPC_C_EP_MATCH_BY_IF   1
 
#define RPC_C_EP_MATCH_BY_OBJ   2
 
#define RPC_C_EP_MATCH_BY_BOTH   3
 
#define RPC_C_VERS_ALL   1
 
#define RPC_C_VERS_COMPATIBLE   2
 
#define RPC_C_VERS_EXACT   3
 
#define RPC_C_VERS_MAJOR_ONLY   4
 
#define RPC_C_VERS_UPTO   5
 
#define DCE_C_ERROR_STRING_LEN   256
 
#define RPC_C_MGMT_INQ_IF_IDS   0
 
#define RPC_C_MGMT_INQ_PRINC_NAME   1
 
#define RPC_C_MGMT_INQ_STATS   2
 
#define RPC_C_MGMT_IS_SERVER_LISTEN   3
 
#define RPC_C_MGMT_STOP_SERVER_LISTEN   4
 

Functions

int RPC_ENTRY UuidCompare (UUID *, UUID *, RPC_STATUS *)
 
RPC_STATUS RPC_ENTRY UuidCreateNil (UUID *)
 
int RPC_ENTRY UuidEqual (UUID *, UUID *, RPC_STATUS *)
 
unsigned short RPC_ENTRY UuidHash (UUID *, RPC_STATUS *)
 
int RPC_ENTRY UuidIsNil (UUID *, RPC_STATUS *)
 
RPC_STATUS RPC_ENTRY DceErrorInqText (RPC_STATUS, unsigned char *)
 
RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqNext (RPC_EP_INQ_HANDLE, RPC_IF_ID *, RPC_BINDING_HANDLE *, UUID *, unsigned char **)
 
RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqBegin (RPC_BINDING_HANDLE, unsigned long, RPC_IF_ID *, unsigned long, UUID *, RPC_EP_INQ_HANDLE *)
 
RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqDone (RPC_EP_INQ_HANDLE *)
 
RPC_STATUS RPC_ENTRY RpcMgmtEpUnregister (RPC_BINDING_HANDLE, RPC_IF_ID *, RPC_BINDING_HANDLE, UUID *)
 
RPC_STATUS RPC_ENTRY RpcMgmtSetAuthorizationFn (RPC_MGMT_AUTHORIZATION_FN)
 

Macro Definition Documentation

◆ DCE_C_ERROR_STRING_LEN

#define DCE_C_ERROR_STRING_LEN   256

Definition at line 18 of file rpcdce2.h.

◆ RPC_C_EP_ALL_ELTS

#define RPC_C_EP_ALL_ELTS   0

Definition at line 9 of file rpcdce2.h.

◆ RPC_C_EP_MATCH_BY_BOTH

#define RPC_C_EP_MATCH_BY_BOTH   3

Definition at line 12 of file rpcdce2.h.

◆ RPC_C_EP_MATCH_BY_IF

#define RPC_C_EP_MATCH_BY_IF   1

Definition at line 10 of file rpcdce2.h.

◆ RPC_C_EP_MATCH_BY_OBJ

#define RPC_C_EP_MATCH_BY_OBJ   2

Definition at line 11 of file rpcdce2.h.

◆ RPC_C_MGMT_INQ_IF_IDS

#define RPC_C_MGMT_INQ_IF_IDS   0

Definition at line 19 of file rpcdce2.h.

◆ RPC_C_MGMT_INQ_PRINC_NAME

#define RPC_C_MGMT_INQ_PRINC_NAME   1

Definition at line 20 of file rpcdce2.h.

◆ RPC_C_MGMT_INQ_STATS

#define RPC_C_MGMT_INQ_STATS   2

Definition at line 21 of file rpcdce2.h.

◆ RPC_C_MGMT_IS_SERVER_LISTEN

#define RPC_C_MGMT_IS_SERVER_LISTEN   3

Definition at line 22 of file rpcdce2.h.

◆ RPC_C_MGMT_STOP_SERVER_LISTEN

#define RPC_C_MGMT_STOP_SERVER_LISTEN   4

Definition at line 23 of file rpcdce2.h.

◆ RPC_C_VERS_ALL

#define RPC_C_VERS_ALL   1

Definition at line 13 of file rpcdce2.h.

◆ RPC_C_VERS_COMPATIBLE

#define RPC_C_VERS_COMPATIBLE   2

Definition at line 14 of file rpcdce2.h.

◆ RPC_C_VERS_EXACT

#define RPC_C_VERS_EXACT   3

Definition at line 15 of file rpcdce2.h.

◆ RPC_C_VERS_MAJOR_ONLY

#define RPC_C_VERS_MAJOR_ONLY   4

Definition at line 16 of file rpcdce2.h.

◆ RPC_C_VERS_UPTO

#define RPC_C_VERS_UPTO   5

Definition at line 17 of file rpcdce2.h.

Function Documentation

◆ DceErrorInqText()

RPC_STATUS RPC_ENTRY DceErrorInqText ( RPC_STATUS  ,
unsigned char  
)

◆ RpcMgmtEpEltInqBegin()

RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqBegin ( RPC_BINDING_HANDLE  ,
unsigned long  ,
RPC_IF_ID ,
unsigned long  ,
UUID ,
RPC_EP_INQ_HANDLE  
)

◆ RpcMgmtEpEltInqDone()

RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqDone ( RPC_EP_INQ_HANDLE )

◆ RpcMgmtEpEltInqNext()

RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqNext ( RPC_EP_INQ_HANDLE  ,
RPC_IF_ID ,
RPC_BINDING_HANDLE ,
UUID ,
unsigned char **   
)

◆ RpcMgmtEpUnregister()

RPC_STATUS RPC_ENTRY RpcMgmtEpUnregister ( RPC_BINDING_HANDLE  ,
RPC_IF_ID ,
RPC_BINDING_HANDLE  ,
UUID  
)

◆ RpcMgmtSetAuthorizationFn()

RPC_STATUS RPC_ENTRY RpcMgmtSetAuthorizationFn ( RPC_MGMT_AUTHORIZATION_FN  fn)

Definition at line 1725 of file rpc_server.c.

1726{
1727 FIXME("(%p): stub\n", fn);
1728 return RPC_S_OK;
1729}
#define FIXME(fmt,...)
Definition: debug.h:111
#define RPC_S_OK
Definition: rpcnterr.h:22
static GLenum _GLUfuncptr fn
Definition: wgl_font.c:159

◆ UuidCompare()

int RPC_ENTRY UuidCompare ( UUID Uuid1,
UUID Uuid2,
RPC_STATUS Status 
)

Definition at line 209 of file rpcrt4_main.c.

210{
211 int i;
212
213 TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
214
215 *Status = RPC_S_OK;
216
217 if (!Uuid1) Uuid1 = &uuid_nil;
218 if (!Uuid2) Uuid2 = &uuid_nil;
219
220 if (Uuid1 == Uuid2) return 0;
221
222 if (Uuid1->Data1 != Uuid2->Data1)
223 return Uuid1->Data1 < Uuid2->Data1 ? -1 : 1;
224
225 if (Uuid1->Data2 != Uuid2->Data2)
226 return Uuid1->Data2 < Uuid2->Data2 ? -1 : 1;
227
228 if (Uuid1->Data3 != Uuid2->Data3)
229 return Uuid1->Data3 < Uuid2->Data3 ? -1 : 1;
230
231 for (i = 0; i < 8; i++) {
232 if (Uuid1->Data4[i] < Uuid2->Data4[i])
233 return -1;
234 if (Uuid1->Data4[i] > Uuid2->Data4[i])
235 return 1;
236 }
237
238 return 0;
239}
Status
Definition: gdiplustypes.h:25
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_guid
Definition: kernel32.h:35
static UUID uuid_nil
Definition: rpcrt4_main.c:60
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by LookupObjTypeMap(), RpcObjectSetType(), UuidEqual(), and UuidIsNil().

◆ UuidCreateNil()

RPC_STATUS RPC_ENTRY UuidCreateNil ( UUID Uuid)

Definition at line 284 of file rpcrt4_main.c.

285{
286 *Uuid = uuid_nil;
287 return RPC_S_OK;
288}

Referenced by generate_ipid(), RPCRT4_SetBindingObject(), UuidFromStringA(), and UuidFromStringW().

◆ UuidEqual()

int RPC_ENTRY UuidEqual ( UUID Uuid1,
UUID Uuid2,
RPC_STATUS Status 
)

Definition at line 252 of file rpcrt4_main.c.

253{
254 TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
255 return !UuidCompare(Uuid1, Uuid2, Status);
256}
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:209

Referenced by ProcessTargetDeviceEvent(), RPCRT4_find_interface(), RpcServerUnregisterIf(), test_UuidCreate(), and UuidConversionAndComparison().

◆ UuidHash()

unsigned short RPC_ENTRY UuidHash ( UUID uuid,
RPC_STATUS Status 
)

Definition at line 476 of file rpcrt4_main.c.

477{
478 BYTE *data = (BYTE*)uuid;
479 short c0 = 0, c1 = 0, x, y;
480 unsigned int i;
481
482 if (!uuid) data = (BYTE*)(uuid = &uuid_nil);
483
484 TRACE("(%s)\n", debugstr_guid(uuid));
485
486 for (i=0; i<sizeof(UUID); i++) {
487 c0 += data[i];
488 c1 += c0;
489 }
490
491 x = -c1 % 255;
492 if (x < 0) x += 255;
493
494 y = (c1 - c0) % 255;
495 if (y < 0) y += 255;
496
497 *Status = RPC_S_OK;
498 return y*256 + x;
499}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
Definition: msctf.idl:550
GUID UUID
Definition: module.h:1093
unsigned char BYTE
Definition: xxhash.c:193

◆ UuidIsNil()