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(
[in] LPCWSTR pszServiceId,
[out] IWSDServiceProxy **ppServiceProxy
);
Parameters
[in] pszServiceId
The service ID.
[out] 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 |
---|---|
|
Method completed successfully. |
|
ppServiceProxy is NULL. |
|
The length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or there is no metadata associated with the service specified by pszServiceId. |
|
Insufficient memory to complete the operation. |
|
There is no endpoint associated with the service proxy. |
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 |