This program displays a list of nice applet names in a ListBox. The array m_CommandStrings contains the corresponding names by which the system knows the applets.
When you click the Go button, the program builds a command string and uses the Shell command to execute it. The command statement has the form:
Shell("rundll32.exe shell32.dll,Control_RunDLL XXX,,#")
Where XXX is the name of the applet's control string and # is the index of the applet tab you want to display. For example, this statement displays the first tab in the Accessibility Options applet:
Shell("rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1")
Not all of these will work on all systems because you may not have every applet installed.
|