IOpenControlPanelOpen Method

Opens the specified Control Panel item, optionally to a specific page.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult Open(
	string name,
	string page,
	IntPtr punkSite
)

Parameters

name  String
A pointer to the item's canonical name as a Unicode string.

This parameter is optional and can be .

If the calling application passes , then the Control Panel itself opens.

page  String
A pointer to the name of the page within the item to display.

This string is appended to the end of the path for Shell folder Control Panel items or appended as a command-line parameter for Control Panel (.cpl) file items.

This parameter can be , in which case the first page is shown.

punkSite  IntPtr
A pointer to the site for navigating in-frame for Shell folder Control Panel items.

This parameter can be Zero or .

Return Value

HResult
If this method succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

See Also