Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
);
[in] pType
Reference to a WSDXML_NAME structure that specifies the port type name.
[out] ppServiceProxy
Pointer to the IWSDServiceProxy object associated with the specified service.
Possible return values include, but are not limited to, the following:
Return code | Description |
---|---|
|
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.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today