[ZIPFLDR] Implement RouteTheCall, so that applications can 'launch' zip files

This commit is contained in:
Mark Jansen 2018-04-22 00:00:34 +02:00
parent 4ea570975c
commit eb324b6a9c
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -109,9 +109,13 @@ BOOL WINAPI
RouteTheCall(
IN HWND hWndOwner,
IN HINSTANCE hInstance,
IN LPWSTR lpNamedPipeName,
IN LPCSTR lpStringArg,
IN INT Show)
{
UNIMPLEMENTED;
return FALSE;
CStringW path = lpStringArg;
PathRemoveBlanksW(path.GetBuffer());
path.ReleaseBuffer();
path = L"\"" + path + L"\"";
ShellExecuteW(NULL, L"open", L"explorer.exe", path.GetString(), NULL, SW_SHOWNORMAL);
return TRUE;
}