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

#ifndef _SHELLP_H_
#define _SHELLP_H_
#include <shldisp.h>
//
// shell private header
//
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#define DECLAREWAITCURSOR HCURSOR hcursor_wait_cursor_save
#define SetWaitCursor() hcursor_wait_cursor_save = SetCursor(LoadCursor(NULL, IDC_WAIT))
#define ResetWaitCursor() SetCursor(hcursor_wait_cursor_save)
#ifdef __cplusplus
}
#endif // __cplusplus
//
// Context menu helper functions
//
STDAPI_(UINT) GetMenuIndexForCanonicalVerb(HMENU hMenu, IContextMenu* pcm, UINT idCmdFirst, LPCWSTR pwszVerb);
STDAPI ContextMenu_GetCommandStringVerb(IContextMenu *pcm, UINT idCmd, LPWSTR pszVerb, int cchVerb);
STDAPI ContextMenu_DeleteCommandByName(IContextMenu *pcm, HMENU hpopup, UINT idFirst, LPCWSTR pszCommand);
//
// Info tip helper functions
//
BOOL GetInfoTipHelpA(IShellFolder* psf, LPCITEMIDLIST pidl, LPSTR pszText, int cchTextMax);
BOOL GetInfoTipHelpW(IShellFolder* psf, LPCITEMIDLIST pidl, LPWSTR pszText, int cchTextMax);
BOOL GetInfoTipHelpExA(IShellFolder* psf, DWORD dwFlags, LPCITEMIDLIST pidl, LPSTR pszText, int cchTextMax);
BOOL GetInfoTipHelpExW(IShellFolder* psf, DWORD dwFlags, LPCITEMIDLIST pidl, LPWSTR pszText, int cchTextMax);
#ifdef UNICODE
#define GetInfoTipHelp GetInfoTipHelpW
#define GetInfoTipHelpEx GetInfoTipHelpExW
#else // UNICODE
#define GetInfoTipHelp GetInfoTipHelpA
#define GetInfoTipHelpEx GetInfoTipHelpExA
#endif // UNICODE
#endif // _SHELLP_H_