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.

88 lines
2.6 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #pragma once
  5. // Overload operator new & delete globally to go through our heap
  6. void* __cdecl operator new(size_t size);
  7. void __cdecl operator delete(void* pv);
  8. #define STRSAFE_NO_DEPRECATE
  9. #include "..\precomp.h"
  10. #undef IDC_ISSUES
  11. #ifndef STRICT
  12. #define STRICT
  13. #endif
  14. // Modify the following defines if you have to target a platform prior to the ones specified below.
  15. // Refer to MSDN for the latest info on corresponding values for different platforms.
  16. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
  17. #define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
  18. #endif
  19. #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
  20. #define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 2000 or later.
  21. #endif
  22. #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
  23. #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
  24. #endif
  25. #ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
  26. #define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
  27. #endif
  28. #define _ATL_APARTMENT_THREADED
  29. #define _ATL_NO_AUTOMATIC_NAMESPACE
  30. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
  31. // turns off ATL's hiding of some common and often safely ignored warning messages
  32. #define _ATL_ALL_WARNINGS
  33. #include "resource.h"
  34. #include <atlbase.h>
  35. extern CComModule _Module;
  36. #include <atlcom.h>
  37. // Visual Studio Extensibility Interfaces
  38. #include "mso.tlh"
  39. #include "dte.tlh"
  40. #include "vcprojectengine.tlh"
  41. #include "msaddndr.tlh"
  42. class DECLSPEC_UUID("361F419C-04B3-49EC-B4E5-FFD812346A8A") AppVerifierLib;
  43. using namespace ATL;
  44. template<typename T>
  45. inline void SafeRelease(T& obj)
  46. {
  47. if (obj)
  48. {
  49. obj->Release();
  50. obj = NULL;
  51. }
  52. }
  53. //
  54. // Used to help handle sizing in the logviewer window.
  55. //
  56. #define NUM_CHILDREN 7
  57. #define VIEW_EXPORTED_LOG_INDEX 1
  58. #define DELETE_LOG_INDEX 2
  59. #define DELETE_ALL_LOGS_INDEX 3
  60. #define ISSUES_INDEX 4
  61. #define SOLUTIONS_STATIC_INDEX 5
  62. #define ISSUE_DESCRIPTION_INDEX 6
  63. typedef struct _CHILDINFO {
  64. UINT uChildId;
  65. HWND hWnd;
  66. RECT rcParent;
  67. RECT rcChild;
  68. } CHILDINFO, *PCHILDINFO;