Windows Dev Center

IUPnPServices::_NewEnum method

The _NewEnum property specifies either the IEnumVARIANT or IEnumUnknown enumerator interface for the collection.

Syntax


HRESULT _NewEnum(
  [out] LPUNKNOWN *ppunk
);

Parameters

ppunk [out]

Receives a reference to the enumerator interface.

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 codeDescription
UPNP_E_DOCUMENT_INVALID

The service description contained an error.

UPNP_E_EVENT_SUBSCRIPTION_FAILED

Failed to subscribe to the event source.

 

Remarks

This property is not visible in Visual Basic; use the for...each...next programming construct instead.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

None supported

Header

Upnp.h

DLL

Upnp.dll

See also

IUPnPServices

 

 

Community Additions

ADD
Show:
© 2015 Microsoft