Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Starting a dialog box for connecting to network resources (mapping network drive)
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:
Starting a dialog box for connecting to network resources (mapping network drive)
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-19 09:40:41
Modified: 2009-01-30 12:47:47
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (184.73.17.193)
14 sec.Function: 'SetFilePointer'
24 sec.Function: 'SHFileOperation'
Google
Advertise here!