The value of using a canonical name is that it abstracts the module name of the Control Panel item. A canonical name is a non-localized string that the Control Panel item declares in the registry. In Windows Vista and later, the preferred method of launching a Control Panel item from a command line is to use the Control Panel item's canonical name. For instance, the following example launches the fourth tab in the System item on Windows XP and the third tab on Windows Vista. Due to the addition and removal of certain tabs in some Windows Vista Control Panel items, the numbering of the tabs might have changed from that in Windows XP. When a Control Panel item is opened through a command line, you can instruct it to open to a particular tab in the item. WinExec("c:\windows\system32\control.exe M圜pl.cpl", SW_NORMAL) The following example shows how an application can start the Control Panel item named M圜pl.cpl by using the WinExec function. WinExec("c:\windows\system32\control.exe", SW_NORMAL) The user or an application can start a Control Panel item by executing it directly from the command line prompt.Īn application can open the Control Panel programmatically by using the WinExec function.The user can open Control Panel and then open an item by clicking or double-clicking the item's icon.There are two ways to open a Control Panel item: If you are looking for the list of canonical and module names for Control Panel items, see Canonical Names of Control Panel Items.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |