Source code of Windows XP (NT5)
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.

69 lines
2.1 KiB

  1. #define UXCTRL_VERSION 0x0100
  2. #include <w4warn.h>
  3. /*
  4. * Level 4 warnings to be turned on.
  5. * Do not disable any more level 4 warnings.
  6. */
  7. #pragma warning(disable:4189) // local variable is initialized but not referenced
  8. #pragma warning(disable:4245) // conversion from 'const int' to 'UINT', signed/unsign
  9. #pragma warning(disable:4701) // local variable 'pszPic' may be used without having been initiali
  10. #pragma warning(disable:4706) // assignment within conditional expression
  11. #pragma warning(disable:4328) // indirection alignment of formal parameter 1(4) is greater than the actual argument alignment (1)
  12. #define _BROWSEUI_ // See HACKS OF DEATH in sfthost.cpp
  13. #include <shlobj.h>
  14. #include <shlobjp.h>
  15. #include <shguidp.h>
  16. #include <ieguidp.h>
  17. #include <shlwapi.h>
  18. #include <ccstock.h>
  19. #include <port32.h>
  20. #include <debug.h>
  21. #include <varutil.h>
  22. #include <dpa.h>
  23. #include <atlbase.h>
  24. extern CComModule _Module;
  25. #include <atlcom.h>
  26. #include <atlctl.h>
  27. #include <desktop2.h>
  28. #include <shsemip.h>
  29. #include <runonce.h>
  30. #include "regstr.h"
  31. #include <shfusion.h>
  32. #define REGSTR_EXPLORER_ADVANCED REGSTR_PATH_EXPLORER TEXT("\\Advanced")
  33. #include <windowsx.h>
  34. EXTERN_C HWND v_hwndTray;
  35. EXTERN_C HWND v_hwndStartPane;
  36. #define REGSTR_PATH_STARTFAVS TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartPage")
  37. #define REGSTR_VAL_STARTFAVS TEXT("Favorites")
  38. #define REGSTR_VAL_STARTFAVCHANGES TEXT("FavoritesChanges")
  39. #define REGSTR_VAL_PROGLIST TEXT("ProgramsCache")
  40. // DirectUser and DirectUI
  41. #include <wchar.h>
  42. #define GADGET_ENABLE_TRANSITIONS
  43. #define GADGET_ENABLE_CONTROLS
  44. #define GADGET_ENABLE_OLE
  45. #include <duser.h>
  46. #include <directui.h>
  47. // When we want to get a tick count for the starting time of some interval
  48. // and ensure that it is not zero (because we use zero to mean "not started").
  49. // If we actually get zero back, then change it to -1. Don't change it
  50. // to 1, or somebody who does GetTickCount() - dwStart will get a time of
  51. // 49 days.
  52. __inline DWORD NonzeroGetTickCount()
  53. {
  54. DWORD dw = GetTickCount();
  55. return dw ? dw : -1;
  56. }
  57. #include "resource.h"