IUPnPServices::get_Count method (upnp.h)

The Count property specifies the number of services in the collection.

Syntax

HRESULT get_Count(
  [out] long *plCount
);

Parameters

[out] plCount

Receives a reference to the number of services in the collection.

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
UPNP_E_DOCUMENT_INVALID
The service description contained an error.
UPNP_E_EVENT_SUBSCRIPTION_FAILED
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

See also

IUPnPServices