IWSDDeviceHost::Terminate Method

Terminates the host and releases any attached services. If a notification sink was passed to the Start method, then the notification sink is released.

Syntax

C++
HRESULT Terminate();

Parameters

This method has no parameters.

Return Value

Possible return values include, but are not limited to, the following:

Return codeDescription
S_OK

Method completed successfully.

E_FAIL

The host is uninitialized or the host has already been terminated.

 

Remarks

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.

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWsdHost.h (include Wsdapi.h)
IDLWsdHost.idl
DLLWsdapi.dll

See Also

IWSDDeviceHost

Send comments about this topic to Microsoft

Build date: 11/6/2009

Tags :


Page view tracker