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.
Terminates the host and releases any attached services. If a notification sink was passed to the Start method, then the notification sink is released.
HRESULT Terminate();
Possible return values include, but are not limited to, the following:
Return code | Description |
---|---|
|
Method completed successfully. |
|
The host is uninitialized or the host has already been terminated. |
Services and notification sinks will not receive messages after the Terminate method has completed.
If this device host was started by calling IWSDDeviceHost::Start, it must first be stopped by calling IWSDDeviceHost::Stop before Terminate can be called.
Terminate must be called before releasing the IWSDDeviceHost.
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