IWSDDeviceProxy::GetServiceProxyByType method (wsdclient.h)
Retrieves a generic IWSDServiceProxy proxy for a service exposed by the device by port type name.
HRESULT GetServiceProxyByType( [in] const WSDXML_NAME *pType, [out] IWSDServiceProxy **ppServiceProxy );
Reference to a WSDXML_NAME structure that specifies the port type name.
Pointer to the IWSDServiceProxy object associated with the specified service.
Possible return values include, but are not limited to, the following:
||Method completed successfully.|
||pType or ppServiceProxy is NULL.|
||There is no metadata associated with the service specified by pType.|
||Insufficient memory to complete the operation.|
||There is no endpoint associated with the service proxy.|
If the device hosts more than one service of the specified type, a proxy for any one of the services may be returned. In such a case, callers should not depend on any particular service proxy being returned.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||wsdclient.h (include Wsdapi.h)|