IUPnPServices::get_Item method (upnp.h)
The Item property specifies the IUPnPService interface for a service, identified by the service ID, in the collection.
Syntax
HRESULT get_Item(
[in] BSTR bstrServiceId,
[out] IUPnPService **ppService
);
Parameters
[in] bstrServiceId
Specifies a service in the collection.
[out] ppService
Receives a reference to an IUPnPService interface for the specified service.
Return value
For C++: If this property's "get" method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes defined in WinError.h, or one of the following UPnP-specific return values.
Return code | Description |
---|---|
|
The service description contained an error. |
|
Failed to subscribe to the event source. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | upnp.h |
DLL | Upnp.dll |