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_Get_Sibling_Ex
..msdn    Add comment     W32 Constants      Translate this page
Obtains a device instance handle to the next sibling node of a specified device node, in a local or a remote machine"s device tree.
Code examples:
Enumerating devices installed on the local machine
Disconnecting USB Mass Storage Device programmatically
Declaration:
CMAPI CONFIGRET WINAPI
    CM_Get_Sibling_Ex(
    OUT PDEVINST pdnDevInst,
    IN DEVINST DevInst,
    IN ULONG ulFlags,
    IN HMACHINE hMachine
);
FoxPro declaration:
DECLARE INTEGER CM_Get_Sibling_Ex IN cfgmgr32;
    INTEGER @pdnDevInst,;
    INTEGER DevInst,;
    LONG ulFlags,;
    INTEGER hMachine
Parameters:
pdnDevInst
Caller-supplied pointer to the device instance handle to the sibling node that this function retrieves. The retrieved handle is bound to the machine handle specified by hMachine.

DevInst
Caller-supplied device instance handle that is bound to the machine handle specified by hMachine.

ulFlags
Not used, must be zero.

hMachine
Caller-supplied machine handle to which the caller-supplied device instance handle is bound.
Return value:
If the operation succeeds, the function returns CR_SUCCESS (0).
Usage:
hNext=0
IF CM_Get_Sibling_Ex(@hNext, hCurrent, 0,;
    THIS.DevViewer.hMachine) <> CR_SUCCESS
    EXIT
ENDIF
My comment:
The CM_Get_Child_Ex and the CM_Get_Sibling_Ex calls make possible to enumerate all device nodes in the device tree for a machine specified by the mean of CM_Connect_Machine call.

See also: CM_Connect_Machine, CM_Get_Child_Ex
Word Index links for the CM_Get_Sibling_Ex :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-22 10:32:48
Modified: 2008-12-22 10:39:41
Visited in last 7 days: 24
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 (54.158.212.93)
8 sec.Function: 'AVIFileRelease'
16 sec.Function: 'SetTimeZoneInformation'
22 sec.
Function group: 'Window Class'
30 sec.Function: 'SCardReleaseContext'
37 sec.Function: 'FindCloseUrlCache'
46 sec.Function: 'AVIStreamGetFrame'
57 sec.Function: 'DuplicateHandle'
1.15 min.Function: 'SetVolumeMountPoint'
1.33 min.Function: 'WNetGetLastError'
1.48 min.Function: 'GetTcpStatistics'
Google
Advertise here!