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.

66 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. typedef struct tagAddLaterData
  24. {
  25. DWORD dwMasks;
  26. SYSTEMTIME stAssigned; // (in) assigned time
  27. SYSTEMTIME stExpire; // (in) expired time
  28. SYSTEMTIME stSchedule; // (in/out) scheduled time
  29. } ADDLATERDATA, *PADDLATERDATA;
  30. BOOL GetNewInstallTime(HWND hwndParent, PADDLATERDATA pal);
  31. BOOL FormatSystemTimeString(LPSYSTEMTIME pst, LPTSTR pszStr, UINT cchStr);
  32. EXTERN_C BOOL IsTerminalServicesRunning(void);
  33. #define NUMSTARTPAGES 4
  34. // Take an app key name or folder name and separate the number(version) from the name
  35. void InsertSpaceBeforeVersion(LPCTSTR pszIn, LPTSTR pszOut);
  36. // Is this path a valid folder location?
  37. BOOL IsValidAppFolderLocation(LPCTSTR pszFolder);
  38. BOOL PathIsLocalAndFixed(LPCTSTR pszFile);
  39. BOOL IsSlowAppInfoChanged(PSLOWAPPINFO psaiOrig, PSLOWAPPINFO psaiNew);
  40. // Comparison function for systemtimes
  41. int CompareSystemTime(SYSTEMTIME *pst1, SYSTEMTIME *pst2);
  42. void _ARPErrorMessageBox(DWORD dwError);
  43. STDAPI _DuplicateCategoryList(APPCATEGORYINFOLIST * pacl, APPCATEGORYINFOLIST * paclNew);
  44. STDAPI _DestroyCategoryList(APPCATEGORYINFOLIST * pacl);
  45. #endif // _UTIL_H_