Shell32SHObjectProperties Method

Invokes the Properties context menu command on a Shell object.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool SHObjectProperties(
	IntPtr hWndParent,
	SHObjectPropertiesFlags objectType,
	string objectName,
	string propertyPage
)

Parameters

hWndParent  IntPtr
The handle of the parent window of the dialog box.

This value can be NULL.

objectType  SHObjectPropertiesFlags
A flag value that specifies the type of object.
objectName  String
A null-terminated Unicode string that contains the object name.

The contents of the string are determined by the flag set in objectType.

propertyPage  String
A null-terminated Unicode string that contains the name of the property sheet page to be opened initially.

Set this parameter to NULL to specify the default page.

Return Value

Boolean
Returns if the command is successfully invoked; otherwise, .

Remarks

See Also