Using Win32 functions in Visual FoxPro Image Gallery
PnP Configuration Manager
CM_Connect_Machine
CM_Disconnect_Machine
CM_Get_Child_Ex
CM_Get_Sibling_Ex
CM_Locate_DevNode_Ex
CM_Request_Device_Eject_Ex
Code examples:
Disconnecting USB Mass Storage Device programmatically
Enumerating devices installed on the local machine
CM_Disconnect_Machine
..msdn    Add comment     W32 Constants      Translate this page
Removes a connection to a remote machine established in a previous call to CM_Connect_Machine.
Code examples:
Enumerating devices installed on the local machine
Disconnecting USB Mass Storage Device programmatically
Declaration:
CMAPI CONFIGRET WINAPI
    CM_Disconnect_Machine(
    IN HMACHINE hMachine
);
FoxPro declaration:
DECLARE INTEGER CM_Disconnect_Machine IN cfgmgr32;
    INTEGER hMachine

Parameters:
hMachine
Caller-supplied machine handle, obtained from a previous call to CM_Connect_Machine.
Return value:
If the operation succeeds, the function returns CR_SUCCESS (0).
Usage:
LOCAL cMachine, hMachine
hMachine=0
cMachine = "\\"+SUBSTR(SYS(0), 1, AT(" ",SYS(0))-1)

= CM_Connect_Machine(cMachine, @hMachine)

. . .

= CM_Disconnect_Machine(m.hMachine)
My comment:
See also: CM_Connect_Machine
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-19 12:13:22
Modified: 2008-12-19 12:15:43
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.20.86.177)
5 sec.Function: 'AVIStreamTimeToSample'
10 sec.Function: 'DestroyMenu'
16 sec.Function: 'EnumForms'
22 sec.Function: 'ExitProcess'
27 sec.Function: 'FindFirstFile'
33 sec.Function: 'CreatePipe'
38 sec.
Function group: 'Virtual Hard Disk (Win7)'
43 sec.Function: 'CreateFileMapping'
50 sec.Function: 'GetFullPathName'
56 sec.Function: 'EnumPrintProcessors'
Google
Advertise here!