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.

55 lines
1021 B

  1. #pragma once
  2. #define COM_NO_WINDOWS_H
  3. #define RPC_NO_WINDOWS_H
  4. #define NOCOMM
  5. #define NOCRYPT
  6. #define NOGDI
  7. #define NOHELP
  8. #define NOICONS
  9. #define NOIME
  10. #define NOMCX
  11. #define NOMDI
  12. #define NOMENUS
  13. #define NOMETAFILE
  14. #define NOSOUND
  15. #define NOSYSPARAMSINFO
  16. #define NOWH
  17. #define NOWINABLE
  18. #define NOWINRES
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. #include <windows.h>
  23. #include <objbase.h>
  24. #include <cfgmgr32.h>
  25. #include <devguid.h>
  26. #include <setupapi.h>
  27. #include <stdio.h>
  28. #include <wchar.h>
  29. #include "ncmem.h"
  30. #include "ncbase.h"
  31. #include "ncdebug.h"
  32. #include "ncdefine.h"
  33. #include "ncexcept.h"
  34. #ifdef ENABLELEAKDETECTION
  35. #include "nmbase.h"
  36. template <class T>
  37. class CComObjectRootExDbg : public CComObjectRootEx<T>,
  38. public CNetCfgDebug<T>
  39. {
  40. public:
  41. void FinalRelease()
  42. {
  43. CComObjectRootEx<T>::FinalRelease();
  44. // ISSUE_knownleak(this);
  45. }
  46. };
  47. #define CComObjectRootEx CComObjectRootExDbg
  48. #endif