[ZIPFLDR] Implement RouteTheCall, so that applications can 'launch' zip files
[reactos.git] / dll / shellext / zipfldr / zipfldr.cpp
index 27a354e..2b9e5b6 100644 (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;
 }