RemoveIscsiConnection function

The RemoveIscsiConnection function removes a connection from an active session.

Syntax


HRESULT WINAPI RemoveIscsiConnection(
  _In_  PISCSI_UNIQUE_SESSION_ID UniqueSessionId,
  _In_  PISCSI_UNIQUE_CONNECTION_ID UniqueConnectionId
);

Parameters

UniqueSessionId [in]

A pointer to a structure of type ISCSI_UNIQUE_SESSION_ID that specifies the unique session identifier of the session that the connection belongs to.

UniqueConnectionId [in]

A pointer to a structure of type ISCSI_UNIQUE_CONNECTION_ID that specifies the connection to remove.

Return value

Returns ERROR_SUCCESS if the operation succeeds. Otherwise, it returns the appropriate Win32 or iSCSI error code.

Remarks

The RemoveIscsiConnection function will not remove the last connection of a session or the leading connection of a session. The caller must close the session by calling LogoutIscsiTarget to remove the last connection.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Iscsidsc.h

Library

Iscsidsc.lib

DLL

Iscsidsc.dll

See also

LogoutIscsiTarget

 

 

Community Additions

ADD
Show:
© 2014 Microsoft