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_Locate_DevNode_Ex
..msdn    Add comment     W32 Constants      Translate this page
Obtains a device instance handle to the device node that is associated with a specified device instance identifier, on a local machine or a remote machine.
Code examples:
Enumerating devices installed on the local machine
Disconnecting USB Mass Storage Device programmatically
Declaration:
CMAPI CONFIGRET WINAPI
    CM_Locate_DevNode_Ex(
    OUT PDEVINST pdnDevInst,
    IN DEVINSTID pDeviceID,
    OPTIONAL IN ULONG ulFlags,
    IN HMACHINE hMachine
);
FoxPro declaration:
DECLARE INTEGER CM_Locate_DevNode_Ex IN cfgmgr32;
    INTEGER @pdnDevInst,;
    INTEGER pDeviceID,;
    LONG ulFlags,;
    INTEGER hMachine
Parameters:
pdnDevInst
A pointer to the device instance handle that this function retrieves. The retrieved handle is bound to the machine handle specified by hMachine.

pDeviceID
A pointer to a NULL-terminated string representing a device instance identifier.

ulFlags
A variable of ULONG type that supplies one of the predefined flag values.

hMachine
A machine handle obtained from a call to CM_Connect_Machine, or a machine handle to which a device information set is bound.
Return value:
If the operation succeeds, CM_Locate_DevNode returns CR_SUCCESS (0).
Usage:
LOCAL hRoot
hRoot=0

* locates the root node for the device tree
= CM_Locate_DevNode_Ex(@hRoot, 0, 0, m.hMachine)
My comment:
See also: CM_Connect_Machine, CM_Get_Child_Ex, CM_Get_Sibling_Ex
Word Index links for the CM_Locate_DevNode_Ex :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-12-19 12:16:10
Modified: 2008-12-19 12:29:58
Visited in last 7 days: 22
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.196.8.177)
9 sec.
Function group: 'Color'
18 sec.
Function group: 'GDI+ Graphics'
27 sec.Function: 'CreateProcessAsUser'
36 sec.Function: 'GetComputerObjectName'
47 sec.Function: 'FindClose'
59 sec.
Function group: 'Authorization'
1.2 min.Function: 'AddClipboardFormatListener'
1.37 min.Function: 'GetModuleFileName'
1.57 min.Function: 'GetCurrentThread'
1.73 min.
Function group: 'National Language Support'
Google
Advertise here!