 |
WNetConnectionDialog ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
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: |
 |
|
|
 |
 |
| 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. |
 |
 |
| Usage: |
 |
#DEFINE RESOURCETYPE_DISK 1
= WNetConnectionDialog(_screen.hWnd, RESOURCETYPE_DISK)
|
 |
 |
| My comment: |
 |

Not much of input parameters this function accepts: nor a drive letter neither a network path.
See also: WNetDisconnectDialog, WNetConnectionDialog1
|
 |
 |
| Word Index links for the WNetConnectionDialog : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-06-06 08:12:38 | | Modified: | 2009-01-30 12:46:06 | Visited in last 7 days: 13 |