ISCSI_DEVICE_ON_SESSION structure

The ISCSI_DEVICE_ON_SESSION structure specifies multiple methods for identifying a device associated with an iSCSI login session.

Syntax


typedef struct _ISCSI_DEVICE_ON_SESSION {
  TCHAR                 InitiatorName[MAX_ISCSI_HBANAME_LEN];
  TCHAR                 TargetName[MAX_ISCSI_NAME_LEN + 1];
  SCSI_ADDRESS          ScsiAddress;
  GUID                  DeviceInterfaceType;
  TCHAR                 DeviceInterfaceName[MAX_PATH];
  TCHAR                 LegacyName[MAX_PATH];
  STORAGE_DEVICE_NUMBER StorageDeviceNumber;
  DWORD                 DeviceInstance;
} ISCSI_DEVICE_ON_SESSION, *PISCSI_DEVICE_ON_SESSION;

Members

InitiatorName

A string that indicates the initiator name.

TargetName

A string that indicates the target name.

ScsiAddress

A SCSI_ADDRESS structure that contains the SCSI address of the device.

DeviceInterfaceType

A GUID that specifies the device interface class associated with the device. Device interface class GUIDs include, but are not limited to, the following:

GUIDType of Device
GUID_DEVINTERFACE_DISKDisk
GUID_DEVINTERFACE_TAPETape
GUID_DEVINTERFACE_CDROMCD-ROM
GUID_DEVINTERFACE_WRITEONCEDISKWrite Once Disk
GUID_DEVINTERFACE_CDCHANGERCD Changer
GUID_DEVINTERFACE_MEDIUMCHANGERMedium Changer
GUID_DEVINTERFACE_FLOPPYFloppy

 

DeviceInterfaceName

A string that specifies the name of the device interface class.

LegacyName

A string that specifies the legacy device name.

StorageDeviceNumber

A STORAGE_DEVICE_NUMBER structure containing the storage device number.

DeviceInstance

A handle to the instance of the device in the devnode tree. For information on the cfgmgr32Xxx functions that utilize this handle, see PnP Configuration Manager Functions.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Iscsidsc.h

Unicode and ANSI names

ISCSI_DEVICE_ON_SESSIONW (Unicode) and ISCSI_DEVICE_ON_SESSIONA (ANSI)

See also

SCSI_ADDRESS
STORAGE_DEVICE_NUMBER

 

 

Community Additions

ADD
Show: