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.

50 lines
1.4 KiB

  1. #ifndef _SHELLP_H_
  2. #define _SHELLP_H_
  3. #include <shldisp.h>
  4. //
  5. // shell private header
  6. //
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif // __cplusplus
  10. #define DECLAREWAITCURSOR HCURSOR hcursor_wait_cursor_save
  11. #define SetWaitCursor() hcursor_wait_cursor_save = SetCursor(LoadCursor(NULL, IDC_WAIT))
  12. #define ResetWaitCursor() SetCursor(hcursor_wait_cursor_save)
  13. #ifdef __cplusplus
  14. }
  15. #endif // __cplusplus
  16. //
  17. // Context menu helper functions
  18. //
  19. STDAPI_(UINT) GetMenuIndexForCanonicalVerb(HMENU hMenu, IContextMenu* pcm, UINT idCmdFirst, LPCWSTR pwszVerb);
  20. STDAPI ContextMenu_GetCommandStringVerb(IContextMenu *pcm, UINT idCmd, LPWSTR pszVerb, int cchVerb);
  21. STDAPI ContextMenu_DeleteCommandByName(IContextMenu *pcm, HMENU hpopup, UINT idFirst, LPCWSTR pszCommand);
  22. //
  23. // Info tip helper functions
  24. //
  25. BOOL GetInfoTipHelpA(IShellFolder* psf, LPCITEMIDLIST pidl, LPSTR pszText, int cchTextMax);
  26. BOOL GetInfoTipHelpW(IShellFolder* psf, LPCITEMIDLIST pidl, LPWSTR pszText, int cchTextMax);
  27. BOOL GetInfoTipHelpExA(IShellFolder* psf, DWORD dwFlags, LPCITEMIDLIST pidl, LPSTR pszText, int cchTextMax);
  28. BOOL GetInfoTipHelpExW(IShellFolder* psf, DWORD dwFlags, LPCITEMIDLIST pidl, LPWSTR pszText, int cchTextMax);
  29. #ifdef UNICODE
  30. #define GetInfoTipHelp GetInfoTipHelpW
  31. #define GetInfoTipHelpEx GetInfoTipHelpExW
  32. #else // UNICODE
  33. #define GetInfoTipHelp GetInfoTipHelpA
  34. #define GetInfoTipHelpEx GetInfoTipHelpExA
  35. #endif // UNICODE
  36. #endif // _SHELLP_H_