IConnector::Disconnect method

The Disconnect method disconnects this connector from another connector.

Syntax


HRESULT Disconnect();

Parameters

This method has no parameters.

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return codeDescription
E_NOTFOUND

This connector is already disconnected.

HRESULT_FROM_WIN32(ERROR_FILE_READ_ONLY)

A permanent connection cannot be disconnected. For information about this macro, see the Windows SDK documentation.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Devicetopology.h

See also

IConnector Interface

 

 

Show: