Partager via


IWSDTransportAddress::GetTransportAddressEx (Windows Embedded CE 6.0)

1/6/2010

This method gets a pointer to a string representation of the address object. The format of the string varies, and is determined by the implementing interface (either IWSDHttpAddress or IWSDUdpAddress).

Syntax

HRESULT GetTransportAddressEx(
  BOOL fSafe,
  LPCWSTR* ppszAddress
);

Parameters

  • fSafe
    [in] Specifies whether the scope identifier for an IPv6 address is included in the returned ppszAddress string. For example, if the address object represents an IPv6 link local address and fSafe is FALSE, then the IPv6 scope identifier will be included in the returned ppszAddress string.

    If the address object represents an IPv4 address or a host name, this parameter is ignored.

  • ppszAddress
    [out] String representation of the address object. Do not deallocate this pointer.

Return Value

The following table shows the possible error code return values.

Error code Description

S_OK

This method completed successfully.

E_POINTER

ppszAddress is NULL.

S_FALSE

The transport address has not yet been set. To set the transport address, call IWSDTransportAddress::SetTransportAddress with a non-NULL address.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

IWSDTransportAddress
Web Services on Devices Interfaces