![]() As long as the canonical name remains the same, then any program that opens it by using that canonical name does not need to be updated.īy convention, the canonical name is formed as "CorporationName.ControlPanelItemName". 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)
0 Comments
Leave a Reply. |