Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
2.9 KiB

  1. #ifndef __RAWRPC_H__
  2. #define __RAWRPC_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define small char
  7. #include "rpc.h"
  8. #include "rpcndr.h"
  9. #include "wtypes.h"
  10. extern RPC_IF_HANDLE IRawRpc_ServerIfHandle;
  11. extern RPC_IF_HANDLE IRawRpc_ClientIfHandle;
  12. #ifndef _SIZE_T_DEFINED
  13. typedef unsigned int size_t;
  14. #define _SIZE_T_DEFINED
  15. #endif
  16. #ifndef TRUE
  17. #define TRUE 1
  18. #endif
  19. #ifndef FALSE
  20. #define FALSE 0
  21. #endif
  22. #ifndef _ERROR_STATUS_T_DEFINED
  23. typedef unsigned long error_status_t;
  24. #define _ERROR_STATUS_T_DEFINED
  25. #endif
  26. #ifndef _WCHAR_T_DEFINED
  27. typedef unsigned short wchar_t;
  28. #define _WCHAR_T_DEFINED
  29. #endif
  30. SCODE Quit(
  31. handle_t hRpc);
  32. void Void(
  33. handle_t hRpc);
  34. SCODE VoidRC(
  35. handle_t hRpc);
  36. SCODE VoidPtrIn(
  37. handle_t hRpc,
  38. ULONG cb,
  39. void *pv);
  40. SCODE VoidPtrOut(
  41. handle_t hRpc,
  42. ULONG cb,
  43. ULONG *pcb,
  44. void *pv);
  45. SCODE DwordIn(
  46. handle_t hRpc,
  47. DWORD dw);
  48. SCODE DwordOut(
  49. handle_t hRpc,
  50. DWORD *pdw);
  51. SCODE DwordInOut(
  52. handle_t hRpc,
  53. DWORD *pdw);
  54. SCODE LiIn(
  55. handle_t hRpc,
  56. LARGE_INTEGER li);
  57. SCODE LiOut(
  58. handle_t hRpc,
  59. LARGE_INTEGER *pli);
  60. SCODE ULiIn(
  61. handle_t hRpc,
  62. ULARGE_INTEGER uli);
  63. SCODE ULiOut(
  64. handle_t hRpc,
  65. ULARGE_INTEGER *puli);
  66. SCODE StringIn(
  67. handle_t hRpc,
  68. LPWSTR pwsz);
  69. SCODE StringOut(
  70. handle_t hRpc,
  71. LPWSTR *ppwsz);
  72. SCODE StringInOut(
  73. handle_t hRpc,
  74. LPWSTR pwsz);
  75. SCODE GuidIn(
  76. handle_t hRpc,
  77. GUID guid);
  78. SCODE GuidOut(
  79. handle_t hRpc,
  80. GUID *pguid);
  81. #if !defined(IMPORT_USED_MULTIPLE) && !defined(IMPORT_USED_SINGLE)
  82. #endif /*!defined(IMPORT_USED_MULTIPLE) && !defined(IMPORT_USED_SINGLE)*/
  83. typedef struct _IRawRpc_SERVER_EPV
  84. {
  85. SCODE (__RPC_FAR * Quit)(
  86. handle_t hRpc);
  87. void (__RPC_FAR * Void)(
  88. handle_t hRpc);
  89. SCODE (__RPC_FAR * VoidRC)(
  90. handle_t hRpc);
  91. SCODE (__RPC_FAR * VoidPtrIn)(
  92. handle_t hRpc,
  93. ULONG cb,
  94. void *pv);
  95. SCODE (__RPC_FAR * VoidPtrOut)(
  96. handle_t hRpc,
  97. ULONG cb,
  98. ULONG *pcb,
  99. void *pv);
  100. SCODE (__RPC_FAR * DwordIn)(
  101. handle_t hRpc,
  102. DWORD dw);
  103. SCODE (__RPC_FAR * DwordOut)(
  104. handle_t hRpc,
  105. DWORD *pdw);
  106. SCODE (__RPC_FAR * DwordInOut)(
  107. handle_t hRpc,
  108. DWORD *pdw);
  109. SCODE (__RPC_FAR * LiIn)(
  110. handle_t hRpc,
  111. LARGE_INTEGER li);
  112. SCODE (__RPC_FAR * LiOut)(
  113. handle_t hRpc,
  114. LARGE_INTEGER *pli);
  115. SCODE (__RPC_FAR * ULiIn)(
  116. handle_t hRpc,
  117. ULARGE_INTEGER uli);
  118. SCODE (__RPC_FAR * ULiOut)(
  119. handle_t hRpc,
  120. ULARGE_INTEGER *puli);
  121. SCODE (__RPC_FAR * StringIn)(
  122. handle_t hRpc,
  123. LPWSTR pwsz);
  124. SCODE (__RPC_FAR * StringOut)(
  125. handle_t hRpc,
  126. LPWSTR *ppwsz);
  127. SCODE (__RPC_FAR * StringInOut)(
  128. handle_t hRpc,
  129. LPWSTR pwsz);
  130. SCODE (__RPC_FAR * GuidIn)(
  131. handle_t hRpc,
  132. GUID guid);
  133. SCODE (__RPC_FAR * GuidOut)(
  134. handle_t hRpc,
  135. GUID *pguid);
  136. }
  137. IRawRpc_SERVER_EPV;
  138. void __RPC_FAR * __RPC_API MIDL_user_allocate(size_t);
  139. void __RPC_API MIDL_user_free(void __RPC_FAR *);
  140. #ifndef __MIDL_USER_DEFINED
  141. #define midl_user_allocate MIDL_user_allocate
  142. #define midl_user_free MIDL_user_free
  143. #define __MIDL_USER_DEFINED
  144. #endif
  145. #ifdef __cplusplus
  146. }
  147. #endif
  148. #endif