LogoutIscsiTarget function

The LogoutIscsiTarget routine closes the specified login session.

Syntax


HRESULT WINAPI LogoutIscsiTarget(
  _In_ PISCSI_UNIQUE_SESSION_ID UniqueSessionId
);

Parameters

UniqueSessionId [in]

A pointer to a structure of type ISCSI_UNIQUE_SESSION_ID that contains a unique session identifier for the login session end.

Return value

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

Remarks

If the login session is not for informational purposes, the iSCSI initiator service ensures that all devices associated with the session can be safely removed from the device stack before allowing the initiator to close the session. If the session is an informational session, the iSCSI initiator service closes the session immediately.

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

ISCSI_UNIQUE_SESSION_ID
LoginIscsiTarget

 

 

Community Additions

ADD
Show: