IWSDDeviceHost::SetServiceDiscoverable method (wsdhost.h)
Controls whether or not the service is advertised using WS-Discovery.
Syntax
HRESULT SetServiceDiscoverable(
[in] LPCWSTR pszServiceId,
[in] BOOL fDiscoverable
);
Parameters
[in] pszServiceId
The ID for the service.
[in] fDiscoverable
TRUE if the service can be found using WS-Discovery, FALSE if the service is not visible to WS-Discovery.
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. |
|
pszServiceId is NULL, the length in characters of pszServiceId exceeds WSD_MAX_TEXT_LENGTH (8192), or pszServiceId does not correspond to a registered service. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdhost.h (include Wsdapi.h) |
DLL | Wsdapi.dll |