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.

64 lines
2.0 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (C) Microsoft Corporation, 1998 - 1999 All Rights Reserved.
  4. //
  5. // File: SysInfo.h
  6. //
  7. // Description:
  8. // Gathers system information necessary to do redirect to windows update site.
  9. //
  10. //=======================================================================
  11. const TCHAR NT5_REGPATH_MACHTYPE[] = _T("HARDWARE\\DESCRIPTION\\System");
  12. const TCHAR NT5_REGKEY_MACHTYPE[] = _T("Identifier");
  13. const TCHAR REGPATH_WINUPD[] = _T("Software\\Policies\\Microsoft\\Windows Update");
  14. const TCHAR REGPATH_EXPLORER[] = _T("Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer");
  15. const TCHAR REGKEY_WINUPD_DISABLED[] = _T("NoWindowsUpdate");
  16. // Internet Connection Wizard settings
  17. const TCHAR REGPATH_CONNECTION_WIZARD[] =
  18. _T("SOFTWARE\\Microsoft\\INTERNET CONNECTION WIZARD");
  19. const TCHAR REGKEY_CONNECTION_WIZARD[] = _T("Completed");
  20. #define LANGID_LEN 20
  21. const TCHAR MTS_REDIR_URL[] = _T("http://www.microsoft.com/isapi/redir.dll");
  22. const TCHAR WINDOWS_UPDATE_URL[] = _T("http://windowsupdate.microsoft.com");
  23. bool FWinUpdDisabled(void);
  24. void
  25. vAppendRedirArguments(LPTSTR tszURLPrefix, LPTSTR tszURL);
  26. HRESULT HrGetConnectionStatus(bool *pfConnected);
  27. void vGetWindowsDirectory(LPTSTR tszWinDirectory);
  28. const TCHAR WEB_DIR[] = _T("web\\");
  29. /////////////////////////////////////////////////////////////////////////////
  30. // vGetWebDirectory
  31. // Get the path to %windir%\web.
  32. //
  33. // Parameters:
  34. //
  35. // Comments :
  36. /////////////////////////////////////////////////////////////////////////////
  37. inline void vGetWebDirectory(LPTSTR tszWebDirectory)
  38. {
  39. vGetWindowsDirectory(tszWebDirectory);
  40. lstrcat(tszWebDirectory, WEB_DIR);
  41. }
  42. /////////////////////////////////////////////////////////////////////////////
  43. // vLaunchIE
  44. // Launch IE on the given URL.
  45. //
  46. // Parameters:
  47. //
  48. // Comments :
  49. /////////////////////////////////////////////////////////////////////////////
  50. HRESULT vLaunchIE(LPTSTR tszURL);