Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
BROWSEINFO bi = { 0 };
char path[MAX_PATH];
bi.ulFlags = BIF_USENEWUI | BIF_UAHINT | BIF_BROWSEINCLUDEFILES | BIF_EDITBOX;
bi.lpszTitle = "Select File\\Folder";
bi.pszDisplayName = path;
LPITEMIDLIST pidl = SHBrowseForFolder ( &bi );
if ( pidl != 0 )
{
// get the name of the folder
ofn = path;
// free memory used
IMalloc * imalloc = 0;
if ( SUCCEEDED( SHGetMalloc ( &imalloc )) )
{
imalloc->Free ( pidl );
imalloc->Release ( );
}
}
BROWSEINFO bi = { 0 };
char fullpath[MAX_PATH];
bi.ulFlags = BIF_USENEWUI | BIF_UAHINT | BIF_BROWSEINCLUDEFILES | BIF_EDITBOX;
bi.lpszTitle = "Select File\\Folder";
LPITEMIDLIST pidl = SHBrowseForFolder ( &bi );
if ( pidl != 0 )
{
if (SHGetPathFromIDList(pidl, fullpath))
{
ofn = fullpath;
}
// free memory used
IMalloc * imalloc = 0;
if ( SUCCEEDED( SHGetMalloc ( &imalloc )) )
{
imalloc->Free ( pidl );
imalloc->Release ( );
}
}