Error running control-panel...

I have programmed a program that replace the normal Windows interface.
It change the line: "Shell=Explorer.exe" with: "Shell=MyProg.exe" in the "C:\Windows\System.ini". But when I try to run the control-panel using the command:
"C:\Windows\rundll32.exe Shell32.dll,Control_RunDLL" Windows raise an error.
How do I prevent Windows raise this error?
Who is Participating?
viktornetConnect With a Mentor Commented:
try this...

WinExec('control', SW_SHOWNORMAL);

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.