Share via


WNetConnectionDialog1

This function brings up a general browsing dialog for connecting to network resources.

DWORD WNetConnectionDialog1(
  LPCONNECTDLGSTRUCT lpConnectDlgStruct 
);

Parameters

  • lpConnectDlgStruct
    [in] Long pointer to the CONNECTDLGSTRUCT structure, which establishes the browsing dialog parameters.

Return Values

ERROR_SUCCESS indicates success. 0xFFFFFFFF indicates that there was a graphical user interface (GUI) error, for example, that the user canceled the dialog box, To get extended error information, call GetLastError.

Remarks

The **dwDevNum****member of the CONNECTDLGSTRUCT structure pointed to by the lpConnectDlgStruc parameter is ignored.

The dwFlags member of the CONNECTDLGSTRUCT can be either CONNDLG_RO_PATH or 0.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Winnetwk.h.
Link Library: Coredll.lib.

See Also

CONNECTDLGSTRUCT | GetLastError

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.