Leaked source code of windows server 2003
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.

644 lines
26 KiB

  1. /****************************************************************************
  2. INTEL CORPORATION PROPRIETARY INFORMATION
  3. Copyright (c) 1992 Intel Corporation
  4. All Rights Reserved
  5. This software is supplied under the terms of a license
  6. agreement or non-disclosure agreement with Intel Corporation
  7. and may not be copied or disclosed except in accordance
  8. with the terms of that agreement
  9. $Source: q:/prism/include/rcs/isrg.h $
  10. $Revision: 1.4 $
  11. $Date: 01 Oct 1996 11:14:54 $
  12. $Author: EHOWARDX $
  13. $Locker: $
  14. Description
  15. -----------
  16. Interrupt Service Routine debug header file
  17. This module allows for a way of doing OutputDebugString()
  18. at interrupt time.
  19. ****************************************************************************/
  20. #ifndef ISRG_H
  21. #define ISRG_H
  22. #ifdef __cplusplus
  23. extern "C" { // Assume C declarations for C++.
  24. #endif // __cplusplus
  25. // Use for Win16
  26. //#define DllExport
  27. //#define DllImport
  28. //#define DLL_EXPORT _export
  29. // Use for Win32
  30. #define DllExport __declspec( dllexport )
  31. #define DllImport __declspec( dllimport )
  32. #define DLL_EXPORT
  33. #if defined(ISRDBG32_C)
  34. #define ISR_DLL DllExport
  35. #else
  36. #define ISR_DLL DllImport
  37. #endif
  38. //
  39. // directions
  40. // Pick a number (mod 100) and create a base for the next
  41. // 100 entries. Do it this way so that your numbers can
  42. // be easily moved. The string assigned to the base you select
  43. // will be displayed as the filter string in a list box when
  44. // viewing. After defining your constants go to isrdsp.rc
  45. // and assign strings to them. You will need to build the
  46. // isrdsp.exe but not the isrdbg.dll. You only need to
  47. // inlude this h file and import the functions from this
  48. // file into your def file. Happy debugging.
  49. //------------------------------------------------------------------------------
  50. #define kModSNameSize 16
  51. #define kModLNameSize 32
  52. //------------------------------------------------------------------------------
  53. // defines for tISRModule.Flags
  54. #define kCaptureOn 0x01
  55. //------------------------------------------------------------------------------
  56. typedef struct _tISRModule
  57. {
  58. WORD Flags;
  59. BYTE CaptureFilter;
  60. BYTE DisplayFilter;
  61. char zSName[kModSNameSize]; // Short name of user registered debug module
  62. char zLName[kModLNameSize]; // Long name of user registered debug module
  63. } tISRModule, FAR *ptISRModule;
  64. //------------------------------------------------------------------------------
  65. #define kModuleBufSize ((DWORD) (16*1024L))
  66. #define kMaxModules ((UINT) (kModuleBufSize/sizeof(tISRModule)))
  67. //------------------------------------------------------------------------------
  68. typedef struct _tISRItem
  69. {
  70. WORD hISRInst; // Our handle to registered modules
  71. BYTE DbgLevel; // Caller determined debug level
  72. BYTE Flags;
  73. UINT IP; // Callers Instruction Ptr address
  74. DWORD_PTR Param1;
  75. DWORD Param2;
  76. } tISRItem, FAR *ptISRItem;
  77. //------------------------------------------------------------------------------
  78. #define kISRBufSize ((DWORD) (128*1024L))
  79. #define kMaxISRItems ((UINT) (kISRBufSize/sizeof(tISRItem)))
  80. #define kMaxStrTab ((UINT) (256*1024L))
  81. //------------------------------------------------------------------------------
  82. // defines for tISRItem.Flags
  83. #define kParam1IsStr 0x01
  84. #define kParam1IsRes 0x02
  85. #define kParam1IsNum 0x04 // Use only if passed two numbers.
  86. //------------------------------------------------------------------------------
  87. // Supported DbgMsg state values.
  88. //------------------------------------------------------------------------------
  89. #define ISR_DBG 0
  90. #define ISR_ERR 1
  91. #define kISRCritical 0x01 // Progammer errors that should never happen
  92. #define kISRError 0x02 // Errors that need to be fixed
  93. #define kISRWarning 0x04 // The user could have problems if not corrected
  94. #define kISRNotify 0x08 // Status, events, settings...
  95. #define kISRTrace 0x10 // Trace info that will not overrun the system
  96. #define kISRTemp 0x20 // Trace info that may be reproduced in heavy loops
  97. #define kISRReserved1 0x40 // Future use
  98. #define kISRReserved2 0x80 // Future use
  99. #define kISRDefault kISRReserved2 // Historical use only
  100. #define TT_CRITICAL kISRCritical
  101. #define TT_ERROR kISRError
  102. #define TT_WARNING kISRWarning
  103. #define TT_NOTIFY kISRNotify
  104. #define TT_TRACE kISRTrace
  105. #define TT_TEMP kISRTemp
  106. //------------------------------------------------------------------------------
  107. // exports from isrdbg.dll
  108. // Include these in your def file if you want to output at interrupt time.
  109. // The ISR_Hook*() functions are the same as their counterparts. The only
  110. // difference is that these functions need the Instruction Pointer passed
  111. // in. If you are using an intermediate library to encapsulate the debug
  112. // functions then you must be responsible for pulling the IP off the stack.
  113. // Register the module and get a handle for making debug calls. If a debug
  114. // call is made with an invalid handle then the results are not defined.
  115. // It is possible to drop the debug event or to place the event into the
  116. // compatibility module. If no more module handles are available then
  117. // the handle returned will be the compatibility handle.
  118. ISR_DLL void WINAPI DLL_EXPORT
  119. ISR_RegisterModule (LPWORD phISRInst, LPSTR zShortName, LPSTR zLongName);
  120. // Allow two strings to be concatenated togeter.
  121. ISR_DLL void WINAPI DLL_EXPORT
  122. ISR_HookDbgStrStr (UINT IP, WORD hISRInst, BYTE DbgLevel, LPSTR pzStr1, LPSTR pzStr2);
  123. // Use a resource to format a number.
  124. ISR_DLL void WINAPI DLL_EXPORT
  125. ISR_HookDbgRes (UINT IP, WORD hISRInst, BYTE DbgLevel, UINT uResId, DWORD Param1);
  126. // Use a str to format a number.
  127. ISR_DLL void WINAPI DLL_EXPORT
  128. ISR_HookDbgStr (UINT IP, WORD hISRInst, BYTE DbgLevel, LPSTR pzStr1, DWORD Param1);
  129. // Allow two strings to be concatenated togeter.
  130. ISR_DLL void WINAPI DLL_EXPORT
  131. ISR_DbgStrStr (WORD hISRInst, BYTE DbgLevel, LPSTR pzStr1, LPSTR pzStr2);
  132. // Use a resource to format a number.
  133. ISR_DLL void WINAPI DLL_EXPORT
  134. ISR_DbgRes (WORD hISRInst, BYTE DbgLevel, UINT uResId, DWORD Param1);
  135. // Use a str to format a number.
  136. ISR_DLL void WINAPI DLL_EXPORT
  137. ISR_DbgStr (WORD hISRInst, BYTE DbgLevel, LPSTR pzStr1, DWORD Param1);
  138. // WARNING: Call at task time only. Not reentrant.
  139. ISR_DLL void FAR cdecl DLL_EXPORT
  140. TTDbgMsg
  141. (
  142. WORD hISRInst, // Module's ISRDBG handle.
  143. BYTE DbgLevel, // Appropriate ISRDBG level.
  144. LPCSTR zMsgFmt, // Output format string (like printf).
  145. ... // Optional parameter list.
  146. );
  147. // Old functions for compatibility only.
  148. ISR_DLL void WINAPI DLL_EXPORT
  149. ISR_OutputDbgStr (LPSTR pzStr);
  150. ISR_DLL void WINAPI DLL_EXPORT
  151. ISR_OutputStr (UINT uResId);
  152. ISR_DLL void WINAPI DLL_EXPORT
  153. ISR_OutputNum (UINT uResId, DWORD Num);
  154. // WARNING: Call at task time only. Not reentrant.
  155. ISR_DLL void FAR cdecl DLL_EXPORT
  156. DbgMsg
  157. (
  158. LPCSTR module,
  159. int state,
  160. LPCSTR format_str,
  161. ...
  162. );
  163. //------------------------------------------------------------------------------
  164. // exports from isrdbg.dll
  165. // Include these in your def file if you need to know the state of isrdbg.dll.
  166. // isrdsp.exe needs to do this to display the data at task time.
  167. ISR_DLL void WINAPI DLL_EXPORT
  168. ISR_ClearItems (void);
  169. ISR_DLL UINT WINAPI DLL_EXPORT
  170. ISR_GetNumItems (void);
  171. ISR_DLL UINT WINAPI DLL_EXPORT
  172. ISR_GetNumModules (void);
  173. ISR_DLL ptISRItem WINAPI DLL_EXPORT
  174. ISR_GetItem (UINT uItem,ptISRItem pItem);
  175. ISR_DLL ptISRModule WINAPI DLL_EXPORT
  176. ISR_GetModule (UINT hISRInst);
  177. ISR_DLL int WINAPI DLL_EXPORT
  178. ISR_SetCaptureFilter (WORD hISRInst, BYTE CaptureFilter, BYTE DisplayFilter);
  179. //------------------------------------------------------------------------------
  180. // The caller of ISR debug functions can call these Macros and then the
  181. // retail release will just drop all of the debug statement code.
  182. //------------------------------------------------------------------------------
  183. #if (DEBUG >= 1) || (_DEBUG >= 1)
  184. #define ISRDEBUGINFO 1
  185. extern WORD ghISRInst;
  186. #define ISRREGISTERMODULE(pghISRInst, ShortName, LongName) ISR_RegisterModule(pghISRInst, ShortName, LongName)
  187. #define ISRNOTIFY(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRNotify, Str, Num)
  188. #define ISRCRITICAL(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRCritical, Str, Num)
  189. #define ISRERROR(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRError, Str, Num)
  190. #define ISRWARNING(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRWarning, Str, Num)
  191. #define ISRTRACE(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRTrace, Str, Num)
  192. #define ISRTEMP(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRTemp, Str, Num)
  193. #define ISRRESERVED1(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRReserved1, Str, Num)
  194. #define ISRRESERVED2(ghISRInst, Str, Num) ISR_DbgStr(ghISRInst, kISRReserved2, Str, Num)
  195. #define ISRSNOTIFY(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRNotify, Str, Str2)
  196. #define ISRSCRITICAL(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRCritical, Str, Str2)
  197. #define ISRSERROR(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRError, Str, Str2)
  198. #define ISRSWARNING(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRWarning, Str, Str2)
  199. #define ISRSTRACE(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRTrace, Str, Str2)
  200. #define ISRSTEMP(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRTemp, Str, Str2)
  201. #define ISRSRESERVED1(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRReserved1, Str, Str2)
  202. #define ISRSRESERVED2(ghISRInst, Str, Str2) ISR_DbgStrStr(ghISRInst, kISRReserved2, Str, Str2)
  203. #define TTDBG TTDbgMsg
  204. #else
  205. #define ISRNOTIFY(ghISRInst, Str, Num)
  206. #define ISRREGISTERMODULE(pghISRInst, ShortName, LongName)
  207. #define ISRCRITICAL(ghISRInst, Str, Num)
  208. #define ISRERROR(ghISRInst, Str, Num)
  209. #define ISRWARNING(ghISRInst, Str, Num)
  210. #define ISRTRACE(ghISRInst, Str, Num)
  211. #define ISRTEMP(ghISRInst, Str, Num)
  212. #define ISRRESERVED1(ghISRInst, Str, Num)
  213. #define ISRRESERVED2(ghISRInst, Str, Num)
  214. #define ISRSNOTIFY(ghISRInst, Str, Str2)
  215. #define ISRSCRITICAL(ghISRInst, Str, Str2)
  216. #define ISRSERROR(ghISRInst, Str, Str2)
  217. #define ISRSWARNING(ghISRInst, Str, Str2)
  218. #define ISRSTRACE(ghISRInst, Str, Str2)
  219. #define ISRSTEMP(ghISRInst, Str, Str2)
  220. #define ISRSRESERVED1(ghISRInst, Str, Str2)
  221. #define ISRSRESERVED2(ghISRInst, Str, Str2)
  222. #define ghISRInst 0
  223. #define TTDBG 1 ? (void)0 : TTDbgMsg
  224. #endif
  225. //------------------------------------------------------------------------------
  226. // Local Functions
  227. // Local function but thunk needs to get to it
  228. ISR_DLL void WINAPI
  229. OutputRec
  230. (
  231. WORD hISRInst, // Our handle to registered modules
  232. BYTE DbgLevel, // Caller determined debug level
  233. BYTE Flags,
  234. UINT IP, // Callers Instruction Ptr address
  235. DWORD Param1,
  236. DWORD Param2
  237. );
  238. // Local function but thunk needs to get to it
  239. ISR_DLL void WINAPI
  240. OutputRecStr
  241. (
  242. WORD hISRInst, // Our handle to registered modules
  243. BYTE DbgLevel, // Caller determined debug level
  244. BYTE Flags,
  245. UINT IP, // Callers Instruction Ptr address
  246. LPSTR pzStr1,
  247. LPSTR pzStr2,
  248. DWORD Param1
  249. );
  250. //------------------------------------------------------------------------------
  251. // do not use a base of 0. Reserved for system use.
  252. #define ID_SysBase 0
  253. #define ID_SysStr (ID_SysBase + 1)
  254. #define ID_SysSInt (ID_SysBase + 2)
  255. #define ID_SysUInt (ID_SysBase + 3)
  256. #define ID_SysDWord (ID_SysBase + 4)
  257. #define ID_SysLong (ID_SysBase + 5)
  258. #define ID_SysHex (ID_SysBase + 6)
  259. //------------------------------------------------------------------------------
  260. // IsrDbg.dll
  261. #define ID_IsrDbgBase 100
  262. #define ID_IsrDbgLibMain (ID_IsrDbgBase + 1)
  263. #define ID_IsrDbgWep (ID_IsrDbgBase + 2)
  264. #define ID_IsrDbgReentrant (ID_IsrDbgBase + 3)
  265. //------------------------------------------------------------------------------
  266. // IsrDsp.exe
  267. #define ID_IsrDspBase 200
  268. #define ID_IsrDspInit (ID_IsrDspBase + 1)
  269. #define ID_IsrDspExit (ID_IsrDspBase + 2)
  270. //------------------------------------------------------------------------------
  271. // stMem.dll
  272. #define ID_stMemBase 300
  273. #define ID_stMemLibMain (ID_stMemBase + 1)
  274. #define ID_stMemWep (ID_stMemBase + 2)
  275. #define ID_stMemPreAlloc (ID_stMemBase + 3)
  276. #define ID_stMemPageLock (ID_stMemBase + 4)
  277. #define ID_stMemNoPageLock (ID_stMemBase + 5)
  278. #define ID_stMemAlloc (ID_stMemBase + 6)
  279. #define ID_stMemTotMem (ID_stMemBase + 7)
  280. #define ID_stMemstFree (ID_stMemBase + 8)
  281. //-------------------------------------------------------------------------------
  282. // DLM.dll
  283. // Errors
  284. #define ID_DLMErrorBase 400
  285. #define ID_DLMEnqError (ID_DLMErrorBase + 1)
  286. #define ID_DLMDeqError (ID_DLMErrorBase + 2)
  287. #define ID_DLMFreeError (ID_DLMErrorBase + 3)
  288. #define ID_DLMChanError (ID_DLMErrorBase + 4)
  289. #define ID_DLMChanNIUErr (ID_DLMErrorBase + 5)
  290. #define ID_DLMChanNumErr (ID_DLMErrorBase + 6)
  291. #define ID_DLMInConnErr (ID_DLMErrorBase + 7)
  292. #define ID_DLMInSessErr (ID_DLMErrorBase + 8)
  293. #define ID_DLMSessNIU (ID_DLMErrorBase + 9)
  294. #define ID_DLMSessNO (ID_DLMErrorBase + 10)
  295. #define ID_DLMConnNIU (ID_DLMErrorBase + 11)
  296. #define ID_DLMConnNO (ID_DLMErrorBase + 12)
  297. #define ID_DLMIDErr (ID_DLMErrorBase + 13)
  298. #define ID_DLMConnErr (ID_DLMErrorBase + 14)
  299. #define ID_DLMSessErr (ID_DLMErrorBase + 15)
  300. #define ID_DLMSessNF (ID_DLMErrorBase + 16)
  301. #define ID_DLMNoFreeConn (ID_DLMErrorBase + 17)
  302. #define ID_DLMConnCloseErr (ID_DLMErrorBase + 18)
  303. #define ID_DLMConnNF (ID_DLMErrorBase + 19)
  304. #define ID_DLMConnNC (ID_DLMErrorBase + 20)
  305. #define ID_DLMMDMError (ID_DLMErrorBase + 21)
  306. #define ID_DLMNoSess (ID_DLMErrorBase + 22)
  307. #define ID_DLMInvalidSess (ID_DLMErrorBase + 23)
  308. #define ID_DLMEventErr (ID_DLMErrorBase + 24)
  309. #define ID_DLMNoConn (ID_DLMErrorBase + 25)
  310. #define ID_DLMChanCloseErr (ID_DLMErrorBase + 26)
  311. #define ID_DLMInvalidConn (ID_DLMErrorBase + 27)
  312. #define ID_DLMCorruptQueue (ID_DLMErrorBase + 28)
  313. #define ID_DLMInvChanID (ID_DLMErrorBase + 29)
  314. #define ID_DLMChanInUse (ID_DLMErrorBase + 30)
  315. #define ID_DLMInvalidChan (ID_DLMErrorBase + 31)
  316. #define ID_DLMNoBufHdr (ID_DLMErrorBase + 32)
  317. #define ID_DLMEnqueueErr (ID_DLMErrorBase + 33)
  318. #define ID_DLMNMBufInProg (ID_DLMErrorBase + 34)
  319. #define ID_DLMNoBuffer (ID_DLMErrorBase + 35)
  320. #define ID_DLMEnterDumping (ID_DLMErrorBase + 36)
  321. #define ID_DLMSizeError (ID_DLMErrorBase + 37)
  322. #define ID_DLMNoBuf (ID_DLMErrorBase + 38)
  323. #define ID_DLMInitAlready (ID_DLMErrorBase + 39)
  324. #define ID_DLMGDLError (ID_DLMErrorBase + 40)
  325. #define ID_DLMNoEntryPoint (ID_DLMErrorBase + 41)
  326. #define ID_DLMNoEvent (ID_DLMErrorBase + 42)
  327. #define ID_DLMNoPackets (ID_DLMErrorBase + 43)
  328. // Debug level 1 messages
  329. #define ID_DLMDebug1Base 500
  330. #define ID_DLMCloseAllEntered (ID_DLMDebug1Base + 1)
  331. #define ID_DLMEstabHEntered (ID_DLMDebug1Base + 2)
  332. #define ID_DLMEstabHExit (ID_DLMDebug1Base + 3)
  333. #define ID_DLMReqHEntered (ID_DLMDebug1Base + 4)
  334. #define ID_DLMReqHAlloc (ID_DLMDebug1Base + 5)
  335. #define ID_DLMReqHExit (ID_DLMDebug1Base + 6)
  336. #define ID_DLMRejHEntered (ID_DLMDebug1Base + 7)
  337. #define ID_DLMRejHExit (ID_DLMDebug1Base + 8)
  338. #define ID_DLMCNoteHEntered (ID_DLMDebug1Base + 9)
  339. #define ID_DLMCNoteHExit (ID_DLMDebug1Base + 10)
  340. #define ID_DLMCComHEntered (ID_DLMDebug1Base + 11)
  341. #define ID_DLMCComHExit (ID_DLMDebug1Base + 12)
  342. #define ID_DLMSessCloseHEntered (ID_DLMDebug1Base + 13)
  343. #define ID_DLMSessCloseHExit (ID_DLMDebug1Base + 14)
  344. #define ID_DLMSessHEntered (ID_DLMDebug1Base + 15)
  345. #define ID_DLMSessHExit (ID_DLMDebug1Base + 16)
  346. #define ID_DLMBegSessEntered (ID_DLMDebug1Base + 17)
  347. #define ID_DLMBegSessExit (ID_DLMDebug1Base + 18)
  348. #define ID_DLMEndSessEntered (ID_DLMDebug1Base + 19)
  349. #define ID_DLMEndSessExit (ID_DLMDebug1Base + 20)
  350. #define ID_DLMListenEntered (ID_DLMDebug1Base + 21)
  351. #define ID_DLMListenExit (ID_DLMDebug1Base + 22)
  352. #define ID_DLMDoCloseEntered (ID_DLMDebug1Base + 23)
  353. #define ID_DLMDoCloseExit (ID_DLMDebug1Base + 24)
  354. #define ID_DLMMakeConnEntered (ID_DLMDebug1Base + 25)
  355. #define ID_DLMMakeConnExit (ID_DLMDebug1Base + 26)
  356. #define ID_DLMRejEntered (ID_DLMDebug1Base + 27)
  357. #define ID_DLMRejExit (ID_DLMDebug1Base + 28)
  358. #define ID_DLMAccEntered (ID_DLMDebug1Base + 29)
  359. #define ID_DLMAccExit (ID_DLMDebug1Base + 30)
  360. #define ID_DLMCloseConnEntered (ID_DLMDebug1Base + 31)
  361. #define ID_DLMCloseConnExit (ID_DLMDebug1Base + 32)
  362. #define ID_DLMTryEntered (ID_DLMDebug1Base + 33)
  363. #define ID_DLMTryExit (ID_DLMDebug1Base + 34)
  364. #define ID_DLMOpenEntered (ID_DLMDebug1Base + 35)
  365. #define ID_DLMOpenExit (ID_DLMDebug1Base + 36)
  366. #define ID_DLMSendEntered (ID_DLMDebug1Base + 37)
  367. #define ID_DLMSendExit (ID_DLMDebug1Base + 38)
  368. #define ID_DLMSendComEntered (ID_DLMDebug1Base + 39)
  369. #define ID_DLMSendComExit (ID_DLMDebug1Base + 40)
  370. #define ID_DLMPostEntered (ID_DLMDebug1Base + 41)
  371. #define ID_DLMPostExit (ID_DLMDebug1Base + 42)
  372. #define ID_DLMNewMsgEntered (ID_DLMDebug1Base + 43)
  373. #define ID_DLMNewMsgExit (ID_DLMDebug1Base + 44)
  374. #define ID_DLMContMsgEntered (ID_DLMDebug1Base + 45)
  375. #define ID_DLMContMsgExit (ID_DLMDebug1Base + 46)
  376. #define ID_DLMRecEntered (ID_DLMDebug1Base + 47)
  377. #define ID_DLMRecExit (ID_DLMDebug1Base + 48)
  378. #define ID_DLMCloseEntered (ID_DLMDebug1Base + 49)
  379. #define ID_DLMCloseExit (ID_DLMDebug1Base + 50)
  380. #define ID_DLMGetCharEntered (ID_DLMDebug1Base + 51)
  381. #define ID_DLMGetCharExit (ID_DLMDebug1Base + 52)
  382. #define ID_DLMInitEntered (ID_DLMDebug1Base + 53)
  383. #define ID_DLMInitExit (ID_DLMDebug1Base + 54)
  384. #define ID_DLMDeInitEntered (ID_DLMDebug1Base + 55)
  385. #define ID_DLMDeInitExit (ID_DLMDebug1Base + 56)
  386. #define ID_DLMCloseAllExit (ID_DLMDebug1Base + 57)
  387. #define ID_DLMEnqEntered (ID_DLMDebug1Base + 58)
  388. #define ID_DLMEnqExit (ID_DLMDebug1Base + 59)
  389. #define ID_DLMDeqEntered (ID_DLMDebug1Base + 60)
  390. #define ID_DLMDeqExit (ID_DLMDebug1Base + 61)
  391. #define ID_DLMEnqPEntered (ID_DLMDebug1Base + 62)
  392. #define ID_DLMEnqPExit (ID_DLMDebug1Base + 63)
  393. // Debug level 2 messages
  394. #define ID_DLMDebug2Base 600
  395. #define ID_DLMCallback (ID_DLMDebug2Base + 1)
  396. #define ID_DLMConnection (ID_DLMDebug2Base + 2)
  397. #define ID_DLMBuffer (ID_DLMDebug2Base + 3)
  398. #define ID_DLMSize (ID_DLMDebug2Base + 4)
  399. #define ID_DLMRemaining (ID_DLMDebug2Base + 5)
  400. #define ID_DLMReceived (ID_DLMDebug2Base + 6)
  401. #define ID_DLMToken (ID_DLMDebug2Base + 7)
  402. #define ID_DLMOChannel (ID_DLMDebug2Base + 8)
  403. #define ID_DLMRChannel (ID_DLMDebug2Base + 9)
  404. #define ID_DLMStatus (ID_DLMDebug2Base + 10)
  405. #define ID_DLMEndSessClosing (ID_DLMDebug2Base + 11)
  406. #define ID_DLMBufferSize (ID_DLMDebug2Base + 12)
  407. #define ID_DLMLinkPacket (ID_DLMDebug2Base + 13)
  408. #define ID_DLMChannel (ID_DLMDebug2Base + 14)
  409. #define ID_DLMInDumping (ID_DLMDebug2Base + 15)
  410. #define ID_DLMByteCount (ID_DLMDebug2Base + 16)
  411. #define ID_DLMDeqNoBuf (ID_DLMDebug2Base + 17)
  412. #define ID_DLMEnqPSkip (ID_DLMDebug2Base + 18)
  413. //------------------------------------------------------------------------------
  414. // MDM -> mdmnbios.dll
  415. #define ID_mdmBase 700
  416. #define ID_mdmLibMain (ID_mdmBase + 1)
  417. #define ID_mdmWep (ID_mdmBase + 2)
  418. #define ID_mdmBadhSesUser (ID_mdmBase + 3)
  419. #define ID_mdmBadhConUser (ID_mdmBase + 4)
  420. #define ID_mdmBadhSesFree (ID_mdmBase + 5)
  421. #define ID_mdmBadhConFree (ID_mdmBase + 6)
  422. #define ID_mdmBadhSesInt (ID_mdmBase + 7)
  423. #define ID_mdmBadhConInt (ID_mdmBase + 8)
  424. #define ID_mdmNoMorehSes (ID_mdmBase + 9)
  425. #define ID_mdmNoMorehCon (ID_mdmBase + 10)
  426. #define ID_mdmWepConFree (ID_mdmBase + 11)
  427. #define ID_mdmActiveCon (ID_mdmBase + 12)
  428. #define ID_mdmBBegSes (ID_mdmBase + 13)
  429. #define ID_mdmEBegSes (ID_mdmBase + 14)
  430. #define ID_mdmBEndSes (ID_mdmBase + 15)
  431. #define ID_mdmEEndSes (ID_mdmBase + 16)
  432. #define ID_mdmBListen (ID_mdmBase + 17)
  433. #define ID_mdmEListen (ID_mdmBase + 18)
  434. #define ID_mdmBMakeCon (ID_mdmBase + 19)
  435. #define ID_mdmEMakeCon (ID_mdmBase + 20)
  436. #define ID_mdmBAcceptCon (ID_mdmBase + 21)
  437. #define ID_mdmEAcceptCon (ID_mdmBase + 22)
  438. #define ID_mdmBRejectCon (ID_mdmBase + 23)
  439. #define ID_mdmERejectCon (ID_mdmBase + 24)
  440. #define ID_mdmBCloseCon (ID_mdmBase + 25)
  441. #define ID_mdmECloseCon (ID_mdmBase + 26)
  442. #define ID_mdmErrNetBios (ID_mdmBase + 27)
  443. #define ID_mdmNoSendNcb (ID_mdmBase + 28)
  444. #define ID_mdmNoFreeSndNcbSlot (ID_mdmBase + 29)
  445. #define ID_mdmInvalidConState (ID_mdmBase + 30)
  446. #define ID_mdmInvalidParams (ID_mdmBase + 31)
  447. #define ID_mdmToManyListens (ID_mdmBase + 32)
  448. #define ID_mdmKillTheListen (ID_mdmBase + 33)
  449. #define ID_mdmBListenCB (ID_mdmBase + 34)
  450. #define ID_mdmEListenCB (ID_mdmBase + 35)
  451. #define ID_mdmBConnectCB (ID_mdmBase + 36)
  452. #define ID_mdmEConnectCB (ID_mdmBase + 37)
  453. #define ID_mdmBCloseCB (ID_mdmBase + 38)
  454. #define ID_mdmECloseCB (ID_mdmBase + 39)
  455. #define ID_mdmBSndCB (ID_mdmBase + 40)
  456. #define ID_mdmESndCB (ID_mdmBase + 41)
  457. #define ID_mdmBRcvCB (ID_mdmBase + 42)
  458. #define ID_mdmERcvCB (ID_mdmBase + 43)
  459. //---------------------------------------------------------------------------------
  460. // MDM -> MDM Teleos
  461. // Errors
  462. #define ID_MDMTEBASE 1000
  463. #define ID_MDMTEDeqUnackNoHead (ID_MDMTEBASE + 1)
  464. #define ID_MDMTEDeqUnackNoNext (ID_MDMTEBASE + 2)
  465. #define ID_MDMTEDeqUnackNoPrev (ID_MDMTEBASE + 3)
  466. #define ID_MDMTEDeqArrNoTail (ID_MDMTEBASE + 4)
  467. #define ID_MDMTENullTCB (ID_MDMTEBASE + 5)
  468. #define ID_MDMTETCBRet (ID_MDMTEBASE + 6)
  469. #define ID_MDMTEWinSize (ID_MDMTEBASE + 7)
  470. #define ID_MDMTENoLinkPacket (ID_MDMTEBASE + 8)
  471. #define ID_MDMTETooLarge (ID_MDMTEBASE + 9)
  472. #define ID_MDMTELPNotFound (ID_MDMTEBASE + 10)
  473. #define ID_MDMTENoTCB (ID_MDMTEBASE + 11)
  474. #define ID_MDMTEInitAlready (ID_MDMTEBASE + 12)
  475. #define ID_MDMTETCBInitFail (ID_MDMTEBASE + 13)
  476. #define ID_MDMTELSNErr (ID_MDMTEBASE + 14)
  477. #define ID_MDMTESizeError (ID_MDMTEBASE + 15)
  478. #define ID_MDMTEReceived (ID_MDMTEBASE + 16)
  479. #define ID_MDMTEExpected (ID_MDMTEBASE + 17)
  480. #define ID_MDMTECorruptQ (ID_MDMTEBASE + 18)
  481. #define ID_MDMTENoInit (ID_MDMTEBASE + 19)
  482. #define ID_MDMTEAbanPack (ID_MDMTEBASE + 20)
  483. #define ID_MDMTESeqNum (ID_MDMTEBASE + 21)
  484. #define ID_MDMTESipPend (ID_MDMTEBASE + 22)
  485. #define ID_MDMTENoConn (ID_MDMTEBASE + 23)
  486. #define ID_MDMTEInvalidID (ID_MDMTEBASE + 24)
  487. #define ID_MDMTENoSess (ID_MDMTEBASE + 25)
  488. #define ID_MDMTENoLPM (ID_MDMTEBASE + 26)
  489. #define ID_MDMTESessID (ID_MDMTEBASE + 27)
  490. #define ID_MDMTESessNIU (ID_MDMTEBASE + 28)
  491. #define ID_MDMTESize (ID_MDMTEBASE + 29)
  492. #define ID_MDMTEState (ID_MDMTEBASE + 30)
  493. #define ID_MDMTEConnID (ID_MDMTEBASE + 31)
  494. #define ID_MDMTEConnNIU (ID_MDMTEBASE + 32)
  495. #define ID_MDMTETinyPacket (ID_MDMTEBASE + 33)
  496. #define ID_MDMTEPacketOOS (ID_MDMTEBASE + 34)
  497. #define ID_MDMTEECBNotFound (ID_MDMTEBASE + 35)
  498. // Trace Information
  499. #define ID_MDMTTBASE 1100
  500. #define ID_MDMTTB1CEnter (ID_MDMTTBASE + 1)
  501. #define ID_MDMTTB1CExit (ID_MDMTTBASE + 2)
  502. #define ID_MDMTTSB1Enter (ID_MDMTTBASE + 3)
  503. #define ID_MDMTTSB1Exit (ID_MDMTTBASE + 4)
  504. #define ID_MDMTTB2CEnter (ID_MDMTTBASE + 5)
  505. #define ID_MDMTTB2CExit (ID_MDMTTBASE + 6)
  506. #define ID_MDMTTSB2Enter (ID_MDMTTBASE + 7)
  507. #define ID_MDMTTSB2Exit (ID_MDMTTBASE + 8)
  508. #define ID_MDMTTSendEnter (ID_MDMTTBASE + 9)
  509. #define ID_MDMTTSendExit (ID_MDMTTBASE + 10)
  510. #define ID_MDMTTInitEnter (ID_MDMTTBASE + 11)
  511. #define ID_MDMTTInitExit (ID_MDMTTBASE + 12)
  512. #define ID_MDMTTDeInitEnter (ID_MDMTTBASE + 13)
  513. #define ID_MDMTTDeInitExit (ID_MDMTTBASE + 14)
  514. #define ID_MDMTTLB1Enter (ID_MDMTTBASE + 15)
  515. #define ID_MDMTTLB1Exit (ID_MDMTTBASE + 16)
  516. #define ID_MDMTTLB2Enter (ID_MDMTTBASE + 17)
  517. #define ID_MDMTTLB2Exit (ID_MDMTTBASE + 18)
  518. #define ID_MDMTTNBSEnter (ID_MDMTTBASE + 19)
  519. #define ID_MDMTTNBSExit (ID_MDMTTBASE + 20)
  520. #define ID_MDMTTRecEnter (ID_MDMTTBASE + 21)
  521. #define ID_MDMTTRecExit (ID_MDMTTBASE + 22)
  522. #define ID_MDMTTCTSEnter (ID_MDMTTBASE + 23)
  523. #define ID_MDMTTCTSExit (ID_MDMTTBASE + 24)
  524. #define ID_MDMTTGCEnter (ID_MDMTTBASE + 25)
  525. #define ID_MDMTTGCExit (ID_MDMTTBASE + 26)
  526. #define ID_MDMTTBegSessEnter (ID_MDMTTBASE + 27)
  527. #define ID_MDMTTBegSessExit (ID_MDMTTBASE + 28)
  528. #define ID_MDMTTEndSessEnter (ID_MDMTTBASE + 29)
  529. #define ID_MDMTTEndSessExit (ID_MDMTTBASE + 30)
  530. #define ID_MDMTTMakeConEnter (ID_MDMTTBASE + 31)
  531. #define ID_MDMTTMakeConExit (ID_MDMTTBASE + 32)
  532. #define ID_MDMTTCloseConEnter (ID_MDMTTBASE + 33)
  533. #define ID_MDMTTCloseConExit (ID_MDMTTBASE + 34)
  534. #define ID_MDMTTListEnter (ID_MDMTTBASE + 35)
  535. #define ID_MDMTTListExit (ID_MDMTTBASE + 36)
  536. #define ID_MDMTTAccEnter (ID_MDMTTBASE + 37)
  537. #define ID_MDMTTAccExit (ID_MDMTTBASE + 38)
  538. #define ID_MDMTTRejEnter (ID_MDMTTBASE + 39)
  539. #define ID_MDMTTRejExit (ID_MDMTTBASE + 40)
  540. #define ID_MDMTTRecLookEnter (ID_MDMTTBASE + 41)
  541. #define ID_MDMTTRecLookExit (ID_MDMTTBASE + 42)
  542. // Comment Information
  543. #define ID_MDMTCBASE 1200
  544. #define ID_MDMTCSeqNum (ID_MDMTCBASE + 1)
  545. #define ID_MDMTCFound (ID_MDMTCBASE + 2)
  546. #define ID_MDMTCWaiting (ID_MDMTCBASE + 3)
  547. #define ID_MDMTCCTSFail (ID_MDMTCBASE + 4)
  548. #define ID_MDMTCCTSPass (ID_MDMTCBASE + 5)
  549. #define ID_MDMTCCTSize (ID_MDMTCBASE + 6)
  550. #define ID_MDMTCCTSOut (ID_MDMTCBASE + 7)
  551. #define ID_MDMTCTCB (ID_MDMTCBASE + 8)
  552. #define ID_MDMTCECBPMAddr (ID_MDMTCBASE + 9)
  553. #define ID_MDMTCECBRMAddr (ID_MDMTCBASE + 10)
  554. #ifdef __cplusplus
  555. } // End of extern "C" {
  556. #endif // __cplusplus
  557. #endif // h file included already
  558.