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.

61 lines
2.0 KiB

  1. #ifndef _SHUI_H_
  2. #define _SHUI_H_
  3. /* Declaration needed for shdocvw and browseui to work together and
  4. for whatever reason they cannot go into shdocvw.h or browseui.h
  5. */
  6. #include <mshtml.h>
  7. STDAPI SearchForElementInHead
  8. (
  9. IHTMLDocument2* pHTMLDocument, // [in] document to search
  10. LPOLESTR pszAttribName, // [in] attribute to check for
  11. LPOLESTR pszAttrib, // [in] value the attribute must have
  12. REFIID iidDesired, // [in] element interface to return
  13. IUnknown** ppunkDesired // [out] returned interface
  14. );
  15. typedef HRESULT (*PFNSEARCHFORELEMENTINHEAD)(
  16. IHTMLDocument2* pHTMLDocument, // [in] document to search
  17. LPOLESTR pszAttribName, // [in] attribute to check for
  18. LPOLESTR pszAttrib, // [in] value the attribute must have
  19. REFIID iidDesired, // [in] element interface to return
  20. IUnknown** ppunkDesired // [out] returned interface
  21. );
  22. #define SEARCHFORELEMENTINHEAD_ORD 208
  23. typedef struct _internet_shortcut_params
  24. {
  25. LPCITEMIDLIST pidlTarget;
  26. LPCTSTR pszTitle;
  27. // when shdocvw is made unicode - then the use of this struct in browseui
  28. // will have to be changed to reflect that these are TCHAR
  29. LPCTSTR pszDir;
  30. LPTSTR pszOut;
  31. int cchOut;
  32. BOOL bUpdateProperties;
  33. BOOL bUniqueName;
  34. BOOL bUpdateIcon;
  35. IOleCommandTarget *pCommand;
  36. IHTMLDocument2 *pDoc;
  37. } ISHCUT_PARAMS;
  38. STDAPI
  39. CreateShortcutInDirEx(ISHCUT_PARAMS *pIShCutParams);
  40. typedef HRESULT (*PFNDOWNLOADICONFORSHORTCUT)(WCHAR *pwszFileName, WCHAR *pwszShortcutUrl, WCHAR *pwszIconUrl);
  41. #define DOWNLOADICONFORSHORTCUT_ORD 207
  42. STDAPI
  43. DownloadIconForShortcut(
  44. WCHAR *pwszFileName, // [in] Optional, File name of shortcut - full path
  45. WCHAR *pwszShortcutUrl, // [in] Url of Shortcut
  46. IHTMLDocument2* pHTMLDocument // [in] document to search for icon URL
  47. );
  48. #endif