IOpenControlPanelOpen Method
Opens the specified Control Panel item, optionally to a specific page.
Namespace: DevCase.Win32.InterfacesAssembly: 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
)
<PreserveSigAttribute>
Function Open (
name As String,
page As String,
punkSite As IntPtr
) As HResult
Dim instance As IOpenControlPanel
Dim name As String
Dim page As String
Dim punkSite As IntPtr
Dim returnValue As HResult
returnValue = instance.Open(name, page,
punkSite)
[PreserveSigAttribute]
HResult Open(
String^ name,
String^ page,
IntPtr punkSite
)
[<PreserveSigAttribute>]
abstract Open :
name : string *
page : string *
punkSite : IntPtr -> HResult
No code example is currently available or this language may not be supported.
- 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 .
HResult
If this method succeeds, it returns
S_OK. Otherwise, it returns an
HResult error code.