The WNetConnectionDialog1 function brings up a general browsing dialog for connecting to network resources.
DWORD WNetConnectionDialog1(
LPCONNECTDLGSTRUCT lpConnectDlgStruc |
pointer to structure |
); |
If the user cancels the dialog box, the function returns 0xFFFFFFFF. If the function is successful, it returns WN_SUCCESS. Also, if the call is sucessful, dwDevNum will contain the number of the connected device.
Typically this dialog will only return an error if the user cannot enter a dialog session. This is because errors that occur after a session are reported to the user directly. Error codes include the following.
Value |
Meaning |
WN_BAD_VALUE |
One of the following: CONNDLG_RO_PATH is set and either CONNDLG_USE_MRU is set or lpConnRes->lpRemoteName does not point to a remote name. Both CONNDLG_PERSIST and CONNDLG_NOT_PERSIST are set. |
WN_BAD_DEV_TYPE |
lpConnRes->dwType is not set to RESOURCETYPE_DISK. |
WN_FUNCTION_BUSY |
The MPR or NP is busy (possibly initializing). The caller should retry. |
WN_NO_NETWORK |
The network is not present. |
WN_OUT_OF_MEMORY |
Insufficient memory to bring up the dialog. |
WN_EXTENDED_ERROR |
A network specific error occurred. Call WNetGetLastError to obtain a description of the error. |
CONNECTDLGSTRUCT, WNetConnectionDialog, WNetDisconnectDialog
file: /Techref/os/win/api/win32/func/src/f92_4.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2024/8/24 12:13,
18.117.168.160:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/Techref/os/win/api/win32/func/src/f92_4.htm"> WNetConnectionDialog1</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.