JCL Help: ShellRunControlPanel Function
- Project summary
Search in JCL HelpSearch in all projects
Executes a control panel application.
function ShellRunControlPanel(const NameOrFileName: string; AppletNumber: Integer = 0): Boolean;
|const NameOrFileName: string||Filename of the control panel application to execute (a .cpl)|
|AppletNumber: Integer = 0||Zero based index of the applet to execute. Most control panel applications only implement a single applet so this parameter is most often 0. However, for those control panel applications that implement multiple applets you can use this index to choose the applet to execute. For example, on Windows 2000 main.cpl implements two applets, Mouse Properties (index 0) and Keyboard Properties (index 1).|
If the control panel application can be executed the function returns True, otherwise it returns False. Note that the application is executed asynchronously so the application may not be running yet when the function returns. Note that passing an invalid index causes the function to return True (it only checks validity of the filename) but the applet will not be shown (obviously).
ShellRunControlPanel executes a control panel application.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page