CComPtr<IVsUIShell> spIVsUIShell = GetVsSiteCache().GetCachedService<IVsUIShell, SID_SVsUIShell>();
VSBROWSEINFOW info[1];
memset(info,0,sizeof(VSBROWSEINFOW));
info[0].dwFlags = BIF_RETURNONLYFSDIRS | BIF_EDITBOX|BIF_USENEWUI;
info[0].hwndOwner = GetParent().GetParent().GetHandle();
info[0].lStructSize = sizeof(VSBROWSEINFOW);
info[0].nMaxDirName= 1500;
info[0].pwzInitialDir=L"";
info[0].pwzDlgTitle= L"Browse to your top level directory which has to be synced";
int l_errorCode = spIVsUIShell->GetDirectoryViaBrowseDlg(info);
↧
GetDirectoryViaBrowseDlg returns error code
↧