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.

54 lines
2.2 KiB

  1. #ifndef HSFUTILS_H__
  2. #define HSFUTILS_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. UINT MergePopupMenu(HMENU *phMenu, UINT idResource, UINT uSubOffset, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast);
  7. void _StringFromStatus(LPTSTR lpszBuff, unsigned cbSize, unsigned uStatus, DWORD dwAttributes);
  8. void _CopyCEI(UNALIGNED INTERNET_CACHE_ENTRY_INFO * pdst, LPINTERNET_CACHE_ENTRY_INFO psrc, DWORD dwBuffSize);
  9. LPCTSTR _StripContainerUrlUrl(LPCTSTR pszHistoryUrl);
  10. LPCTSTR _StripHistoryUrlToUrl(LPCTSTR pszHistoryUrl);
  11. LPCTSTR _FindURLFileName(LPCTSTR pszURL);
  12. LPBASEPIDL _IsValid_IDPIDL(LPCITEMIDLIST pidl);
  13. LPHEIPIDL _IsValid_HEIPIDL(LPCITEMIDLIST pidl);
  14. LPCTSTR _GetUrlForPidl(LPCITEMIDLIST pidl);
  15. LPCTSTR _FindURLFileName(LPCTSTR pszURL);
  16. void _GetURLHostFromUrl_NoStrip(LPCTSTR lpszUrl, LPTSTR szHost, DWORD dwHostSize, LPCTSTR pszLocalHost);
  17. void _GetURLHost(LPINTERNET_CACHE_ENTRY_INFO pcei, LPTSTR szHost, DWORD dwHostSize, LPCTSTR pszLocalHost);
  18. #define _GetURLHostFromUrl(lpszUrl, szHost, dwHostSize, pszLocalHost) \
  19. _GetURLHostFromUrl_NoStrip(_StripHistoryUrlToUrl(lpszUrl), szHost, dwHostSize, pszLocalHost)
  20. // Forward declarations IContextMenu of helper functions
  21. void _GenerateEvent(LONG lEventId, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidl, LPCITEMIDLIST pidlNew);
  22. int _LaunchApp(HWND hwnd, LPCTSTR lpszPath);
  23. int _LaunchAppForPidl(HWND hwnd, LPITEMIDLIST pidl);
  24. int _GetCmdID(LPCSTR pszCmd);
  25. HRESULT _CreatePropSheet(HWND hwnd, LPCITEMIDLIST pidl, int iDlg, DLGPROC pfnDlgProc, LPCTSTR pszTitle);
  26. // Forward declarations of IDataObject helper functions
  27. LPCTSTR _FindURLFileName(LPCTSTR pszURL);
  28. BOOL _FilterUserName(LPINTERNET_CACHE_ENTRY_INFO pcei, LPCTSTR pszCachePrefix, LPTSTR pszUserName);
  29. BOOL _FilterPrefix(LPINTERNET_CACHE_ENTRY_INFO pcei, LPCTSTR pszCachePrefix);
  30. LPCTSTR ConditionallyDecodeUTF8(LPCTSTR pszUrl, LPTSTR pszBuf, DWORD cchBuf);
  31. INT_PTR CALLBACK HistoryConfirmDeleteDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  32. void FileTimeToDateTimeStringInternal(UNALIGNED FILETIME * lpft, LPTSTR pszText, int cchText, BOOL fUsePerceivedTime);
  33. void MakeLegalFilenameA(LPSTR pszFilename);
  34. void MakeLegalFilenameW(LPWSTR pszFilename);
  35. #ifdef __cplusplus
  36. };
  37. #endif
  38. #endif