JCL Help:ShellRunControlPanel

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Executes a control panel application.


Pascal

 function ShellRunControlPanel(const NameOrFileName: string; AppletNumber: Integer = 0): Boolean;


Parameters

Parameters Description
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).


Return Value

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).


Description

ShellRunControlPanel executes a control panel application.


About

Unit

JclShell


Donator

Petr Vones


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