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.

136 lines
4.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File:
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: dd-mmm-yy Author Comment
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _DBGDUMP_H
  18. #define _DBGDUMP_H
  19. #include <le2int.h>
  20. #include <olecache.h>
  21. #include <olepres.h>
  22. #include <oaholder.h>
  23. #include <dacache.h>
  24. #include <memstm.h>
  25. #include <dstream.h>
  26. #define DEB_VERBOSE 0x10000000
  27. #define NO_PREFIX 0x00000000
  28. #define DUMPTAB " "
  29. extern const char szDumpErrorMessage[];
  30. extern const char szDumpBadPtr[];
  31. class CEnumSTATDATA;
  32. class CCacheEnumFormatEtc;
  33. class CClipDataObject;
  34. class CClipEnumFormatEtc;
  35. class CDefClassFactory;
  36. class CDefObject;
  37. class CDefLink;
  38. class CEMfObject;
  39. class CMfObject;
  40. class CGenObject;
  41. class CEnumFmt;
  42. class CEnumFmt10;
  43. class CEnumVerb;
  44. // Dump structures which fit on one line and prefix not required
  45. // NOTE: there is no newline character a the end of these char arrays
  46. extern char *DumpADVFFlags(DWORD dwAdvf);
  47. extern char *DumpATOM(ATOM atom);
  48. extern char *DumpCLSID(REFCLSID clsid);
  49. extern char *DumpCLIPFORMAT(CLIPFORMAT clipformat);
  50. extern char *DumpCMutexSem(CMutexSem2 *pCMS);
  51. extern char *DumpDVASPECTFlags(DWORD dwAspect);
  52. extern char *DumpFILETIME(FILETIME *pFT);
  53. extern char *DumpHRESULT(HRESULT hresult);
  54. extern char *DumpMonikerDisplayName(IMoniker *pMoniker);
  55. extern char *DumpWIN32Error(DWORD dwError);
  56. // Dump structures which may be multiple lines - take care of prefixes
  57. // NOTE: the following dumps have newline characters throughout and at the end
  58. //extern char *DumpCACHELIST_ITEM(CACHELIST_ITEM *pCLI, ULONG ulFlag, int nIndentLevel);
  59. //extern char *DumpCCacheEnum(CCacheEnum *pCE, ULONG ulFlag, int nIndentLevel);
  60. //extern char *DumpCCacheEnumFormatEtc(CCacheEnumFormatEtc *pCEFE, ULONG ulFlag, int nIndentLevel);
  61. //extern char *DumpCCacheNode(CCacheNode *pCN, ULONG ulFlag, int nIndentLevel);
  62. extern char *DumpCClipDataObject(CClipDataObject *pCDO, ULONG ulFLag, int nIndentLevel);
  63. extern char *DumpCClipEnumFormatEtc(CClipEnumFormatEtc *pCEFE, ULONG ulFlag, int nIndentLevel);
  64. extern char *DumpCDAHolder(IDataAdviseHolder *pIDAH, ULONG ulFlag, int nIndentLevel);
  65. extern char *DumpCDataAdviseCache(CDataAdviseCache *pDAC, ULONG ulFlag, int nIndentLevel);
  66. extern char *DumpCDefClassFactory(CDefClassFactory *pDCF, ULONG ulFlag, int nIndentLevel);
  67. extern char *DumpCDefLink(CDefLink *pDL, ULONG ulFlag, int nIndentLevel);
  68. extern char *DumpCDefObject(CDefObject *pDO, ULONG ulFlag, int nIndentLevel);
  69. extern char *DumpCEMfObject(CEMfObject *pEMFO, ULONG ulFlag, int nIndentLevel);
  70. extern char *DumpCEnumFmt(CEnumFmt *pEF, ULONG ulFlag, int nIndentLevel);
  71. extern char *DumpCEnumFmt10(CEnumFmt10 *pEF, ULONG ulFlag, int nIndentLevel);
  72. extern char *DumpCEnumSTATDATA(CEnumSTATDATA *pESD, ULONG ulFlag, int nIndentLevel);
  73. extern char *DumpCEnumVerb(CEnumVerb *pEV, ULONG ulFlag, int nIndentLevel);
  74. extern char *DumpCGenObject(CGenObject *pGO, ULONG ulFlag, int nIndentLevel);
  75. extern char *DumpCMapDwordDword(CMapDwordDword *pMDD, ULONG ulFlag, int nIndentLevel);
  76. extern char *DumpCMemBytes(CMemBytes *pMB, ULONG ulFlag, int nIndentLevel);
  77. extern char *DumpCMemStm(CMemStm *pMS, ULONG ulFlag, int nIndentLevel);
  78. extern char *DumpCMfObject(CMfObject *pMFO, ULONG ulFlag, int nIndentLevel);
  79. extern char *DumpCOAHolder(COAHolder *pOAH, ULONG ulFlag, int nIndentLevel);
  80. extern char *DumpCOleCache(COleCache *pOC, ULONG ulFlag, int nIndentLevel);
  81. extern char *DumpCSafeRefCount(CSafeRefCount *pSRC, ULONG ulFlag, int nIndentLevel);
  82. extern char *DumpCThreadCheck(CThreadCheck *pTC, ULONG ulFlag, int nIndentLevel);
  83. extern char *DumpFORMATETC(FORMATETC *pFE, ULONG ulFlag, int nIndentLevel);
  84. extern char *DumpIOlePresObj(IOlePresObj *pIPO, ULONG ulFlag, int nIndentLevel);
  85. extern char *DumpMEMSTM(MEMSTM *pMS, ULONG ulFlag, int nIndentLevel);
  86. extern char *DumpSTATDATA(STATDATA *pSD, ULONG ulFlag, int nIndentLevel);
  87. extern char *DumpSTGMEDIUM(STGMEDIUM *pSM, ULONG ulFlag, int nIndentLevel);
  88. #endif // _DBGDUMP_H
  89.