Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.09 KB

WNetConnectionDialog1.md

File metadata and controls

47 lines (31 loc) · 1.09 KB

Home

Function name : WNetConnectionDialog1

Group: Windows Networking - Library: mpr


Brings up a general browsing dialog for connecting to network resources.


Code examples:

Starting a dialog box for connecting to network resources and passing input parameters

Declaration:

DWORD WNetConnectionDialog1(
  __inout  LPCONNECTDLGSTRUCT lpConnDlgStruct
);  

FoxPro declaration:

DECLARE LONG WNetConnectionDialog1 IN mpr;
	INTEGER lpConnDlgStruct  

Parameters:

lpConnDlgStruct [in, out] Pointer to a CONNECTDLGSTRUCT structure. The structure establishes the browsing dialog parameters.


Return value:

If the user cancels the dialog box, the function returns –1. If the function is successful, it returns NO_ERROR (0).


Comments:

The function requires a CONNECTDLGSTRUCT to establish the dialog box parameters.