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.

111 lines
2.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 NOIME
  7. #define NOMCX
  8. #define NOMDI
  9. #define NOMETAFILE
  10. #define NOSOUND
  11. #define NOWH
  12. #define NOWINABLE
  13. #define NOWINRES
  14. #include <nt.h>
  15. #include <ntrtl.h>
  16. #include <nturtl.h>
  17. #include <windows.h>
  18. #include <windowsx.h>
  19. #include <commdlg.h>
  20. #include <cfgmgr32.h>
  21. #include <devguid.h>
  22. #include <infstr.h>
  23. #include <regstr.h>
  24. #include <setupapi.h>
  25. #include <shellapi.h>
  26. #include <shlobj.h> // must come before shlguid.h
  27. #include <shlguid.h>
  28. #include <stdio.h>
  29. #include <wchar.h>
  30. #include <hnetcfg.h>
  31. #include <iphlpapi.h>
  32. // Fusion support
  33. #include "shfusion.h"
  34. #include "ncmem.h"
  35. #include "ncstl.h"
  36. #include "algorithm"
  37. #include "list"
  38. #include "map"
  39. #include "set"
  40. #include "vector"
  41. using namespace std;
  42. #include "ncbase.h"
  43. #include "ncdebug.h"
  44. #include "ncdefine.h"
  45. #include "ncexcept.h"
  46. #include "naming.h"
  47. // This avoids duplicate definitions with Shell PIDL functions
  48. // and MUST BE DEFINED!
  49. #define AVOID_NET_CONFIG_DUPLICATES
  50. #define DONT_WANT_SHELLDEBUG 1
  51. #define NO_SHIDLIST 1
  52. #define USE_SHLWAPI_IDLIST
  53. #include <commctrl.h>
  54. #include <shlobjp.h>
  55. #include <rasuip.h>
  56. #include <rasdlg.h>
  57. #include <comctrlp.h>
  58. #include <shpriv.h>
  59. #include <shlwapi.h>
  60. #include <shlwapip.h>
  61. #include <shlobjp.h>
  62. #include <shlapip.h>
  63. #include "nceh.h"
  64. #define LoadIconSize(hInstance, lpszName, dwSize) \
  65. reinterpret_cast<HICON>(LoadImage(hInstance, lpszName, IMAGE_ICON, dwSize, dwSize, LR_DEFAULTCOLOR))
  66. #define LoadIconSmall(hInstance, lpszName) \
  67. LoadIconSize(hInstance, lpszName, 16)
  68. #define LoadIconNormal(hInstance, lpszName) \
  69. LoadIconSize(hInstance, lpszName, 32)
  70. #define LoadIconTile(hInstance, lpszName) \
  71. LoadIconSize(hInstance, lpszName, 48)
  72. #ifdef ENABLELEAKDETECTION
  73. #include "nsbase.h"
  74. template <class T>
  75. class CComObjectRootExDbg : public CComObjectRootEx<T>,
  76. public CNetCfgDebug<T>
  77. {
  78. public:
  79. void FinalRelease()
  80. {
  81. CComObjectRootEx<T>::FinalRelease();
  82. // ISSUE_knownleak(this);
  83. }
  84. };
  85. #define CComObjectRootEx CComObjectRootExDbg
  86. class CComObjectRootDbg : public CNetCfgDebug<CComObjectRootDbg>,
  87. public CComObjectRoot
  88. {
  89. };
  90. #define CComObjectRoot CComObjectRootDbg
  91. #endif