Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.43 KB

WNetConnectionDialog.md

File metadata and controls

57 lines (37 loc) · 1.43 KB

Home

Function name : WNetConnectionDialog

Group: Windows Networking - Library: mpr


The WNetConnectionDialog function starts a general browsing dialog box for connecting to network resources. The function requires a handle to the owner window for the dialog box.


Code examples:

Starting a dialog box for connecting to network resources (mapping network drive)

Declaration:

DWORD WNetConnectionDialog(
  HWND hwnd,     // handle to window owning dialog box
  DWORD dwType   // resource type
);  

FoxPro declaration:

DECLARE INTEGER WNetConnectionDialog IN mpr;
	INTEGER hwnd,;
	INTEGER dwType  

Parameters:

hwnd [in] Specifies a handle to the owner window for the dialog box.

dwType [in] Specifies the resource type to allow connections to.


Return value:

If the function succeeds, the return value is NO_ERROR (0). If the user cancels the dialog box, the function returns 1.


Comments:

Not much of input parameters this function accepts: nor a drive letter neither a network path.

See also: WNetDisconnectDialog, WNetConnectionDialog1.