45 WARN(
"Failed to get progid for extension %S (%x), error %d\n", pExtension, pExtension,
res);
55 WARN(
"Could not open key %S for extension %S\n",
KeyName, pExtension);
64 ERR(
"Invalid pidl!\n");
72 WARN(
"No extension for %S!\n",
name);
83 WARN(
"OpenKeyFromFileType failed for key %S\n",
KeyName);
93 ERR(
"OpenKeyFromFileType succeeded but RegGetValueW failed\n");
100 L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",
108 ERR(
"DropHandler extension %S not approved\n", wszName);
115 L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked",
122 ERR(
"Extension %S not approved\n", wszCLSIDValue);
155 if (
uFlags & GIL_OPENICON)
181 if (
uFlags & GIL_DEFAULTICON)
252 CComPtr<IDefaultExtractIconInit> initIcon;
269 initIcon->SetNormalIcon(wTemp, icon_idx);
273 initIcon->SetShortcutIcon(wTemp, icon_idx);
276 pidl, GIL_DEFAULTICON, wTemp,
_countof(wTemp),
280 initIcon->SetDefaultIcon(wTemp, icon_idx);
290 pidl, GIL_OPENICON, wTemp,
_countof(wTemp),
294 initIcon->SetOpenIcon(wTemp, icon_idx);
303 WARN(
"Could not open DefaultIcon key!\n");
310 icon_idx =
_wtoi(sNum);
332 initIcon->SetNormalIcon(wTemp, icon_idx);
343 return initIcon->QueryInterface(iid, ppvOut);
360#define SUPER_HIDDEN (FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM)
382 if (!
strcmpW(FindData.cFileName,
L".") || !
strcmpW(FindData.cFileName,
L".."))
396 ERR(
"Got CLSID override for '%S'\n", Tmp);
418 TRACE(
"Treating '%S' as directory!\n", FindData.cFileName);
435 if (
dwFlags & SHCONTF_NONFOLDERS)
465 if (!sPathTarget || !sPathTarget[0])
467 WARN(
"No path for CFileSysEnum, empty result!\n");
507 TRACE(
"(%p)->(hr=0x%08x)\n",
this,
hr);
532 TRACE(
"-- destroying IShellFolder(%p)\n",
this);
547#define GENERICSHELLVIEWCOLUMNS _countof(GenericSFHeader)
594 ERR(
"Got wrong type of pidl!\n");
595 *pdwAttributes &= SFGAO_CANLINK;
602 dwShellAttributes = SFGAO_CANCOPY | SFGAO_CANMOVE | SFGAO_CANLINK | SFGAO_CANRENAME | SFGAO_CANDELETE |
603 SFGAO_HASPROPSHEET | SFGAO_DROPTARGET | SFGAO_FILESYSTEM;
607 if (SFGAO_VALIDATE & *pdwAttributes)
627 dwShellAttributes |= SFGAO_STREAM;
632 dwShellAttributes |= SFGAO_HIDDEN | SFGAO_SYSTEM;
659 TRACE(
"Treating '%S' as directory!\n", szFileName);
668 dwShellAttributes |= (SFGAO_FOLDER | SFGAO_STORAGE);
673 dwShellAttributes |= (SFGAO_FILESYSANCESTOR | SFGAO_STORAGEANCESTOR);
678 dwShellAttributes |= SFGAO_HIDDEN | SFGAO_GHOSTED;
681 dwShellAttributes |= SFGAO_READONLY;
684 dwShellAttributes |= SFGAO_SYSTEM;
687 dwShellAttributes |= SFGAO_COMPRESSED;
690 dwShellAttributes |= SFGAO_ENCRYPTED;
696 dwShellAttributes |= SFGAO_NONENUMERATED;
699 if (SFGAO_LINK & *pdwAttributes)
704 dwShellAttributes |= SFGAO_LINK;
707 if (SFGAO_HASSUBFOLDER & *pdwAttributes)
709 CComPtr<IShellFolder> psf2;
712 CComPtr<IEnumIDList> pEnumIL;
713 if (
SUCCEEDED(psf2->EnumObjects(0, SHCONTF_FOLDERS, &pEnumIL)))
715 if (pEnumIL->Skip(1) ==
S_OK)
716 dwShellAttributes |= SFGAO_HASSUBFOLDER;
721 *pdwAttributes = dwShellAttributes;
723 TRACE (
"-- 0x%08x\n", *pdwAttributes);
734 LPWSTR pchNext = lpszDisplayName;
738 const DWORD finalattr = pFind->dwFileAttributes;
739 const DWORD finalsizelo = pFind->nFileSizeLow;
748 pFind->nFileSizeLow = pchNext ? 0 : finalsizelo;
801 FindData.dwFileAttributes = attrs;
843 DWORD *pdwAttributes)
845 TRACE (
"(%p)->(HWND=%p,%p,%p=%s,%p,pidl=%p,%p)\n",
846 this, hwndOwner, pbc, lpszDisplayName,
debugstr_w (lpszDisplayName),
847 pchEaten, ppidl, pdwAttributes);
854 if (!lpszDisplayName)
861 CComHeapPtr<ITEMIDLIST> pidlTemp;
863 if (
SUCCEEDED(
hr) && pdwAttributes && *pdwAttributes)
870 *ppidl = pidlTemp.Detach();
876 LPWSTR pchNext = lpszDisplayName;
910 CComPtr<IShellFolder> psfChild;
916 CComHeapPtr<ITEMIDLIST> pidlChild;
917 hr = psfChild->ParseDisplayName(hwndOwner, pbc, pchNext, &chEaten, &pidlChild,
924 else if (pdwAttributes && *pdwAttributes)
931 TRACE(
"(%p)->(-- pidl=%p ret=0x%08x)\n",
this, ppidl ? *ppidl : 0,
hr);
946 LPENUMIDLIST *ppEnumIDList)
965 TRACE(
"(%p)->(pidl=%p,%p,%s,%p)\n",
this, pidl, pbc,
968 CComPtr<IShellFolder> pSF;
971 if (!
m_pidlRoot || !ppvOut || !pidl || !pidl->mkid.cb)
973 ERR(
"CFSFolder::BindToObject: Invalid parameters\n");
983 ERR(
"CFSFolder::BindToObject: Invalid pidl!\n");
1014 ERR(
"CFSFolder::BindToObject: %s failed to bind, using fallback (0x%08x)\n",
wine_dbgstr_guid(&clsidFolder),
hr);
1018 clsidFolder = CLSID_ShellFSFolder;
1033 TRACE (
"-- returning (%p) %08x\n", *ppvOut,
hr);
1053 FIXME(
"(%p)->(pidl=%p,%p,%s,%p) stub\n",
this, pidl, pbcReserved,
1074 LPWSTR pExtension1, pExtension2;
1080 if (bIsFolder1 != bIsFolder2)
1092 if (pData1->
u.
file.dwFileSize > pData2->
u.
file.dwFileSize)
1094 else if (pData1->
u.
file.dwFileSize < pData2->
u.
file.dwFileSize)
1133 CComPtr<IShellView> pShellView;
1146 if (bIsDropTarget || bIsShellView)
1156 CComPtr<IPersistFolder> spFolder;
1190 dcm.
hwnd = hwndOwner;
1201 else if (bIsShellView)
1212 TRACE(
"-- (%p)->(interface=%p)\n",
this, ppvOut);
1258 ERR(
"Got and unknown pidl!\n");
1263 while (cidl > 0 && *apidl)
1269 ERR(
"Got an unknown type of pidl!!!\n");
1275 *rgfInOut &= ~SFGAO_VALIDATE;
1277 TRACE(
"-- result=0x%08x\n", *rgfInOut);
1313 TRACE (
"(%p)->(%p,%u,apidl=%p,%s,%p,%p)\n",
1334 dcm.
hwnd = hwndOwner;
1379 TRACE(
"(%p)->hr=0x%08x\n",
this,
hr);
1433 if (!(
dwFlags & SHGDN_FORPARSING) &&
1464 else if (pidl && !pidl->mkid.cb)
1521 TRACE (
"(%p)->(%p,pidl=%p,%s,%u,%p)\n",
this, hwndOwner, pidl,
1527 ERR(
"Got garbage pidl:\n");
1550 if (!
wcscmp(szSrc, szDest))
1572 FIXME (
"(%p)\n",
this);
1578 FIXME (
"(%p)\n",
this);
1585 TRACE (
"(%p)\n",
this);
1598 TRACE (
"(%p)\n",
this);
1609 FIXME (
"(%p)\n",
this);
1619 TRACE (
"(%p)->(%p %i %p)\n",
this, pidl, iColumn, psd);
1657 ERR(
"Missing case for column %d\n", iColumn);
1670 FIXME (
"(%p)\n",
this);
1679 TRACE (
"(%p)\n",
this);
1699 TRACE (
"(%p)->(%p)\n",
this, pidl);
1726 TRACE (
"(%p)->(%p)\n",
this, pidl);
1745 TRACE(
"(%p)->(%p,%p,%p)\n",
this, pbc, pidlRootx, ppfti);
1747 TRACE(
"--%p %s %s 0x%08x 0x%08x\n",
1772 if (ppfti->
csidl != -1)
1812 FIXME(
"(%p)->(%p)\n",
this, ppfti);
1821 sprintfW(
buf,
L"ShellEx\\{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
1844 TRACE(
"CFSFolder::_GetDropTarget entered\n");
1848 CComPtr<IShellFolder> psfChild;
1853 return psfChild->CreateViewObject(
NULL, IID_IDropTarget, ppvOut);
1892 ERR(
"Got garbage pidl\n");
1899 CComPtr<IPersistFile> pp;
1904 pp->Load(wszPath, 0);
1909 ERR(
"Failed to query for interface IID_IShellExtInit hr %x pclsid %s\n",
hr,
wine_dbgstr_guid(pclsid));
1928 CComPtr<IDataObject> pDataObj;
1933 CComHeapPtr<WCHAR> wszName;
1938 ERR(
"SH_ShowPropertiesDialog failed\n");
1960 CComPtr<IStream> pStream;
1968 CComPtr<IPicture> pPicture;
1974 pPicture->get_Handle((OLE_HANDLE *)&
hbm);
2017 static LPCWSTR TheGUID =
L"{BE098140-A513-11D0-A3A4-00C04FD706EC}";
2018 static LPCWSTR Space =
L" \t\n\r\f\v";
2047 if (pchEnd && !*pchEnd)
2061 if (pchEnd && !*pchEnd)
2062 data->clrTextBack = cr;
HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pcsfv, IShellView **ppsv)
HRESULT CFSDropTarget_CreateInstance(LPWSTR sPathTarget, REFIID riid, LPVOID *ppvOut)
HRESULT IDataObject_Constructor(HWND hwndOwner, PCIDLIST_ABSOLUTE pMyPidl, PCUIDLIST_RELATIVE_ARRAY apidl, UINT cidl, BOOL bExtendedObject, IDataObject **dataObject)
HRESULT WINAPI SHCreateDataObject(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IDataObject *pdtInner, REFIID riid, void **ppv)
#define SFVM_GET_CUSTOMVIEWINFO
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void shell(int argc, const char *argv[])
#define RegCloseKey(hKey)
EXTERN_C void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2)
BOOL AddToEnumList(LPITEMIDLIST pidl)
STDMETHOD() GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet) override
STDMETHOD() CallBack(IShellFolder *psf, HWND hwndOwner, IDataObject *pdtobj, UINT uMsg, WPARAM wParam, LPARAM lParam) override
STDMETHOD() Initialize(PCIDLIST_ABSOLUTE pidl) override
STDMETHOD() EnumObjects(HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST *ppEnumIDList) override
HRESULT _CreateShellExtInstance(const CLSID *pclsid, LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppvOut)
static HRESULT GetDefaultFSColumnState(UINT iColumn, SHCOLSTATEF &csFlags)
STDMETHOD() SetNameOf(HWND hwndOwner, PCUITEMID_CHILD pidl, LPCOLESTR lpName, DWORD dwFlags, PITEMID_CHILD *pPidlOut) override
DWORD m_bGroupPolicyActive
HRESULT _GetIconHandler(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppvOut)
STDMETHOD() GetAttributesOf(UINT cidl, PCUITEMID_CHILD_ARRAY apidl, DWORD *rgfInOut) override
HRESULT _ParseSimple(_In_ LPOLESTR lpszDisplayName, _Inout_ WIN32_FIND_DATAW *pFind, _Out_ LPITEMIDLIST *ppidl)
static HRESULT GetFSColumnDetails(UINT iColumn, SHELLDETAILS &sd)
STDMETHOD() CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2) override
STDMETHOD() GetCurFolder(PIDLIST_ABSOLUTE *pidl) override
BOOL _GetFindDataFromName(_In_ LPCWSTR pszName, _Out_ WIN32_FIND_DATAW *pFind)
STDMETHOD() GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, UINT *prgfInOut, LPVOID *ppvOut) override
HRESULT _GetDropTarget(LPCITEMIDLIST pidl, LPVOID *ppvOut)
HRESULT _CreateIDListFromName(LPCWSTR pszName, DWORD attrs, IBindCtx *pbc, LPITEMIDLIST *ppidl)
STDMETHOD() MapColumnToSCID(UINT column, SHCOLUMNID *pscid) override
STDMETHOD() BindToStorage(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() ParseDisplayName(HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName, DWORD *pchEaten, PIDLIST_RELATIVE *ppidl, DWORD *pdwAttributes) override
STDMETHOD() InitializeEx(IBindCtx *pbc, LPCITEMIDLIST pidlRoot, const PERSIST_FOLDER_TARGET_INFO *ppfti) override
STDMETHOD() GetDefaultColumnState(UINT iColumn, DWORD *pcsFlags) override
HRESULT WINAPI GetCustomViewInfo(ULONG unknown, SFVM_CUSTOMVIEWINFO_DATA *data)
STDMETHOD() MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) override
STDMETHOD() GetFolderTargetInfo(PERSIST_FOLDER_TARGET_INFO *ppfti) override
STDMETHOD() GetDetailsEx(PCUITEMID_CHILD pidl, const SHCOLUMNID *pscid, VARIANT *pv) override
STDMETHOD() EnumSearches(IEnumExtraSearch **ppenum) override
STDMETHOD() GetDefaultSearchGUID(GUID *pguid) override
STDMETHOD() GetClassID(CLSID *lpClassId) override
STDMETHOD() CreateViewObject(HWND hwndOwner, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() GetDefaultColumn(DWORD dwRes, ULONG *pSort, ULONG *pDisplay) override
STDMETHOD() BindToObject(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
HRESULT _CreateExtensionUIObject(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppvOut)
STDMETHOD() GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *psd) override
HRESULT _AddFindResult(LPWSTR sParentDir, const WIN32_FIND_DATAW &FindData, DWORD dwFlags)
HRESULT WINAPI Initialize(LPWSTR sPathTarget, DWORD dwFlags)
void pdump_always(LPCITEMIDLIST pidl)
void pdump(LPCITEMIDLIST pidl)
const char * shdebugstr_guid(const struct _GUID *id)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
#define IDS_SHV_COLUMN_TYPE
#define IDS_SHV_COLUMN_NAME
#define GET_SHGDN_RELATION(dwFlags)
#define DFM_MERGECONTEXTMENU
#define DFM_INVOKECOMMAND
#define GET_SHGDN_FOR(dwFlags)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LSTATUS WINAPI RegGetValueW(HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwFlags, LPDWORD pdwType, PVOID pvData, LPDWORD pcbData)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LSTATUS WINAPI RegQueryValueW(HKEY hkey, LPCWSTR name, LPWSTR data, LPLONG count)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
BOOL WINAPI _ILIsPidlSimple(LPCITEMIDLIST pidl)
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
static const WCHAR *const ext[]
#define FAILED_UNEXPECTEDLY(hr)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI MoveFileW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName)
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
UINT WINAPI GetPrivateProfileIntW(LPCWSTR section, LPCWSTR entry, INT def_val, LPCWSTR filename)
INT WINAPI GetPrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, UINT len, LPCWSTR filename)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
HRESULT WINAPI OleLoadPicture(LPSTREAM lpstream, LONG lSize, BOOL fRunmode, REFIID riid, LPVOID *ppvObj)
BOOL SHELL_FS_HideExtension(LPCWSTR szPath)
static HRESULT SHELL32_GetCLSIDForDirectory(LPCWSTR pwszDir, LPCWSTR KeyName, CLSID *pclsidFolder)
#define GENERICSHELLVIEWCOLUMNS
static LPCWSTR ExtensionFromPidl(PCUIDLIST_RELATIVE pidl, LPWSTR Buf, UINT cchMax)
static BOOL getShellClassInfo(LPCWSTR Entry, LPWSTR pszValue, DWORD cchValueLen, LPCWSTR IniFile)
static HRESULT getIconLocationForFolder(IShellFolder *psf, PCITEMID_CHILD pidl, UINT uFlags, LPWSTR szIconFile, UINT cchMax, int *piIndex, UINT *pwFlags)
HRESULT SHELL32_GetFSItemAttributes(IShellFolder *psf, LPCITEMIDLIST pidl, LPDWORD pdwAttributes)
static HRESULT getDefaultIconLocation(LPWSTR szIconFile, UINT cchMax, int *piIndex, UINT uFlags)
static const shvheader GenericSFHeader[]
HRESULT GetCLSIDForFileType(PCUIDLIST_RELATIVE pidl, LPCWSTR KeyName, CLSID *pclsid)
static LPCWSTR GetItemFileName(PCUITEMID_CHILD pidl, LPWSTR Buf, UINT cchMax)
static HRESULT GetCLSIDForFileTypeFromExtension(LPCWSTR pExtension, LPCWSTR KeyName, CLSID *pclsid)
static HKEY OpenKeyFromFileType(LPCWSTR pExtension, LPCWSTR KeyName)
void SHELL_FS_ProcessDisplayFilename(LPWSTR szPath, DWORD dwFlags)
HRESULT CFSExtractIcon_CreateInstance(IShellFolder *psf, LPCITEMIDLIST pidl, REFIID iid, LPVOID *ppvOut)
static HBITMAP DoLoadPicture(LPCWSTR pszFileName)
DWORD BindCtx_GetMode(_In_ IBindCtx *pbc, _In_ DWORD dwDefault)
HRESULT SHIsFileSysBindCtx(_In_ IBindCtx *pBindCtx, _Out_opt_ WIN32_FIND_DATAW *pFindData)
HRESULT SHELL32_DefaultContextMenuCallBack(IShellFolder *psf, IDataObject *pdo, UINT msg)
HRESULT SHILAppend(_Inout_ LPITEMIDLIST pidl, _Inout_ LPITEMIDLIST *ppidl)
BOOL PathIsDosDevice(_In_ LPCWSTR pszName)
HRESULT SHILClone(_In_opt_ LPCITEMIDLIST pidl, _Outptr_ LPITEMIDLIST *ppidl)
void WINAPI SHFree(LPVOID pv)
LPVOID WINAPI SHAlloc(SIZE_T len)
HRESULT WINAPI SHCoCreateInstance(LPCWSTR aclsid, const CLSID *clsid, LPUNKNOWN pUnkOuter, REFIID refiid, LPVOID *ppv)
BOOL WINAPI SHGetSpecialFolderPathW(HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate)
HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR lpszPath, DWORD dwMode, DWORD dwAttributes, BOOL bCreate, IStream *lpTemplate, IStream **lppStream)
LPWSTR WINAPI PathFindFileNameW(LPCWSTR lpszPath)
LPWSTR WINAPI PathFindExtensionW(LPCWSTR lpszPath)
void WINAPI PathRemoveExtensionW(LPWSTR lpszPath)
BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath)
VOID WINAPI PathUnquoteSpacesW(LPWSTR lpszPath)
BOOL WINAPI PathIsDirectoryW(LPCWSTR lpszPath)
int WINAPI PathParseIconLocationW(LPWSTR lpszPath)
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
HRESULT WINAPI SHRegGetCLSIDKeyW(REFGUID, LPCWSTR, BOOL, BOOL, PHKEY)
DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
BOOL WINAPI StrTrimW(LPWSTR lpszStr, LPCWSTR lpszTrim)
HRESULT WINAPI StrRetToStrW(LPSTRRET lpStrRet, const ITEMIDLIST *pidl, LPWSTR *ppszName)
WCHAR swShell32Name[MAX_PATH]
BOOL SH_ShowPropertiesDialog(LPCWSTR pwszPath, IDataObject *pDataObj)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
_Check_return_ long __cdecl wcstol(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT BindToObject([in] PCUIDLIST_RELATIVE pidl, [in] LPBC pbcReserved, [in] REFIID riid, [out, iid_is(riid)] void **ppvOut)
HRESULT GetDisplayNameOf([in] PCUITEMID_CHILD pidl, [in] SHGDNF uFlags, [out] STRRET *lpName)
HRESULT GetAttributesOf([in] UINT cidl, [in, size_is(cidl)] PCUITEMID_CHILD_ARRAY apidl, [in, out] SFGAOF *rgfInOut)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define COM_INTERFACE_ENTRY_IID(iid, x)
#define memcpy(s1, s2, n)
#define ERROR_FILE_NOT_FOUND
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static IParseDisplayName ParseDisplayName
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static PROTOCOLDATA * pdata
#define FILE_ATTRIBUTE_READONLY
#define FILE_ATTRIBUTE_COMPRESSED
#define FILE_ATTRIBUTE_HIDDEN
#define FILE_ATTRIBUTE_SYSTEM
#define FILE_ATTRIBUTE_DIRECTORY
#define DEFAULT_UNREACHABLE
#define FILE_ATTRIBUTE_ENCRYPTED
interface IBindCtx * LPBC
const GUID IID_IDataObject
#define PathAddExtensionW
#define PathAddBackslashW
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
void WINAPI ILFree(LPITEMIDLIST pidl)
DWORD _ILGetFileAttributes(LPCITEMIDLIST pidl, LPWSTR pOut, UINT uOutSize)
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
HRESULT WINAPI SHGetNameFromIDList(PCIDLIST_ABSOLUTE pidl, SIGDN sigdnName, PWSTR *ppszName)
LPPIDLDATA _ILGetDataPointer(LPCITEMIDLIST pidl)
BOOL WINAPI ILRemoveLastID(LPITEMIDLIST pidl)
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)
FileStructW * _ILGetFileStructW(LPCITEMIDLIST pidl)
BOOL _ILIsFolder(LPCITEMIDLIST pidl)
void _ILGetFileType(LPCITEMIDLIST pidl, LPWSTR pOut, UINT uOutSize)
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
BOOL ILGetDisplayNameExW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPWSTR path, DWORD type)
BOOL _ILGetFileDate(LPCITEMIDLIST pidl, LPWSTR pOut, UINT uOutSize)
DWORD _ILGetFileSize(LPCITEMIDLIST pidl, LPWSTR pOut, UINT uOutSize)
BOOL _ILIsValue(LPCITEMIDLIST pidl)
BOOL _ILIsDrive(LPCITEMIDLIST pidl)
BOOL _ILGetExtension(LPCITEMIDLIST pidl, LPWSTR pOut, UINT uOutSize)
DWORD _ILSimpleGetTextW(LPCITEMIDLIST pidl, LPWSTR szOut, UINT uOutSize)
LPITEMIDLIST _ILCreateFromFindDataW(const WIN32_FIND_DATAW *wfd)
#define IsEqualIID(riid1, riid2)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
static __inline const char * wine_dbgstr_guid(const GUID *id)
BOOL HCR_GetIconW(LPCWSTR szClass, LPWSTR szDest, LPCWSTR szName, DWORD len, int *picon_idx)
#define __SHFreeAndNil(ptr)
DWORD WINAPI ParseFieldW(LPCWSTR src, DWORD nField, LPWSTR dst, DWORD len) DECLSPEC_HIDDEN
#define CSIDL_FLAG_CREATE
HRESULT HResultFromWin32(DWORD hr)
#define MAKE_COMPARE_HRESULT(x)
#define SHELL_GetSetting(pss, ssf, field)
HRESULT SHELL32_BindToSF(LPCITEMIDLIST pidlRoot, PERSIST_FOLDER_TARGET_INFO *ppfti, LPCITEMIDLIST pidl, const GUID *clsid, REFIID riid, LPVOID *ppvOut)
#define SHFSF_COL_COMMENT
HRESULT SHELL32_GetDisplayNameOfChild(IShellFolder2 *psf, LPCITEMIDLIST pidl, DWORD dwFlags, LPSTRRET strRet)
SHCONTF SHELL_GetDefaultFolderEnumSHCONTF()
HRESULT SHELL32_CompareChildren(IShellFolder2 *psf, LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
void AddFSClassKeysToArray(UINT cidl, PCUITEMID_CHILD_ARRAY apidl, HKEY *array, UINT *cKeys)
LSTATUS AddClassKeyToArray(const WCHAR *szClass, HKEY *array, UINT *cKeys)
HRESULT SHELL32_CompareDetails(IShellFolder2 *isf, LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
HRESULT Shell_NextElement(_Inout_ LPWSTR *ppch, _Out_ LPWSTR pszOut, _In_ INT cchOut, _In_ BOOL bValidate)
void WINAPI _InsertMenuItemW(HMENU hmenu, UINT indexMenu, BOOL fByPosition, UINT wID, UINT fType, LPCWSTR dwTypeData, UINT fState)
#define SHCNE_RENAMEFOLDER
#define SSF_SHOWEXTENSIONS
struct _SFV_CREATE SFV_CREATE
LSTATUS WINAPI SHRegGetValueW(_In_ HKEY hkey, _In_opt_ LPCWSTR pszSubKey, _In_opt_ LPCWSTR pszValue, _In_ SRRF srrfFlags, _Out_opt_ LPDWORD pdwType, _Out_writes_bytes_to_opt_(*pcbData, *pcbData) LPVOID pvData, _Inout_opt_ LPDWORD pcbData)
#define PathIsNetworkPath
#define IDS_SHV_COLUMN_SIZE
#define IDS_SHV_COLUMN_MODIFIED
#define IDI_SHELL_DOCUMENT
#define IDS_SHV_COLUMN_COMMENTS
#define IDS_SHV_COLUMN_ATTRIBUTES
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
STRSAFEAPI StringCchCatW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
base of all file and directory entries
WCHAR szTargetParsingName[MAX_PATH]
PIDLIST_ABSOLUTE pidlTargetFolder
WCHAR szNetworkProvider[MAX_PATH]
struct tagFileStruct file
union tagPIDLDATA::@557 u
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
WORD WORD PSZ PSZ pszFileName
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
DWORD WINAPI GetLastError(void)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define ERROR_PATH_NOT_FOUND
#define ERROR_NO_MORE_FILES
#define HRESULT_FROM_WIN32(x)
#define HKEY_LOCAL_MACHINE
#define HKEY_CLASSES_ROOT
HMENU WINAPI CreatePopupMenu(void)
UINT WINAPI PrivateExtractIconsW(_In_reads_(MAX_PATH) LPCWSTR szFileName, _In_ int nIconIndex, _In_ int cxIcon, _In_ int cyIcon, _Out_writes_opt_(nIcons) HICON *phicon, _Out_writes_opt_(nIcons) UINT *piconid, _In_ UINT nIcons, _In_ UINT flags)
#define LR_CREATEDIBSECTION
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI DestroyMenu(_In_ HMENU)
#define MAKEINTRESOURCEW(i)
#define IID_PPV_ARG(Itype, ppType)