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.

86 lines
1.8 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 "stlalgor.h"
  35. #include "stllist.h"
  36. #include "stlmap.h"
  37. #include "stlset.h"
  38. #include "stlvec.h"
  39. using namespace std;
  40. #include "ncmem.h"
  41. #include "ncbase.h"
  42. #include "ncdebug.h"
  43. #include "ncdefine.h"
  44. #include "ncexcept.h"
  45. #include "naming.h"
  46. // This avoids duplicate definitions with Shell PIDL functions
  47. // and MUST BE DEFINED!
  48. #define AVOID_NET_CONFIG_DUPLICATES
  49. #define DONT_WANT_SHELLDEBUG 1
  50. #define NO_SHIDLIST 1
  51. #define USE_SHLWAPI_IDLIST
  52. #include <commctrl.h>
  53. #include <shlobjp.h>
  54. #include <rasuip.h>
  55. #include <rasdlg.h>
  56. #include <comctrlp.h>
  57. #include <shpriv.h>
  58. #include <shlwapi.h>
  59. #include <shlwapip.h>
  60. #include <shlobjp.h>
  61. #include <shlapip.h>
  62. #define LoadIconSize(hInstance, lpszName, dwSize) \
  63. reinterpret_cast<HICON>(LoadImage(hInstance, lpszName, IMAGE_ICON, dwSize, dwSize, LR_DEFAULTCOLOR))
  64. #define LoadIconSmall(hInstance, lpszName) \
  65. LoadIconSize(hInstance, lpszName, 16)
  66. #define LoadIconNormal(hInstance, lpszName) \
  67. LoadIconSize(hInstance, lpszName, 32)
  68. #define LoadIconTile(hInstance, lpszName) \
  69. LoadIconSize(hInstance, lpszName, 48)