IWSDiscoveryProvider::SetAddressFamily method (wsddisco.h)
Specifies the IP address family (IPv4, IPv6, or both) to search when discovering WSD devices.
Syntax
HRESULT SetAddressFamily(
[in] DWORD dwAddressFamily
);
Parameters
[in] dwAddressFamily
The address family to search when discovering devices.
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. |
|
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. |
Remarks
This method can be called only once on a provider. This method must be called before a notification sink is attached to the provider. That means SetAddressFamily must be called before Attach is called on a provider.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsddisco.h |
DLL | Wsdapi.dll |