ReactOS 0.4.16-dev-847-g386fccd
|
#include <stdarg.h>
#include <assert.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <winuser.h>
#include <wincon.h>
#include <commdlg.h>
#include <ddeml.h>
#include <userenv.h>
#include <shlwapi.h>
#include <wininet.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <ndk/rtlfuncs.h>
#include <fmifs/fmifs.h>
#include <tchar.h>
#include <strsafe.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlwin.h>
#include <atlstr.h>
#include <atlsimpcoll.h>
#include <atlcoll.h>
#include <powrprof.h>
#include <winnetwk.h>
#include <objsafe.h>
#include <regstr.h>
#include <comctl32_undoc.h>
#include <shlguid_undoc.h>
#include <shlobj_undoc.h>
#include <shlwapi_undoc.h>
#include <ishellfolder_helpers.h>
#include <shellapi.h>
#include <undocshell.h>
#include <browseui_undoc.h>
#include <shellutils.h>
#include "shellrecyclebin/recyclebin.h"
#include "wine/pidl.h"
#include "debughlp.h"
#include "wine/shell32_main.h"
#include "shresdef.h"
#include "wine/cpanel.h"
#include "CActiveDesktop.h"
#include "CEnumIDListBase.h"
#include "shfldr.h"
#include "CShellItem.h"
#include "CShellLink.h"
#include "CFolderItemVerbs.h"
#include "CFolderItems.h"
#include "CFolder.h"
#include "CShellDispatch.h"
#include "CDropTargetHelper.h"
#include "CFolderOptions.h"
#include "folders/CFSFolder.h"
#include "folders/CDrivesFolder.h"
#include "folders/CDesktopFolder.h"
#include "folders/CControlPanelFolder.h"
#include "folders/CMyDocsFolder.h"
#include "folders/CNetFolder.h"
#include "folders/CFontsFolder.h"
#include "folders/CPrinterFolder.h"
#include "folders/CAdminToolsFolder.h"
#include "folders/CRecycleBin.h"
#include "droptargets/CexeDropHandler.h"
#include "droptargets/CFSDropTarget.h"
#include "COpenWithMenu.h"
#include "CNewMenu.h"
#include "CSendToMenu.h"
#include "CCopyMoveToMenu.h"
#include "CCopyAsPathMenu.h"
#include "dialogs/filedefext.h"
#include "dialogs/drvdefext.h"
#include "CQueryAssociations.h"
#include "shellmenu/CMenuBand.h"
#include "shellmenu/CMenuDeskBar.h"
#include "shellmenu/CMenuSite.h"
#include "shellmenu/CMergedFolder.h"
#include "shellmenu/shellmenu.h"
#include "CUserNotification.h"
#include "dialogs/folder_options.h"
#include "shelldesktop/CChangeNotifyServer.h"
#include "utils.h"
#include <wine/debug.h>
#include <wine/unicode.h>
Go to the source code of this file.
Classes | |
class | CStubWindow32 |
Macros | |
#define | COBJMACROS |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | COM_NO_WINDOWS_H |
#define | NTOS_MODE_USER |
#define | ShellMessageBoxW ShellMessageBoxWrapW |
#define | VERBKEY_CCHMAX 64 |
#define | MAX_PROPERTY_SHEET_PAGE 32 |
#define | SHELL_ExecuteControlPanelCPL(hwnd, cpl) SHRunControlPanel((cpl), (hwnd)) |
#define | CmicFlagsToSeeFlags(flags) ((flags) & SEE_CMIC_COMMON_FLAGS) |
#define | CSTUBWINDOW32_CLASSNAME _T("StubWindow32") |
Typedefs | |
typedef enum _FILEOPCALLBACKEVENT | FILEOPCALLBACKEVENT |
typedef HRESULT(CALLBACK * | FILEOPCALLBACK) (FILEOPCALLBACKEVENT Event, LPCWSTR Source, LPCWSTR Destination, UINT Attributes, HRESULT hr, void *CallerData) |
Enumerations | |
enum | _FILEOPCALLBACKEVENT { FOCE_STARTOPERATIONS , FOCE_FINISHOPERATIONS , FOCE_PREMOVEITEM , FOCE_POSTMOVEITEM , FOCE_PREDELETEITEM , FOCE_POSTDELETEITEM } |
#define CmicFlagsToSeeFlags | ( | flags | ) | ((flags) & SEE_CMIC_COMMON_FLAGS) |
#define SHELL_ExecuteControlPanelCPL | ( | hwnd, | |
cpl | |||
) | SHRunControlPanel((cpl), (hwnd)) |
#define ShellMessageBoxW ShellMessageBoxWrapW |
typedef HRESULT(CALLBACK * FILEOPCALLBACK) (FILEOPCALLBACKEVENT Event, LPCWSTR Source, LPCWSTR Destination, UINT Attributes, HRESULT hr, void *CallerData) |
Enumerator | |
---|---|
FOCE_STARTOPERATIONS | |
FOCE_FINISHOPERATIONS | |
FOCE_PREMOVEITEM | |
FOCE_POSTMOVEITEM | |
FOCE_PREDELETEITEM | |
FOCE_POSTDELETEITEM |
Definition at line 328 of file precomp.h.
|
inlinestatic |
Definition at line 150 of file precomp.h.
Referenced by CDrvDefExt::AddMainPage(), CShellLink::AddPages(), CFileDefExt::AddPages(), CFolderOptions::AddPages(), and RecycleBin_AddPropSheetPages().
|
inline |
Definition at line 136 of file precomp.h.
Referenced by AddPropSheetHandlerPages().
Definition at line 270 of file utils.cpp.
Referenced by CDesktopFolder::_ParseDisplayNameByParent(), CDesktopFolder::ParseDisplayName(), and CDesktopFolder::ShellUrlParseDisplayName().
Definition at line 278 of file utils.cpp.
Referenced by CDrivesFolder::ParseDisplayName(), CFSFolder::ParseDisplayName(), and CRegFolder::ParseDisplayName().
Definition at line 511 of file utils.cpp.
EXTERN_C HRESULT BindCtx_RegisterObjectParam | ( | _In_ IBindCtx * | pBindCtx, |
_In_ LPOLESTR | pszKey, | ||
_In_opt_ IUnknown * | punk, | ||
_Out_ LPBC * | ppbc | ||
) |
Definition at line 571 of file utils.cpp.
HRESULT DataObject_GetHIDACount | ( | IDataObject * | pdo | ) |
Definition at line 101 of file shldataobject.cpp.
Referenced by SHELL32_ShowFilesystemItemsPropertiesDialogAsync(), SHELL_GetCaptionFromDataObject(), and SHMultiFileProperties().
UINT GetDfmCmd | ( | _In_ IContextMenu * | pCM, |
_In_ LPCSTR | verba | ||
) |
Definition at line 1733 of file utils.cpp.
Referenced by BrFolder_OnContextMenu().
EXTERN_C HRESULT InvokeIExecuteCommand | ( | _In_ IExecuteCommand * | pEC, |
_In_ PCWSTR | pszCommandName, | ||
_In_opt_ IPropertyBag * | pPB, | ||
_In_opt_ IShellItemArray * | pSIA, | ||
_In_opt_ LPCMINVOKECOMMANDINFOEX | pICI, | ||
_In_opt_ IUnknown * | pSite | ||
) |
Definition at line 1664 of file utils.cpp.
Referenced by InvokeIExecuteCommandWithDataObject().
EXTERN_C HRESULT InvokeIExecuteCommandWithDataObject | ( | _In_ IExecuteCommand * | pEC, |
_In_ PCWSTR | pszCommandName, | ||
_In_opt_ IPropertyBag * | pPB, | ||
_In_ IDataObject * | pDO, | ||
_In_opt_ LPCMINVOKECOMMANDINFOEX | pICI, | ||
_In_opt_ IUnknown * | pSite | ||
) |
Definition at line 1705 of file utils.cpp.
Referenced by CDefaultContextMenu::InvokeRegVerb().
EXTERN_C HRESULT IUnknown_InitializeCommand | ( | _In_ IUnknown * | pUnk, |
_In_ PCWSTR | pszCommandName, | ||
_In_opt_ IPropertyBag * | pPB | ||
) |
Definition at line 1651 of file utils.cpp.
Referenced by InvokeIExecuteCommand(), and CDefaultContextMenu::InvokeRegVerb().
Definition at line 77 of file CDefaultContextMenu.cpp.
Referenced by GetDfmCmd().
Definition at line 172 of file utils.cpp.
Referenced by CFSFolder::_CreateIDListFromName().
Definition at line 158 of file utils.cpp.
Referenced by Shell_NextElement().
Definition at line 880 of file view.cpp.
Referenced by GeneralDlg_OnApply(), and ViewDlg_Apply().
|
static |
EXTERN_C HRESULT SHBindToObject | ( | _In_opt_ IShellFolder * | psf, |
_In_ LPCITEMIDLIST | pidl, | ||
_In_ REFIID | riid, | ||
_Out_ void ** | ppvObj | ||
) |
Definition at line 370 of file utils.cpp.
Referenced by _BindToObject(), CDesktopFolder::_ParseDisplayNameByParent(), BrFolder_InitTreeView(), CRegItemContextMenu_CreateInstance(), FileOpCallback(), SHELL_GetIDListTarget(), Shell_ParsePrinterName(), and CDesktopFolder::ShellUrlParseDisplayName().
HRESULT SHBindToObjectEx | ( | _In_opt_ IShellFolder * | pShellFolder, |
_In_ LPCITEMIDLIST | pidl, | ||
_In_opt_ IBindCtx * | pBindCtx, | ||
_In_ REFIID | riid, | ||
_Out_ void ** | ppvObj | ||
) |
Definition at line 337 of file utils.cpp.
Referenced by SHBindToObject().
Definition at line 468 of file utils.cpp.
Referenced by ShellExecuteExW(), and SHGetNameAndFlagsW().
HRESULT SHELL32_DefaultContextMenuCallBack | ( | IShellFolder * | psf, |
IDataObject * | pdo, | ||
UINT | msg | ||
) |
Definition at line 528 of file shlfolder.cpp.
Referenced by CDesktopFolder::CallBack(), CDrivesFolder::CallBack(), CFSFolder::CallBack(), CNetFolderBackgroundMenuCB(), DrivesContextMenuCallback(), NetFolderMenuCallback(), and RegFolderContextMenuCallback().
int SHELL32_FileOperation | ( | LPSHFILEOPSTRUCTW | lpFileOp, |
FILEOPCALLBACK | Callback, | ||
void * | CallerData | ||
) |
Definition at line 2020 of file shlfileop.cpp.
Referenced by CRecycleBinItemContextMenu::InvokeCommand(), and SHFileOperationW().
Definition at line 51 of file COpenWithMenu.cpp.
Referenced by COpenWithList::GetPathFromCmd(), and CFileDefExt::InitOpensWithField().
HRESULT SHELL32_ShowFilesystemItemPropertiesDialogAsync | ( | IDataObject * | pDO | ) |
Definition at line 157 of file item_prop.cpp.
Referenced by DrivesContextMenuCallback(), and SHELL32_ShowFilesystemItemsPropertiesDialogAsync().
HRESULT SHELL32_ShowFilesystemItemsPropertiesDialogAsync | ( | HWND | hOwner, |
IDataObject * | pDO | ||
) |
Definition at line 184 of file item_prop.cpp.
Referenced by SHELL32_ShowPropertiesDialog().
HRESULT SHELL32_ShowPropertiesDialog | ( | IDataObject * | pdtobj | ) |
Definition at line 520 of file shlfolder.cpp.
Referenced by CDefaultContextMenu::DoProperties(), and SHMultiFileProperties().
HRESULT SHELL32_ShowShellExtensionProperties | ( | const CLSID * | pClsid, |
IDataObject * | pDO | ||
) |
Definition at line 196 of file item_prop.cpp.
Referenced by RegFolderContextMenuCallback().
Definition at line 110 of file shldataobject.cpp.
Referenced by DoGetFileTitle(), CCopyMoveToMenu::DoRealFileOp(), and SHELL_DataObject_ILCloneFullItem().
HRESULT SHELL_CloneDataObject | ( | _In_ IDataObject * | pDO, |
_Out_ IDataObject ** | ppDO | ||
) |
Definition at line 125 of file shldataobject.cpp.
Referenced by ShellPropSheetDialog::ShowPropertiesThread().
PIDLIST_ABSOLUTE SHELL_DataObject_ILCloneFullItem | ( | _In_ IDataObject * | pDO, |
_In_ UINT | Index | ||
) |
Definition at line 117 of file shldataobject.cpp.
Referenced by CCopyMoveToMenu::Initialize(), SHELL32_PropertySheet(), and SHELL_GetCaptionFromDataObject().
HRESULT Shell_DisplayNameOf | ( | _In_ IShellFolder * | psf, |
_In_ LPCITEMIDLIST | pidl, | ||
_In_ DWORD | dwFlags, | ||
_Out_ LPWSTR | pszBuf, | ||
_In_ UINT | cchBuf | ||
) |
Definition at line 406 of file utils.cpp.
Referenced by CFSDropTarget::_DoDrop(), and SHGetNameAndFlagsW().
Definition at line 320 of file utils.cpp.
Referenced by CDesktopFolder::ParseDisplayName(), and CDesktopFolder::ShellUrlParseDisplayName().
HRESULT SHELL_GetIDListTarget | ( | _In_ LPCITEMIDLIST | pidl, |
_Out_ PIDLIST_ABSOLUTE * | ppidl | ||
) |
Definition at line 456 of file utils.cpp.
Referenced by SHBrowseForFolderW().
EXTERN_C HRESULT SHELL_GetUIObjectOfAbsoluteItem | ( | _In_opt_ HWND | hWnd, |
_In_ PCIDLIST_ABSOLUTE | pidl, | ||
_In_ REFIID | riid, | ||
_Out_ void ** | ppvObj | ||
) |
Definition at line 380 of file utils.cpp.
Referenced by CShellLink::DragEnter(), CSendToMenu::GetUIObjectFromPidl(), CFolderItemVerbs::Init(), SHELL_PidlGetIconLocationW(), and shellex_get_dataobj().
EXTERN_C INT Shell_ParseSpecialFolder | ( | _In_ LPCWSTR | pszStart, |
_Out_ LPWSTR * | ppch, | ||
_Out_ INT * | pcch | ||
) |
Definition at line 2038 of file shellpath.c.
Referenced by CDesktopFolder::ShellUrlParseDisplayName().
HRESULT SHELL_ShowItemIDListProperties | ( | LPCITEMIDLIST | pidl | ) |
Definition at line 205 of file item_prop.cpp.
Referenced by CFSFolder::CallBack(), and CRecycleBin::InvokeCommand().
HRESULT Shell_TranslateIDListAlias | ( | _In_ LPCITEMIDLIST | pidl, |
_In_ HANDLE | hToken, | ||
_Out_ LPITEMIDLIST * | ppidlAlias, | ||
_In_ DWORD | dwFlags | ||
) |
Definition at line 261 of file utils.cpp.
Referenced by CDesktopFolder::ParseDisplayName().
DWORD SHGetAttributes | ( | _In_ IShellFolder * | psf, |
_In_ LPCITEMIDLIST | pidl, | ||
_In_ DWORD | dwAttributes | ||
) |
Definition at line 422 of file utils.cpp.
Referenced by CFSDropTarget::_DoDrop(), BrFolder_InsertItem(), CRegItemContextMenu_CreateInstance(), and SHGetNameAndFlagsW().
HRESULT SHGetNameAndFlagsW | ( | _In_ LPCITEMIDLIST | pidl, |
_In_ DWORD | dwFlags, | ||
_Out_opt_ LPWSTR | pszText, | ||
_In_ UINT | cchBuf, | ||
_Inout_opt_ DWORD * | pdwAttributes | ||
) |
Definition at line 477 of file utils.cpp.
Referenced by CDrvDefExt::AddMainPage(), DoGetFileTitle(), CShellLink::OnInitDialog(), SHELL_execute(), SHELL_GetCaptionFromDataObject(), and CDesktopFolder::ShellUrlParseDisplayName().
HRESULT SHILAppend | ( | _Inout_ LPITEMIDLIST | pidl, |
_Inout_ LPITEMIDLIST * | ppidl | ||
) |
Definition at line 193 of file utils.cpp.
Referenced by CFSFolder::_ParseSimple(), BrFolder_Treeview_Rename(), and CFSFolder::ParseDisplayName().
HRESULT SHIsFileSysBindCtx | ( | _In_ IBindCtx * | pBindCtx, |
_Out_opt_ WIN32_FIND_DATAW * | pFindData | ||
) |
Definition at line 303 of file utils.cpp.
Referenced by CDesktopFolder::ParseDisplayName(), CDrivesFolder::ParseDisplayName(), and CFSFolder::ParseDisplayName().
EXTERN_C HRESULT WINAPI SHMultiFileProperties | ( | IDataObject * | pDataObject, |
DWORD | dwFlags | ||
) |
Definition at line 92 of file stubs.cpp.
Definition at line 291 of file utils.cpp.
Referenced by CDesktopFolder::_ParseDisplayNameByParent().
Referenced by _ILCreateAdminTools(), CAdminToolsFolder::GetClassID(), HCR_GetClassNameA(), and HCR_GetClassNameW().
Referenced by CFontsFolder::GetClassID().
Referenced by test_FolderShortcut().
Referenced by CShellLink::SetAdvertiseInfo().
Referenced by CShellLink::SetAdvertiseInfo().