IVsUIShell::GetOpenFileNameViaDlg Method (array<VSOPENFILENAMEW>^)
Visual Studio 2015
Brings up the Open dialog box to obtain an open file name.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pOpenFileName
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSOPENFILENAMEW>^
[in, out] Pointer to an open file name structure that contains information used to initialize the dialog box. When this method returns, this structure contains information about the user's file selection.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIShell::GetOpenFileNameViaDlg(
[in,out] VSOPENFILENAMEW *pOpenFileName
);
Use a structure similar to VSOPENFILENAMEW structure to facilitate conversion from the GetOpenFileNameW system API.
Show: