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.

70 lines
2.1 KiB

  1. #ifndef _UTIL_H_
  2. #define _UTIL_H_
  3. #include <appmgmt.h>
  4. STDAPI InstallAppFromFloppyOrCDROM(HWND hwnd);
  5. DWORD ARPGetRestricted(LPCWSTR pszPolicy);
  6. void ARPGetPolicyString(LPCWSTR pszPolicy, LPWSTR pszBuf, int cch);
  7. STDAPI ARP(HWND hWnd, int nPage);
  8. STDAPI OpenAppMgr(HWND hwnd, int nPage);
  9. void ClearAppInfoData(APPINFODATA * pdata);
  10. void ClearSlowAppInfo(SLOWAPPINFO * pdata);
  11. void ClearPubAppInfo(PUBAPPINFO * pdata);
  12. void ClearManagedApplication(MANAGEDAPPLICATION * pma);
  13. HRESULT ReleaseShellCategoryList(SHELLAPPCATEGORYLIST * psacl);
  14. HRESULT ReleaseShellCategory(SHELLAPPCATEGORY * psac);
  15. // These values can be set in the FILETIME structure to indicate the
  16. // app has never been used.
  17. #define NOTUSED_HIGHDATETIME 0xFFFFFFFF
  18. #define NOTUSED_LOWDATETIME 0xFFFFFFFF
  19. LPTSTR WINAPI ShortSizeFormat64(__int64 dw64, LPTSTR szBuf);
  20. #define ALD_ASSIGNED 0x00000001
  21. #define ALD_EXPIRE 0x00000002
  22. #define ALD_SCHEDULE 0x00000004
  23. #ifndef DOWNLEVEL_PLATFORM
  24. typedef struct tagAddLaterData
  25. {
  26. DWORD dwMasks;
  27. SYSTEMTIME stAssigned; // (in) assigned time
  28. SYSTEMTIME stExpire; // (in) expired time
  29. SYSTEMTIME stSchedule; // (in/out) scheduled time
  30. } ADDLATERDATA, *PADDLATERDATA;
  31. BOOL GetNewInstallTime(HWND hwndParent, PADDLATERDATA pal);
  32. BOOL FormatSystemTimeString(LPSYSTEMTIME pst, LPTSTR pszStr, UINT cchStr);
  33. #ifdef WINNT
  34. EXTERN_C BOOL IsTerminalServicesRunning(void);
  35. #endif // WINNT
  36. #endif // DOWNLEVEL_PLATFORM
  37. #define NUMSTARTPAGES 4
  38. // Take an app key name or folder name and separate the number(version) from the name
  39. void InsertSpaceBeforeVersion(LPCTSTR pszIn, LPTSTR pszOut);
  40. // Is this path a valid folder location?
  41. BOOL IsValidAppFolderLocation(LPCTSTR pszFolder);
  42. BOOL PathIsLocalAndFixed(LPCTSTR pszFile);
  43. BOOL IsSlowAppInfoChanged(PSLOWAPPINFO psaiOrig, PSLOWAPPINFO psaiNew);
  44. // Comparison function for systemtimes
  45. int CompareSystemTime(SYSTEMTIME *pst1, SYSTEMTIME *pst2);
  46. void _ARPErrorMessageBox(DWORD dwError);
  47. STDAPI _DuplicateCategoryList(APPCATEGORYINFOLIST * pacl, APPCATEGORYINFOLIST * paclNew);
  48. STDAPI _DestroyCategoryList(APPCATEGORYINFOLIST * pacl);
  49. #endif // _UTIL_H_