ReactOS  0.4.14-dev-860-gd05f621
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  )

Definition at line 1725 of file rpc_server.c.

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

◆ UuidCompare()

int RPC_ENTRY UuidCompare ( UUID ,
UUID ,
RPC_STATUS  
)

Definition at line 207 of file rpcrt4_main.c.

208 {
209  int i;
210 
211  TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
212 
213  *Status = RPC_S_OK;
214 
215  if (!Uuid1) Uuid1 = &uuid_nil;
216  if (!Uuid2) Uuid2 = &uuid_nil;
217 
218  if (Uuid1 == Uuid2) return 0;
219 
220  if (Uuid1->Data1 != Uuid2->Data1)
221  return Uuid1->Data1 < Uuid2->Data1 ? -1 : 1;
222 
223  if (Uuid1->Data2 != Uuid2->Data2)
224  return Uuid1->Data2 < Uuid2->Data2 ? -1 : 1;
225 
226  if (Uuid1->Data3 != Uuid2->Data3)
227  return Uuid1->Data3 < Uuid2->Data3 ? -1 : 1;
228 
229  for (i = 0; i < 8; i++) {
230  if (Uuid1->Data4[i] < Uuid2->Data4[i])
231  return -1;
232  if (Uuid1->Data4[i] > Uuid2->Data4[i])
233  return 1;
234  }
235 
236  return 0;
237 }
static UUID uuid_nil
Definition: rpcrt4_main.c:60
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
#define TRACE(s)
Definition: solgame.cpp:4
Status
Definition: gdiplustypes.h:24
#define RPC_S_OK
Definition: rpcnterr.h:22

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

◆ UuidCreateNil()

RPC_STATUS RPC_ENTRY UuidCreateNil ( UUID )

Definition at line 282 of file rpcrt4_main.c.

283 {
284  *Uuid = uuid_nil;
285  return RPC_S_OK;
286 }
static UUID uuid_nil
Definition: rpcrt4_main.c:60
#define RPC_S_OK
Definition: rpcnterr.h:22

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

◆ UuidEqual()

int RPC_ENTRY UuidEqual ( UUID ,
UUID ,
RPC_STATUS  
)

Definition at line 250 of file rpcrt4_main.c.

251 {
252  TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
253  return !UuidCompare(Uuid1, Uuid2, Status);
254 }
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:207
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
Status
Definition: gdiplustypes.h:24

Referenced by ATL::CImage::IsGuidEqual(), PnpEventThread(), RPCRT4_find_interface(), RpcServerUnregisterIf(), test_UuidCreate(), and UuidConversionAndComparison().

◆ UuidHash()

unsigned short RPC_ENTRY UuidHash ( UUID ,
RPC_STATUS  
)

Definition at line 474 of file rpcrt4_main.c.

475 {
476  BYTE *data = (BYTE*)uuid;
477  short c0 = 0, c1 = 0, x, y;
478  unsigned int i;
479 
480  if (!uuid) data = (BYTE*)(uuid = &uuid_nil);
481 
482  TRACE("(%s)\n", debugstr_guid(uuid));
483 
484  for (i=0; i<sizeof(UUID); i++) {
485  c0 += data[i];
486  c1 += c0;
487  }
488 
489  x = -c1 % 255;
490  if (x < 0) x += 255;
491 
492  y = (c1 - c0) % 255;
493  if (y < 0) y += 255;
494 
495  *Status = RPC_S_OK;
496  return y*256 + x;
497 }
static UUID uuid_nil
Definition: rpcrt4_main.c:60
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GUID UUID
Definition: module.h:1083
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
#define TRACE(s)
Definition: solgame.cpp:4
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
unsigned char BYTE
Definition: mem.h:68
Status
Definition: gdiplustypes.h:24
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
Definition: msctf.idl:510
#define RPC_S_OK
Definition: rpcnterr.h:22

◆ UuidIsNil()

int RPC_ENTRY UuidIsNil ( UUID ,
RPC_STATUS  
)

Definition at line 266 of file rpcrt4_main.c.

267 {
268  TRACE("(%s)\n", debugstr_guid(Uuid));
269  if (!Uuid) return TRUE;
270  return !UuidCompare(Uuid, &uuid_nil, Status);
271 }
#define TRUE
Definition: types.h:120
static UUID uuid_nil
Definition: rpcrt4_main.c:60
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:207
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
Status
Definition: gdiplustypes.h:24

Referenced by NDRSContextUnmarshall2(), process_auth3_packet(), process_bind_packet_no_send(), process_request_packet(), RpcBindingToStringBindingA(), RpcObjectSetType(), RPCRT4_BuildRequestHeader(), RpcServerAssoc_UpdateContextHandle(), and s_context_handle_test().