ReactOS 0.4.16-dev-1946-g52006dd
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: precomp.h:53
#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 234 of file rpcrt4_main.c.

235{
236 int i;
237
238 TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
239
240 *Status = RPC_S_OK;
241
242 if (!Uuid1) Uuid1 = &uuid_nil;
243 if (!Uuid2) Uuid2 = &uuid_nil;
244
245 if (Uuid1 == Uuid2) return 0;
246
247 if (Uuid1->Data1 != Uuid2->Data1)
248 return Uuid1->Data1 < Uuid2->Data1 ? -1 : 1;
249
250 if (Uuid1->Data2 != Uuid2->Data2)
251 return Uuid1->Data2 < Uuid2->Data2 ? -1 : 1;
252
253 if (Uuid1->Data3 != Uuid2->Data3)
254 return Uuid1->Data3 < Uuid2->Data3 ? -1 : 1;
255
256 for (i = 0; i < 8; i++) {
257 if (Uuid1->Data4[i] < Uuid2->Data4[i])
258 return -1;
259 if (Uuid1->Data4[i] > Uuid2->Data4[i])
260 return 1;
261 }
262
263 return 0;
264}
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 309 of file rpcrt4_main.c.

310{
311 *Uuid = uuid_nil;
312 return RPC_S_OK;
313}

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

◆ UuidEqual()

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

Definition at line 277 of file rpcrt4_main.c.

278{
279 TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
280 return !UuidCompare(Uuid1, Uuid2, Status);
281}
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:234

Referenced by ProcessDeviceClassChangeEvent(), ProcessTargetDeviceEvent(), RPCRT4_find_interface(), RpcServerUnregisterIf(), test_UuidCreate(), test_UuidEqual(), and test_UuidFromString().

◆ UuidHash()

unsigned short RPC_ENTRY UuidHash ( UUID uuid,
RPC_STATUS Status 
)

Definition at line 501 of file rpcrt4_main.c.

502{
503 BYTE *data = (BYTE*)uuid;
504 short c0 = 0, c1 = 0, x, y;
505 unsigned int i;
506
507 if (!uuid) data = (BYTE*)(uuid = &uuid_nil);
508
509 TRACE("(%s)\n", debugstr_guid(uuid));
510
511 for (i=0; i<sizeof(UUID); i++) {
512 c0 += data[i];
513 c1 += c0;
514 }
515
516 x = -c1 % 255;
517 if (x < 0) x += 255;
518
519 y = (c1 - c0) % 255;
520 if (y < 0) y += 255;
521
522 *Status = RPC_S_OK;
523 return y*256 + x;
524}
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:532
GUID UUID
Definition: module.h:1093
unsigned char BYTE
Definition: xxhash.c:193

◆ UuidIsNil()