Shell32SHObjectProperties Method
Invokes the Properties context menu command on a Shell object.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SHObjectProperties (
hWndParent As IntPtr,
objectType As SHObjectPropertiesFlags,
objectName As String,
propertyPage As String
) As Boolean
Dim hWndParent As IntPtr
Dim objectType As SHObjectPropertiesFlags
Dim objectName As String
Dim propertyPage As String
Dim returnValue As Boolean
returnValue = Shell32.SHObjectProperties(hWndParent,
objectType, objectName, propertyPage)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static bool SHObjectProperties(
IntPtr hWndParent,
SHObjectPropertiesFlags objectType,
String^ objectName,
String^ propertyPage
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHObjectProperties :
hWndParent : IntPtr *
objectType : SHObjectPropertiesFlags *
objectName : string *
propertyPage : string -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
Returns
if the command is successfully invoked;
otherwise,
.