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.

44 lines
2.7 KiB

  1. #ifndef _BRUTIL_H_
  2. #define _BRUTIL_H_
  3. STDAPI_(BOOL) IsBrowseNewProcess();
  4. STDAPI_(BOOL) IsBrowseNewProcessAndExplorer();
  5. STDAPI IENavigateIEProcess(LPCTSTR pszPath, BOOL fIsInternetShortcut);
  6. STDAPI NavFrameWithFile(LPCTSTR pszPath, IUnknown *punk);
  7. STDAPI GetPathForItem(IShellFolder *psf, LPCITEMIDLIST pidl, LPTSTR pszPath, DWORD *pdwAttrib);
  8. STDAPI EditBox_TranslateAcceleratorST(LPMSG lpmsg);
  9. STDAPI _CLSIDFromExtension(LPCTSTR pszExt, CLSID *pclsid);
  10. STDAPI GetLinkTargetIDList(LPCTSTR pszPath, LPTSTR pszTarget, DWORD cchTarget, LPITEMIDLIST *ppidl);
  11. STDAPI_(void) PathToDisplayNameW(LPCTSTR pszPath, LPTSTR pszDisplayName, UINT cchDisplayName);
  12. STDAPI_(void) PathToDisplayNameA(LPSTR pszPathA, LPSTR pszDisplayNameA, int cchDisplayName);
  13. STDAPI DataObj_GetNameFromFileDescriptor(IDataObject *pdtobj, LPWSTR pszDisplayName, UINT cch);
  14. STDAPI SHPidlFromDataObject2(IDataObject *pdtobj, LPITEMIDLIST * ppidl);
  15. STDAPI SHPidlFromDataObject(IDataObject *pdtobj, LPITEMIDLIST *ppidl, LPWSTR pszDisplayNameW, DWORD cchDisplayName);
  16. STDAPI_(LRESULT) SendShellIEBroadcastMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, UINT uTimeout);
  17. STDAPI IEBindToParentFolder(LPCITEMIDLIST pidl, IShellFolder** ppsfParent, LPCITEMIDLIST *ppidlChild);
  18. STDAPI GetDataObjectForPidl(LPCITEMIDLIST pidl, IDataObject ** ppdtobj);
  19. STDAPI_(BOOL) ILIsFileSysFolder(LPCITEMIDLIST pidl);
  20. STDAPI SHTitleFromPidl(LPCITEMIDLIST pidl, LPTSTR psz, DWORD cch, BOOL fFullPath);
  21. STDAPI_(BOOL) IsBrowserFrameOptionsSet(IN IShellFolder * psf, IN BROWSERFRAMEOPTIONS dwMask);
  22. STDAPI_(BOOL) IsBrowserFrameOptionsPidlSet(IN LPCITEMIDLIST pidl, IN BROWSERFRAMEOPTIONS dwMask);
  23. STDAPI GetBrowserFrameOptions(IUnknown *punkFolder, IN BROWSERFRAMEOPTIONS dwMask, OUT BROWSERFRAMEOPTIONS * pdwOptions);
  24. STDAPI GetBrowserFrameOptionsPidl(IN LPCITEMIDLIST pidl, IN BROWSERFRAMEOPTIONS dwMask, OUT BROWSERFRAMEOPTIONS * pdwOptions);
  25. STDAPI_(BOOL) IsFTPFolder(IShellFolder * psf);
  26. // non-munging menu operations to work around the menu munging code
  27. // in the shlwapi wrappers. for more info see the comment in the brutil.cpp.
  28. STDAPI_(HMENU) LoadMenu_PrivateNoMungeW(HINSTANCE hInstance, LPCWSTR lpMenuName);
  29. STDAPI_(BOOL) InsertMenu_PrivateNoMungeW(HMENU hMenu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, LPCWSTR lpNewItem);
  30. STDAPI_(HMENU) LoadMenuPopup_PrivateNoMungeW(UINT id);
  31. //encode any incoming %1 so that people can't spoof our domain security code
  32. HRESULT WrapSpecialUrl(BSTR * pbstrUrl);
  33. HRESULT WrapSpecialUrlFlat(LPWSTR pszUrl, DWORD cchUrl);
  34. BOOL IsSpecialUrl(LPCWSTR pchURL);
  35. void DrawFocusRectangle (HWND hwnd, HDC hdc);
  36. void RenderStringToEditControlW (HWND hwndDlg,LPCWSTR pwsz,WNDPROC wndproc, UINT uID);
  37. #endif // _BRUTIL_H_