IWSDTransportAddress::SetTransportAddress method (wsdbase.h)
Sets the string representation of the transport address. The format of the string varies, and is determined by the implementing interface (either IWSDHttpAddress or IWSDUdpAddress).
Syntax
HRESULT SetTransportAddress(
[in] LPCWSTR pszAddress
);
Parameters
[in] pszAddress
String representation of the transport address.
Return value
This method can return one of these values.
Possible return values include, but are not limited to, the following:
Return code | Description |
---|---|
|
Method completed successfully. |
|
The length in characters of the address string pointed to by ppszAddress exceeds WSD_MAX_TEXT_LENGTH (8192), ppszAddress is NULL, or the format of ppszAddress was not recognized. |
|
Insufficient memory to complete the operation. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdbase.h (include Wsdapi.h) |
DLL | Wsdapi.dll |