BROWSEINFO bi;
::ZeroMemory(&bi,sizeof(bi));
WCHAR chPath[MAX_PATH] = _T("");
LPITEMIDLIST pNetHoodIDL;
::SHGetSpecialFolderLocation(NULL,CSIDL_RESOURCES_LOCALIZED,&pNetHoodIDL);
LPITEMIDLIST pidlSel=::SHBrowseForFolder(&bi);
if(pidlSel!=NULL)
{
SHGetPathFromIDList(pidlSel, chPath);
CComPtr pMalloc;
::SHGetMalloc(&pMalloc);
pMalloc->Free(pidlSel);
}
::ZeroMemory(&bi,sizeof(bi));
WCHAR chPath[MAX_PATH] = _T("");
LPITEMIDLIST pNetHoodIDL;
::SHGetSpecialFolderLocation(NULL,CSIDL_RESOURCES_LOCALIZED,&pNetHoodIDL);
LPITEMIDLIST pidlSel=::SHBrowseForFolder(&bi);
if(pidlSel!=NULL)
{
SHGetPathFromIDList(pidlSel, chPath);
CComPtr pMalloc;
::SHGetMalloc(&pMalloc);
pMalloc->Free(pidlSel);
}