IUPnPServiceAsync::EndQueryStateVariable method (upnp.h)
The EndQueryStateVariable method retrieves the results of a previous BeginQueryStateVariable operation and retrieves the resultant service-specific state variable value.
Syntax
HRESULT EndQueryStateVariable(
[in] ULONG64 ullRequestID,
[out, retval] VARIANT *pValue
);
Parameters
[in] ullRequestID
Pointer to a 64-bit ULONG value that corresponds to the BeginQueryStateVariable operation initiated prior to this call.
[out, retval] pValue
On input, contains an empty array. On output, receives a reference to the value of the variable specified in BeginQueryStateVariable by bstrVariableName. The type of the data returned depends on the state variable for which the query was invoked.
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 state variable is not evented and the remote query returned an error code. This is not a transport error; the device received the request, but it returned an error. |
|
The requested state variable does not exist. |
|
The device has not responded within the 30 second time-out period. |
|
One or more of the arguments passed with vInActionArgs is invalid. |
|
The query did not complete because of problems at the UPnP protocol level. |
|
The state variable is not evented and the remote query for the value failed because of an HTTP problem. To retrieve the HTTP error code, use IUPnPService::LastTransportStatus. |
|
The state variable is evented, but the UPnP software cannot return a value because it is still waiting for an event notification. |
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 |