IUPnPServiceAsync::EndSubscribeToEvents method (upnp.h)

The EndSubscribeToEvents method retrieves the results of a previous BeginSubscribeToEvents operation.

Syntax

HRESULT EndSubscribeToEvents(
  [in] ULONG64 ullRequestID
);

Parameters

[in] ullRequestID

A 64-bit ULONG value that corresponds to the BeginSubscribeToEvents operation requested prior to this call.

Return value

Returns S_OK on success. Otherwise, the method returns a COM error code defined in WinError.h or one of the following values:

Return code Description
UPNP_E_DEVICE_ERROR
The device received the request, but returned an error.
UPNP_E_DEVICE_TIMEOUT
The device has not responded within the 30 second time-out period.
UPNP_E_PROTOCOL_ERROR
The query did not complete due to problems at the UPnP protocol level.
UPNP_E_TRANSPORT_ERROR
The remote operation failed due to an HTTP problem. To retrieve the HTTP error code, use IUPnPService::LastTransportStatus.
 
Note  Some values can indicate that an error was received from a UPnP-certified device. For more information, see Device Error Codes.
 

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header upnp.h
DLL Upnp.dll

See also

BeginSubscribeToEvents

IUPnPService::LastTransportStatus

IUPnPServiceAsync