1: | unit Unit2; |
1: | DWORD WNetConnectionDialog( |
| Zitat: | ||
|
WNetConnectionDialog 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. Quelltext
Parameters hwnd [in] Handle to the owner window for the dialog box. dwType [in] Resource type to allow connections to. This parameter can be the following value. Value Meaning RESOURCETYPE_DISK Connections to disk resources. Return Values If the function succeeds, the return value is NO_ERROR. If the user cancels the dialog box, the function returns ?1. If the function fails, the return value is a system error code, such as one of the following values. Return Code Description ERROR_EXTENDED_ERROR A network-specific error occurred. To obtain a description of the error, call the WNetGetLastError function. ERROR_INVALID_PASSWORD The specified password is invalid. ERROR_NO_NETWORK The network is unavailable. ERROR_NOT_ENOUGH_MEMORY There is insufficient memory to start the dialog box. Remarks If the user clicks OK in the dialog box, the requested network connection will have been made when the WNetConnectionDialog function returns. If the function attempts to make a connection and the network provider returns the message ERROR_INVALID_PASSWORD, the system prompts the user to enter a password. The system uses the new password in another attempt to make the connection. Requirements Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, and Windows 95. Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server. Header: Declared in Winnetwk.h. Library: Use Mpr.lib. See Also Windows Networking (WNet) Overview, Windows Networking Functions, WNetAddConnection3, WNetCancelConnection2, WNetDisconnectDialog |
Entwickler-Ecke.de based on phpBB
Copyright 2002 - 2011 by Tino Teuber, Copyright 2011 - 2026 by Christian Stelzmann Alle Rechte vorbehalten.
Alle Beiträge stammen von dritten Personen und dürfen geltendes Recht nicht verletzen.
Entwickler-Ecke und die zugehörigen Webseiten distanzieren sich ausdrücklich von Fremdinhalten jeglicher Art!