RemoveConnectionFromSession

The RemoveConnectionFromSession method instructs the miniport driver that manages an iSCSI initiator HBA to remove a connection from a logon session.

The iSCSI initiator (that is, the virtual miniport driver) does not support sessions with multiple connections. Do not use RemoveConnectionFromSession with the iSCSI initiator.

The RemoveConnectionFromSession method will not remove the last connection from a session. You should close sessions with a single connection with the LogoutFromTarget method.

RemoveConnectionFromSession belongs to the unpublished MSiSCSI_Operations WMI class. For a description of the parameters of the RemoveConnectionFromSession method, see the member descriptions for the RemoveConnectionFromSession_IN and RemoveConnectionFromSession_OUT structures.

Miniport drivers that implement the MSiSCSI_Operations WMI class must support this method.