IWSDServiceProxyEventing::EndSubscribeToMultipleOperations method (wsdclient.h)

Completes an asynchronous operation that subscribes to a collection of notifications or solicit/response events.

Syntax

HRESULT EndSubscribeToMultipleOperations(
  [in]  const WSD_OPERATION  *pOperations,
  [in]  DWORD                dwOperationCount,
  [out] IWSDAsyncResult      *pResult,
  [out] WSD_EVENTING_EXPIRES **ppExpires,
  [out] WSDXML_ELEMENT       **ppAny
);

Parameters

[in] pOperations

Pointer to an array of references to WSD_OPERATION structures that specify the subscribed operations.

[in] dwOperationCount

The number of elements in the array in pOperations.

[out] pResult

Pointer to an IWSDAsyncResult interface that represents the result of the requests upon completion.

[out] ppExpires

Pointer to a pointer to a WSD_EVENTING_EXPIRES structure that specfies the duration of the subscription. Upon completion, call WSDFreeLinkedMemory to free the memory. This parameter is optional.

[out] ppAny

Extensible data that the remote device can add to the subscription response. This allows services to provide additional customization of event subscriptions. When done, call WSDFreeLinkedMemory to free the memory. For details, see WSDXML_ELEMENT. This parameter is optional.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is designed to be exclusively called by generated proxy code.

The method is used to obtain the results from a previous asynchronous BeginSubscribeToMultipleOperations call.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDServiceProxyEventing