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.

324 lines
4.1 KiB

  1. #ifndef _WINSMSC_
  2. #define _WINSMSC_
  3. /*++
  4. Copyright (c) 1989 Microsoft Corporation
  5. Module Name:
  6. winsmsc.c
  7. Abstract:
  8. This is the header file for interfacing with the winsevt.c module
  9. Functions:
  10. Portability:
  11. This header is portable.
  12. Author:
  13. Pradeep Bahl (PradeepB) Jan-1993
  14. Revision History:
  15. Modification Date Person Description of Modification
  16. ------------------ ------- ---------------------------
  17. --*/
  18. /*
  19. includes
  20. */
  21. #include "wins.h"
  22. #include "winsque.h"
  23. #include "winsprs.h"
  24. /*
  25. defines
  26. */
  27. /*
  28. macros
  29. */
  30. //
  31. // macros for hiding Rtl functions
  32. //
  33. #define WINSMSC_COPY_MEMORY_M(x,y,z) { RtlCopyMemory(x,y,z); }
  34. #define WINSMSC_MOVE_MEMORY_M(x,y,z) { RtlMoveMemory(x,y,z); }
  35. #define WINSMSC_FILL_MEMORY_M(x,y,z) { RtlFillMemory(x,y,z); }
  36. #define WINSMSC_COMPARE_MEMORY_M(x,y,z) RtlCompareMemory(x,y,z)
  37. #define WINSMSC_DELETE_FRM_TBL_M(x,y) RtlDeleteElementGenericTable(x,y)
  38. #define WINSMSC_INSERT_IN_TBL_M(u,w,x,y) RtlInsertElementGenericTable(u,w,x,y)
  39. #if 0
  40. #define WINSMSC_DELETE_FRM_TBL_M(x,y) CommAssocDeleteUdpDlg(x,y)
  41. #define WINSMSC_INSERT_IN_TBL_M(u,w,x,y) CommAssocInsertUdpDlg(u,w,x,y)
  42. #endif
  43. #define WINSMSC_INIT_TBL_M(u,w,x,y,z) {RtlInitializeGenericTable(u,w,x,y,z);}
  44. #define WINSMSC_REALLOC_M(_MemSize, _ppByte) WinsMscHeapReAlloc(GenBuffHeapHdl, (_MemSize), (_ppByte))
  45. /*
  46. * externs
  47. */
  48. /*
  49. typedef definitions
  50. */
  51. /*
  52. function declarations
  53. */
  54. extern
  55. VOID
  56. WinsMscAlloc(
  57. IN DWORD Size,
  58. OUT LPVOID *ppBuff
  59. );
  60. extern
  61. VOID
  62. WinsMscDealloc(
  63. LPVOID pBuff
  64. );
  65. extern
  66. VOID
  67. WinsMscFreeMem(
  68. PWINS_MEM_T pWinsMem
  69. );
  70. extern
  71. VOID
  72. WinsMscWaitInfinite(
  73. HANDLE Hdl
  74. );
  75. extern
  76. VOID
  77. WinsMscWaitTimed(
  78. IN HANDLE Hdl,
  79. IN DWORD TimeOut,
  80. OUT LPBOOL pfSignaled
  81. );
  82. extern
  83. VOID
  84. WinsMscCreateEvt(
  85. IN LPTSTR pName,
  86. IN BOOL fManualReset,
  87. IN PHANDLE pHdl
  88. );
  89. extern
  90. HANDLE
  91. WinsMscCreateThd(
  92. IN LPTHREAD_START_ROUTINE pThdInitFn,
  93. IN LPVOID pParam,
  94. OUT LPDWORD pThdId
  95. );
  96. extern
  97. STATUS
  98. WinsMscSetUpThd(
  99. PQUE_HD_T pQueHd,
  100. LPTHREAD_START_ROUTINE pThdInitFn,
  101. LPVOID pParam,
  102. LPHANDLE pThdHdl,
  103. LPDWORD pThdId
  104. );
  105. extern
  106. VOID
  107. WinsMscWaitUntilSignaled(
  108. LPHANDLE pHdlArray,
  109. DWORD NoOfHdls,
  110. LPDWORD pIndexOfHdlSignaled,
  111. BOOL fAlertable
  112. );
  113. extern
  114. VOID
  115. WinsMscWaitTimedUntilSignaled(
  116. LPHANDLE pHdlArray,
  117. DWORD NoOfHdls,
  118. LPDWORD pIndexOfHdlSignaled,
  119. DWORD TimeOut,
  120. LPBOOL pfSignaled
  121. );
  122. extern
  123. LPVOID
  124. WinsMscHeapAlloc(
  125. IN HANDLE HeapHdl,
  126. IN DWORD Size
  127. );
  128. extern
  129. VOID
  130. WinsMscHeapReAlloc(
  131. IN HANDLE HeapHdl,
  132. IN DWORD BuffSize,
  133. OUT LPVOID *ppRspBuff
  134. );
  135. extern
  136. VOID
  137. WinsMscHeapFree(
  138. HANDLE HeapHdl,
  139. LPVOID pBuff
  140. );
  141. extern
  142. HANDLE
  143. WinsMscHeapCreate(
  144. IN DWORD Options,
  145. IN DWORD InitSize
  146. );
  147. extern
  148. VOID
  149. WinsMscHeapDestroy(
  150. HANDLE HeapHdl
  151. );
  152. extern
  153. VOID
  154. WinsMscTermThd(
  155. STATUS ExitStatus,
  156. DWORD DbSessionExists
  157. );
  158. extern
  159. VOID
  160. WinsMscSignalHdl (
  161. HANDLE Hdl
  162. );
  163. extern
  164. VOID
  165. WinsMscResetHdl (
  166. HANDLE Hdl
  167. );
  168. extern
  169. VOID
  170. WinsMscCloseHdl (
  171. HANDLE Hdl
  172. );
  173. extern
  174. VOID
  175. WinsMscSetThreadPriority(
  176. HANDLE ThdHdl,
  177. int PrLvl
  178. );
  179. extern
  180. BOOL
  181. WinsMscOpenFile(
  182. IN LPTCH pFileName,
  183. IN DWORD StrType,
  184. OUT LPHANDLE pFileHandle
  185. );
  186. extern
  187. BOOL
  188. WinsMscMapFile(
  189. PWINSPRS_FILE_INFO_T pFileInfo
  190. );
  191. extern
  192. VOID
  193. WinsMscLogEvtStrs(
  194. LPBYTE pAscii,
  195. DWORD EvtNo,
  196. BOOL fInfo
  197. );
  198. extern
  199. VOID
  200. WinsMscConvertUnicodeStringToAscii(
  201. LPBYTE pUnicodeString,
  202. LPBYTE pAsciiString,
  203. DWORD MaxSz
  204. );
  205. extern
  206. VOID
  207. WinsMscConvertAsciiStringToUnicode(
  208. LPBYTE pAsciiString,
  209. LPBYTE pUnicodeString,
  210. DWORD MaxSz
  211. );
  212. extern
  213. BOOL
  214. WinsMscGetName(
  215. DWORD StrType,
  216. LPTSTR pFileName,
  217. LPTSTR pExpandedFileName,
  218. DWORD ExpandedFileNameBuffLen,
  219. LPTSTR *ppHoldFileName
  220. );
  221. extern
  222. VOID
  223. WinsMscSendControlToSc(
  224. DWORD ControlCode
  225. );
  226. extern
  227. unsigned
  228. WinsMscPutMsg(unsigned usMsgNum, ... );
  229. LPTSTR
  230. WinsMscGetString(
  231. DWORD StrId
  232. );
  233. extern
  234. VOID
  235. WinsMscChkTermEvt(
  236. #ifdef WINSDBG
  237. WINS_CLIENT_E Client_e,
  238. #endif
  239. BOOL fTermTrans
  240. );
  241. extern
  242. VOID
  243. WinsMscDelFiles(
  244. BOOL fMultiple,
  245. LPCTSTR pFilePattern,
  246. LPTSTR pFilePath
  247. );
  248. #endif
  249.