IWSDiscoveryPublisher::SetAddressFamily method (wsddisco.h)
Specifies the IP address family (IPv4, IPv6, or both) over which the host will be published.
HRESULT SetAddressFamily( [in] DWORD dwAddressFamily );
The address family over which the host will be published.
||Publish the host over IPv4 addresses.|
||Publish the host over IPv6 addresses.|
||Publish the host over IPv4 and IPv6 addresses.|
Possible return values include, but are not limited to, the following:
||The method completed successfully.|
||dwAddressFamily has a value other than WSDAPI_ADDRESSFAMILY_IPV4, WSDAPI_ADDRESSFAMILY_IPV6, or WSDAPI_ADDRESSFAMILY_IPV4 | WSDAPI_ADDRESSFAMILY_IPV6.|
||The address family has already been set for this publisher.|
||The system does not support the address family specified by dwAddressFamily.|
This method must be called before a notification sink is attached to the publisher.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||wsddisco.h (include Wsdapi.h)|