LoginToTarget_OUT structure (iscsiop.h)

The LoginToTarget_OUT structure holds the output data for the LoginToTarget method.

Syntax

typedef struct _LoginToTarget_OUT {
  ULONG     Status;
  ULONGLONG UniqueSessionId;
  ULONGLONG UniqueConnectionId;
} LoginToTarget_OUT, *PLoginToTarget_OUT;

Members

Status

On output from LoginToTarget, the status of the LoginToTarget operation. For a list of status qualifiers, see ISCSI_STATUS_QUALIFIERS.

UniqueSessionId

A 64-bit integer that uniquely identifies the session. The LoginToTarget and AddConnectionToSession methods both return this value in their UniqueSessionId parameter. The unique session identifier (ID) does not change until the initiator logs off of the session. The session ID that the iSCSI initiator service exposes to user-mode software is a 128-bit number. The top (most significant) 64 bits consist of a unique adapter ID that the initiator reports in the UniqueAdapterId member of the MSiSCSI_HBAInformation class. The lower (least significant) 64 bits correspond to the value in UniqueSessionId. When the service communicates with the adapter, the service uses the lower 64 bits (UniqueSessionId), while user-mode software uses all of the 128 bits to communicate with the iSCSI initiator service.

UniqueConnectionId

On output from LoginToTarget, a 64-bit integer that uniquely identifies the connection. The connection ID that the iSCSI initiator service exposes to user-mode software is a 128-bit number. The top (most significant) 64 bits consist of a unique adapter ID that the initiator reports in the UniqueAdapterId member of the MSiSCSI_HBAInformation class. The lower (least significant) 64 bits correspond to the value in UniqueConnectionId. When the service communicates with the adapter, the service uses the lower 64 bits (UniqueConnectionId), while user-mode software uses all the 128 bits to communicate with the iSCSI initiator service.

Remarks

You must implement this method.

Requirements

Requirement Value
Header iscsiop.h (include Iscsiop.h)

See also

AddConnectionToSession

ISCSI_STATUS_QUALIFIERS

LoginToTarget

LoginToTarget_IN

MSiSCSI_HBAInformation

MSiSCSI_Operations WMI Class