 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-12-22 10:32:48 | | Modified: | 2008-12-22 10:39:41 | Visited in last 7 days: 15 |