Stop Method

IWSDDeviceHost::Stop method

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.

Syntax


HRESULT Stop();

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.

S_FALSE

The host has already stopped.

E_FAIL

The host is not initialized or the host is not started.

 

Remarks

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdHost.h (include Wsdapi.h)

IDL

WsdHost.idl

DLL

Wsdapi.dll

See also

IWSDDeviceHost

 

 

Community Additions

ADD
Show:
© 2016 Microsoft