This is possible with the current version of my plugin, which I'll release in the next weeks. If you can't wait, here is the source code:

Code:


DLLFUNC var DllSearchFolder(STRING* title,STRING* str1,STRING* str2)
{
BROWSEINFO brinfo;
char buffer[MAX_PATH];
char buffer2[MAX_PATH];
int Image = NULL;
ITEMIDLIST* iteminfo;

brinfo.hwndOwner = ev->hWnd;
brinfo.pidlRoot = NULL;
brinfo.pszDisplayName = buffer;
brinfo.lpszTitle = title->chars;
brinfo.ulFlags = NULL;
brinfo.lpfn = NULL;
brinfo.lParam = NULL;
brinfo.iImage = Image;

iteminfo = SHBrowseForFolder(&brinfo);
if(!iteminfo) { return(_VAR(0)); }

SHGetPathFromIDList(iteminfo,buffer2);

if(str1 != 0)
{
strncpy(str1->chars,buffer,MAX_PATH);
}
else
{
DllStringSend1(buffer);
}
if(str2 != 0)
{
strncpy(str2->chars,buffer2,MAX_PATH);
}
else
{
DllStringSend2(buffer2);
}

return(_VAR(1));
}