IWSDDeviceProxy::GetServiceProxyById method (wsdclient.h)

Retrieves a generic IWSDServiceProxy service proxy by service ID. Service IDs can be obtained by examining the service host metadata.

Syntax

HRESULT GetServiceProxyById(
  LPCWSTR          pszServiceId,
  IWSDServiceProxy **ppServiceProxy
);

Parameters

pszServiceId

The service ID.

ppServiceProxy

Pointer to an IWSDServiceProxy object for the specified service proxy.

Return value

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

Return code Description
S_OK
Method completed successfully.
E_POINTER
ppServiceProxy is NULL.
E_INVALIDARG
The length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or there is no metadata associated with the service specified by pszServiceId.
E_OUTOFMEMORY
Insufficient memory to complete the operation.
E_FAIL
There is no endpoint associated with the service proxy.

Requirements

   
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