 |
WNetDisconnectDialog ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The WNetDisconnectDialog function starts a general browsing dialog box for disconnecting from network resources. The function requires a handle to the owner window for the dialog box. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD WNetDisconnectDialog(
HWND hwnd,
DWORD dwType
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER WNetDisconnectDialog IN mpr;
INTEGER hwnd,;
INTEGER dwType
|
 |
 |
 |
| Parameters: |
 |
hwnd
[in] Handle to the owner window for the dialog box.
dwType
[in] Resource type to disconnect from. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is NO_ERROR (0). |
 |
 |
| Usage: |
 |
#DEFINE RESOURCETYPE_DISK 1
= WNetDisconnectDialog(_screen.HWnd, DEFINE RESOURCETYPE_DISK)
|
 |
 |
| My comment: |
 |
If the user chooses OK in the dialog box, the requested network disconnection will have been made when the WNetDisconnectDialog function returns.
dwType -- only RESOURCETYPE_DISK is allowed. |
 |
 |
| Word Index links for the WNetDisconnectDialog : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-02-19 09:40:41 | | Modified: | 2009-01-30 12:47:47 | Visited in last 7 days: 13 |