IVsUIShell::GetOpenFileNameViaDlg Method (array<VSOPENFILENAMEW>^)

 

Brings up the Open dialog box to obtain an open file name.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetOpenFileNameViaDlg(
	array<VSOPENFILENAMEW>^ pOpenFileName
)

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::Int32

If 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.

Return to top
Show: