IUPnPServiceAsync::EndInvokeAction method (upnp.h)
The EndInvokeAction method retrieves the results of a previous BeginInvokeAction operation and retrieves the resultant output arguments.
Syntax
HRESULT EndInvokeAction(
[in, out] ULONG64 ullRequestID,
[in, out] VARIANT *pvOutActionArgs,
[in] VARIANT *pvRetVal
);
Parameters
[in, out] ullRequestID
On input, contains a reference to an empty array. On output, receives a reference to the array of service-specific output arguments. In the event the action doesn't have output arguments, this parameter contains an empty array.
[in, out] pvOutActionArgs
On input contains a reference to an empty array. On output, receives a reference to a VARIANT that contains the return value of the invoked action.
[in] pvRetVal
A 64-bit ULONG value that corresponds to the BeginInvokeAction operation initiated 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 |
---|---|
|
The device has not responded within the 30 second time-out period. |
|
An unknown error has occurred. |
|
One or more of the arguments passed is invalid. |
|
This action is not supported by the device. |
|
The device has sent a response that cannot be processed; for example, the response was corrupted. |
|
An error occurred at the UPnP control-protocol level. |
|
An HTTP error occurred. Use the IUPnPService::LastTransportStatus property to obtain the actual HTTP status code.
Note This error code is also returned when the SOAP response exceeds 100 kilobytes.
|
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 |