mardi 2 décembre 2014

Windows cannot find rstrui.exe on windows 8 through shell execute


Vote count:

0




When I run this call on windows 8.1 64 bits I get an error message telling me it cannot find the path.


If I run c:/windows/system32/rstrui.exe through the command line it works just fine So I am kind of clueless about what I might be doing wrong. Here's the code I use. I also tried using the "runas" verb, but it still does not work.



shex.cbSize = sizeof( SHELLEXECUTEINFO );
shex.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_WAITFORINPUTIDLE | SEE_MASK_FLAG_NO_UI;
shex.hwnd = NULL;
shex.lpVerb = "open";
shex.lpFile = "c:/windows/system32/rstrui.exe";
shex.lpDirectory = NULL;
shex.lpParameters = "";
shex.nShow = SW_SHOW;
return ::ShellExecuteEx( &shex ) == TRUE ? RET_SUCCESS : RET_ERROR;


I tried on windows 7 and it works just fine.



asked 2 mins ago







Windows cannot find rstrui.exe on windows 8 through shell execute

Aucun commentaire:

Enregistrer un commentaire