Commit 63a9e11e authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Implemented SHBrowseForFolderW.

parent 964e4f9c
......@@ -340,3 +340,44 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
lpbi->hwndOwner,
BrsFolderDlgProc, (INT)lpbi );
}
/*************************************************************************
* SHBrowseForFolderW [SHELL32.@]
*/
LPITEMIDLIST WINAPI SHBrowseForFolderW (LPBROWSEINFOW lpbi)
{
char szDisplayName[MAX_PATH], szTitle[MAX_PATH];
BROWSEINFOA bi;
TRACE("((%p->{lpszTitle=%s,owner=%i})\n", lpbi,
lpbi ? debugstr_w(lpbi->lpszTitle): NULL, lpbi ? lpbi->hwndOwner: 0);
if (!lpbi)
return NULL;
bi.hwndOwner = lpbi->hwndOwner;
bi.pidlRoot = lpbi->pidlRoot;
if (lpbi->pszDisplayName)
{
WideCharToMultiByte(CP_ACP, 0, lpbi->pszDisplayName, -1, szDisplayName, MAX_PATH, 0, NULL);
bi.pszDisplayName = szDisplayName;
}
else
bi.pszDisplayName = NULL;
if (lpbi->lpszTitle)
{
WideCharToMultiByte(CP_ACP, 0, lpbi->lpszTitle, -1, szTitle, MAX_PATH, 0, NULL);
bi.lpszTitle = szTitle;
}
else
bi.lpszTitle = NULL;
bi.ulFlags = lpbi->ulFlags;
bi.lpfn = lpbi->lpfn;
bi.lParam = lpbi->lParam;
bi.iImage = lpbi->iImage;
return (LPITEMIDLIST) DialogBoxParamA(shell32_hInstance,
"SHBRSFORFOLDER_MSGBOX", lpbi->hwndOwner,
BrsFolderDlgProc, (INT)lpbi);
}
......@@ -355,7 +355,7 @@ init Shell32LibMain
@ stdcall SHAppBarMessage(long ptr) SHAppBarMessage
@ stdcall SHBrowseForFolder(ptr) SHBrowseForFolderA
@ stdcall SHBrowseForFolderA(ptr) SHBrowseForFolderA
@ stub SHBrowseForFolderW@4
@ stdcall SHBrowseForFolderW(ptr) SHBrowseForFolderW
@ stdcall SHChangeNotify (long long ptr ptr) SHChangeNotifyAW
@ stub ShellHookProc
@ stub SHEmptyRecycleBinA@12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment