Shell32SHOpenWithDialog Method
Displays the Open With dialog box.
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", ExactSpelling = true)]
public static HResult SHOpenWithDialog(
IntPtr hWndParent,
ref OpenAsInfo refOpenAsInfo
)
<DllImportAttribute("Shell32.dll", ExactSpelling := true>]
Public Shared Function SHOpenWithDialog (
hWndParent As IntPtr,
ByRef refOpenAsInfo As OpenAsInfo
) As HResult
Dim hWndParent As IntPtr
Dim refOpenAsInfo As OpenAsInfo
Dim returnValue As HResult
returnValue = Shell32.SHOpenWithDialog(hWndParent,
refOpenAsInfo)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true)]
static HResult SHOpenWithDialog(
IntPtr hWndParent,
OpenAsInfo% refOpenAsInfo
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true)>]
static member SHOpenWithDialog :
hWndParent : IntPtr *
refOpenAsInfo : OpenAsInfo byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.