Mirror

How to launch the Windows Control Panel (Views: 715)


Problem/Question/Abstract:

How to launch the Windows Control Panel

Answer:

This is quite useful if you are writing a shell replacement.


This will launch the control panel:

WinExec('rundll32 shell32.dll, Control_RunDLL', SW_SHOW);

Launch display properties:

WinExec('rundll32 shell32.dll, Control_RunDLL desk.cpl, , 0', SW_SHOW);

<< Back to main page