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.

68 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: S H U T I L . H
  7. //
  8. // Contents: Various shell utilities to be used by the connections folder
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 21 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef _SHUTIL_H_
  17. #define _SHUTIL_H_
  18. HRESULT HrDupeShellStringLength(
  19. PCWSTR pszInput,
  20. ULONG cchInput,
  21. PWSTR * ppszOutput);
  22. inline
  23. HRESULT HrDupeShellString(
  24. PCWSTR pszInput,
  25. PWSTR * ppszOutput)
  26. {
  27. return HrDupeShellStringLength(pszInput, wcslen(pszInput), ppszOutput);
  28. }
  29. VOID ForceRefresh(HWND hwnd);
  30. VOID GenerateEvent(LONG lEventId, const LPCITEMIDLIST pidlFolder,
  31. LPCITEMIDLIST pidlIn, LPCITEMIDLIST pidlNewIn);
  32. //---[ Menu merging functions ]-----------------------------------------------
  33. VOID MergeMenu(
  34. HINSTANCE hinst,
  35. UINT idMainMerge,
  36. UINT idPopupMerge,
  37. LPQCMINFO pqcm);
  38. INT IMergePopupMenus(
  39. HMENU hmMain,
  40. HMENU hmMerge,
  41. int idCmdFirst,
  42. int idCmdLast);
  43. HRESULT HrGetMenuFromID(
  44. HMENU hmenuMain,
  45. UINT uID,
  46. HMENU * phmenu);
  47. HRESULT HrLoadPopupMenu(
  48. HINSTANCE hinst,
  49. UINT id,
  50. HMENU * phmenu);
  51. HRESULT HrShellView_GetSelectedObjects(
  52. HWND hwnd,
  53. LPCITEMIDLIST ** papidlSelection,
  54. UINT * lpcidl);
  55. #endif // _SHUTIL_H_