Shell32SHOpenWithDialog Method

Displays the Open With dialog box.

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", ExactSpelling = true)]
public static HResult SHOpenWithDialog(
	IntPtr hWndParent,
	ref OpenAsInfo refOpenAsInfo
)

Parameters

hWndParent  IntPtr
The handle of the parent window. This value can be NULL.
refOpenAsInfo  OpenAsInfo
A pointer to an OpenAsInfo structure, which specifies the contents of the resulting dialog.

Return Value

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

Remarks

See Also