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.

68 lines
1.3 KiB

  1. #pragma once
  2. #define COM_NO_WINDOWS_H
  3. #define RPC_NO_WINDOWS_H
  4. #define NOCOMM
  5. #define NOCRYPT
  6. #define NOHELP
  7. #define NOICONS
  8. #define NOIME
  9. #define NOMCX
  10. #define NOMDI
  11. #define NOMETAFILE
  12. #define NOSOUND
  13. #define NOSYSPARAMSINFO
  14. #define NOWH
  15. #define NOWINABLE
  16. #define NOWINRES
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #include <windows.h>
  21. #include <objbase.h>
  22. #include <cfgmgr32.h>
  23. #include <devguid.h>
  24. #include <infstr.h>
  25. #include <regstr.h>
  26. #include <setupapi.h>
  27. #include <stdio.h>
  28. #include <wchar.h>
  29. #include <shlwapi.h>
  30. #include <shlwapip.h> // for SHLoadRegUIString
  31. #include "ncmem.h"
  32. #include "algorithm"
  33. #include "list"
  34. #include "vector"
  35. using namespace std;
  36. #include "ncbase.h"
  37. #include "ncdebug.h"
  38. #include "ncdefine.h"
  39. #ifdef ENABLELEAKDETECTION
  40. #include "iatl.h"
  41. template <class T>
  42. class CComObjectRootExDbg : public CComObjectRootEx<T>,
  43. public CNetCfgDebug<T>
  44. {
  45. public:
  46. void FinalRelease()
  47. {
  48. CComObjectRootEx<T>::FinalRelease();
  49. // ISSUE_knownleak(this);
  50. }
  51. };
  52. #define CComObjectRootEx CComObjectRootExDbg
  53. class CComObjectRootDbg : public CNetCfgDebug<CComObjectRootDbg>,
  54. public CComObjectRoot
  55. {
  56. };
  57. #define CComObjectRoot CComObjectRootDbg
  58. #endif