IWSDDeviceProxy::EndGetMetadata method (wsdclient.h)

Ends an asynchronous request for metadata and returns the metadata related to a device.

Syntax

HRESULT EndGetMetadata(
  [in] IWSDAsyncResult *pResult
);

Parameters

[in] pResult

The IWSDAsyncResult object returned by BeginGetMetadata.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_INVALIDARG
pResult is NULL.
E_ABORT
The method could not be completed.
E_FAIL
The method failed. The metadata was not returned, was invalid, or a fault was generated.
E_OUTOFMEMORY
Insufficient memory to complete the operation.

Remarks

EndGetMetadata must only be called after the IWSDAsyncResult object returned by BeginGetMetadata has indicated that the operation is complete. Once EndGetMetadata has been called, the results of the latest metadata retrieval are accessible through the GetAllMetadata, GetHostMetadata, GetThisDeviceMetadata, and GetThisModelMetadata methods.

Requirements

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

See also

IWSDDeviceProxy