Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Syntax

DWORD WNetConnectionDialog1(
  LPCONNECTDLGSTRUCT 
lpConnectDlgStruct 
);

Parameters

lpConnectDlgStruct

[in] Long pointer to the CONNECTDLGSTRUCTstructure, which establishes the browsing dialog parameters.

Return Value

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 dwDevNummember of the CONNECTDLGSTRUCTstructure pointed to by the lpConnectDlgStrucparameter is ignored.

The dwFlagsmember of the CONNECTDLGSTRUCTcan be either CONNDLG_RO_PATH or 0.

Requirements

Header winnetwk.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

CONNECTDLGSTRUCT

Other Resources

GetLastError