How to display Control Panel applets?


We can execute a Control Panel applet by double clicking it. If we want to execute it through a program then the simplest way to do so is to use the ShellExecute( ) API function. The following call to ShellExecute( ) function will execute the Mouse applet.

ShellExecute ( NULL, “open”, “control.exe”, “Mouse”, NULL, SW_NORMAL ) ;

Here, we have executed ‘control.exe’ (which starts Control Panel application) and passed to it ‘Mouse’ as the parameter.

This entry was posted in VC++ and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>