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.

88 lines
1.2 KiB

  1. #ifndef __APPVERIFIER_PRECOMP_H__
  2. #define __APPVERIFIER_PRECOMP_H__
  3. #include <nt.h>
  4. #include <ntrtl.h>
  5. #include <nturtl.h>
  6. #undef ASSERT
  7. #include "afxwin.h"
  8. #include <shellapi.h>
  9. #include <commdlg.h>
  10. #include <commctrl.h>
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #include <tchar.h>
  15. #pragma warning(disable:4786)
  16. #include <string>
  17. #include <xstring>
  18. #include <algorithm>
  19. #include <vector>
  20. using namespace std;
  21. #include "ids.h"
  22. extern "C" {
  23. #include "shimdb.h"
  24. }
  25. #include "avutil.h"
  26. #include "dbsupport.h"
  27. #include "debugger.h"
  28. VOID
  29. DebugPrintf(
  30. LPCSTR pszFmt,
  31. ...
  32. );
  33. #if DBG
  34. #define DPF DebugPrintf
  35. #else
  36. #define DPF if (0) DebugPrintf
  37. #endif
  38. ///////////////////////////////////////////////////////////////////////////
  39. //
  40. // ARRAY_LENGTH macro
  41. //
  42. #ifndef ARRAY_LENGTH
  43. #define ARRAY_LENGTH( array ) ( sizeof( array ) / sizeof( array[ 0 ] ) )
  44. #endif //#ifndef ARRAY_LENGTH
  45. //
  46. // Application name ("Application Verifier Manager")
  47. //
  48. extern wstring g_strAppName;
  49. extern HINSTANCE g_hInstance;
  50. extern BOOL g_bConsoleMode;
  51. BOOL
  52. InitVerifierLogSupport(
  53. LPWSTR szAppName,
  54. DWORD dwID
  55. );
  56. void
  57. VLog(
  58. LPCSTR pszFmt,
  59. ...
  60. );
  61. #endif // __APPVERIFIER_PRECOMP_H__