[FILEBROWSER]

In the struct passed to SHCreateFromDesktop the fourth field is the parameter that later on will be passed to ShowWindow. Initialize it properly so that when we run filrbrowser.exe in win2k3 the main window won't be hidden.
This commit is contained in:
Giannis Adamopoulos 2018-11-24 19:26:14 +02:00
parent 84fa20ec8b
commit f05d01ec2f
2 changed files with 2 additions and 1 deletions

View file

@ -34,6 +34,7 @@ int _tmain(int argc, _TCHAR* argv[])
if (SHExplorerParseCmdLine(&parseResults))
{
parseResults.dwFlags |= SH_EXPLORER_CMDLINE_FLAG_SEPARATE;
parseResults.nCmdShow = SW_SHOWNORMAL;
return SHCreateFromDesktop(&parseResults);
}

View file

@ -60,7 +60,7 @@ typedef struct ExplorerCommandLineParseResults
LPWSTR strPath;
LPITEMIDLIST pidlPath;
DWORD dwFlags;
DWORD offsetC;
int nCmdShow;
DWORD offset10;
DWORD offset14;
DWORD offset18;