ReactOS  0.4.14-dev-317-g96040ec
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 1728 of file rpc_server.c.

1729 {
1730  FIXME("(%p): stub\n", fn);
1731  return RPC_S_OK;
1732 }
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 210 of file rpcrt4_main.c.

211 {
212  int i;
213 
214  TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
215 
216  *Status = RPC_S_OK;
217 
218  if (!Uuid1) Uuid1 = &uuid_nil;
219  if (!Uuid2) Uuid2 = &uuid_nil;
220 
221  if (Uuid1 == Uuid2) return 0;
222 
223  if (Uuid1->Data1 != Uuid2->Data1)
224  return Uuid1->Data1 < Uuid2->Data1 ? -1 : 1;
225 
226  if (Uuid1->Data2 != Uuid2->Data2)
227  return Uuid1->Data2 < Uuid2->Data2 ? -1 : 1;
228 
229  if (Uuid1->Data3 != Uuid2->Data3)
230  return Uuid1->Data3 < Uuid2->Data3 ? -1 : 1;
231 
232  for (i = 0; i < 8; i++) {
233  if (Uuid1->Data4[i] < Uuid2->Data4[i])
234  return -1;
235  if (Uuid1->Data4[i] > Uuid2->Data4[i])
236  return 1;
237  }
238 
239  return 0;
240 }
static UUID uuid_nil
Definition: rpcrt4_main.c:63
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 285 of file rpcrt4_main.c.

286 {
287  *Uuid = uuid_nil;
288  return RPC_S_OK;
289 }
static UUID uuid_nil
Definition: rpcrt4_main.c:63
#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 253 of file rpcrt4_main.c.

254 {
255  TRACE("(%s,%s)\n", debugstr_guid(Uuid1), debugstr_guid(Uuid2));
256  return !UuidCompare(Uuid1, Uuid2, Status);
257 }
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:210
#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 477 of file rpcrt4_main.c.

478 {
479  BYTE *data = (BYTE*)uuid;
480  short c0 = 0, c1 = 0, x, y;
481  unsigned int i;
482 
483  if (!uuid) data = (BYTE*)(uuid = &uuid_nil);
484 
485  TRACE("(%s)\n", debugstr_guid(uuid));
486 
487  for (i=0; i<sizeof(UUID); i++) {
488  c0 += data[i];
489  c1 += c0;
490  }
491 
492  x = -c1 % 255;
493  if (x < 0) x += 255;
494 
495  y = (c1 - c0) % 255;
496  if (y < 0) y += 255;
497 
498  *Status = RPC_S_OK;
499  return y*256 + x;
500 }
static UUID uuid_nil
Definition: rpcrt4_main.c:63
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 269 of file rpcrt4_main.c.

270 {
271  TRACE("(%s)\n", debugstr_guid(Uuid));
272  if (!Uuid) return TRUE;
273  return !UuidCompare(Uuid, &uuid_nil, Status);
274 }
#define TRUE
Definition: types.h:120
static UUID uuid_nil
Definition: rpcrt4_main.c:63
int WINAPI UuidCompare(UUID *Uuid1, UUID *Uuid2, RPC_STATUS *Status)
Definition: rpcrt4_main.c:210
#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().