ISCSI_DEVICE_ON_SESSIONW Structure

ISCSI_DEVICE_ON_SESSIONW Structure

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

typedef struct _ISCSI_DEVICE_ON_SESSIONW {
WCHAR InitiatorName[MAX_ISCSI_HBANAME_LEN];
WCHAR TargetName[MAX_ISCSI_NAME_LEN + 1];
SCSI_ADDRESS ScsiAddress;
GUID DeviceInterfaceType;
WCHAR DeviceInterfaceName[MAX_PATH];
WCHAR LegacyName[MAX_PATH];
STORAGE_DEVICE_NUMBER StorageDeviceNumber;
DWORD DeviceInstance; } ISCSI_DEVICE_ON_SESSIONW,
*PISCSI_DEVICE_ON_SESSIONW;

Members

  • InitiatorName
    An UNICODE character string that indicates the initiator name.

  • TargetName
    An UNICODE character string that indicates the target name.

  • ScsiAddress
    A SCSI_ADDRESS-type structure that contains the SCSI address of the device.

  • DeviceInterfaceType
    A GUID that identifies the device interface class that is associated with the device. Device interface class GUIDs include (but are not limited to) the following:

    GUID Meaning

    GUID_DEVINTERFACE_DISK

    Disk

    GUID_DEVINTERFACE_TAPE

    Tape

    GUID_DEVINTERFACE_CDROM

    CD-ROM

    GUID_DEVINTERFACE_WRITEONCEDISK

    Write Once Disk

    GUID_DEVINTERFACE_CDCHANGER

    CD Changer

    GUID_DEVINTERFACE_MEDIUMCHANGER

    Medium Changer

    GUID_DEVINTERFACE_FLOPPY

    Floppy

  • DeviceInterfaceName
    An UNICODE string that specifies the name of the device interface class.

  • LegacyName
    An UNICODE string that specifies the legacy device name.

  • StorageDeviceNumber
    A STORAGE_DEVICE_NUMBER-type structure

  • DeviceInstance
    A handle to an instance of the device in the devnode tree. For information on the cfgmgr32Xxx routines that use this handle, see PnP Configuration Manager Functions.

Requirements

Client

Requires Windows Vista.

Server

Requires Windows Server 2008.

Header

Declared in Iscsidsc.h.

See Also

ISCSI_DEVICE_ON_SESSION

Send comments about this topic to Microsoft

Build date: 10/1/2007