IUPnPDevice::Children

This method returns all the child devices of the device. The devices are returned in an IUPnPDevices:IDispatch collection.

HRESULT get_Children(
  IUPnPDevices** ppudChildren
);

Parameters

  • ppudChildren
    [out] Receives a reference to an IUPnPDevices:IUnknown collection that enumerates the child devices of the device. This reference must be released when it is no longer required.

    If the device has no child devices, the collection is empty.

Return Values

  • S_OK
    This method was successful.

Otherwise, the method returns one of the COM error codes defined in WinError.h.

Remarks

To determine if a device has any children without using IUPnPDevice::Children, use IUPnPDevice::HasChildren.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Upnp.h.
Link Library: Uuid.lib.

See Also

IUPnPDevice:IDispatch | IUPnPDevice::HasChildren | IUPnPDevices:IDispatch

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.