IWCNDevice::Unadvise method (wcndevice.h)

The IWCNDevice::Unadvise method removes any callback previously set via IWCNDevice::Connect.

Syntax

HRESULT Unadvise();

Return value

This method does not return a value.

Remarks

It is not necessary to call IWCNDevice::Unadvise unless the application is shutting down and must ensure that no more callbacks are received on its IWCNConnectNotify callback. Do not call IWCNDevice::Unadvise from within an IWCNConnectNotify callback, since that will cause a deadlock. Note that IWCNDevice::Unadvise does not cancel the connect operation on the wire.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wcndevice.h

See also

IWCNConnectNotify

IWCNDevice

IWCNDevice::Connect