Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sends a WS-Discovery Bye message and stops the host. After a host has been successfully stopped, it must be terminated with IWSDDeviceHost::Terminate before being released.
HRESULT Stop();
Possible return values include, but are not limited to, the following:
Return code | Description |
---|---|
|
Method completed successfully. |
|
The host has already stopped. |
|
The host is not initialized or the host is not started. |
When a device host is stopped using this method, all services remain attached but no inbound messages are processed or otherwise handled.
Calling Stop is not necessary if the host has not been started.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today