Compartir a través de


MSIscsiInitiator_DeviceOnSession class

The MSIscsiInitiator_DeviceOnSession structure describes the characteristics of a device currently associated with a session.

Syntax

class MSIscsiInitiator_DeviceOnSession
{
  string InitiatorName;
  string TargetName;
  uint8  ScsiPortNumber;
  uint8  ScsiPathId;
  uint8  ScsiTargetId;
  uint8  ScsiLun;
  string DeviceInterfaceGuid;
  string DeviceInterfaceName;
  string LegacyName;
  uint32 DeviceType;
  uint32 DeviceNumber;
  uint32 PartitionNumber;
};

Members

The MSIscsiInitiator_DeviceOnSession class has these types of members:

Properties

The MSIscsiInitiator_DeviceOnSession class has these properties.

DeviceInterfaceGuid

Data type: string

Access type: Read-only

The global unique identifier for the Plug-and-Play device interface. Device interface class GUIDs include, but are not limited to, the following:

Value 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

Data type: string

Access type: Read-only

The name of the Plug-and-Play device interface.

DeviceNumber

Data type: uint32

Access type: Read-only

The device number.

DeviceType

Data type: uint32

Access type: Read-only

The FILE_DEVICE_XXX type for this device.

InitiatorName

Data type: string

Access type: Read-only

The name of the Initiator.

LegacyName

Data type: string

Access type: Read-only

The name of the Legacy Device interface.

PartitionNumber

Data type: uint32

Access type: Read-only

If the device is partitionable, the partition number of the device. Otherwise this property has a default value of -1

ScsiLun

Data type: uint8

Access type: Read-only

The Operating System designated SCSI Logical Unit Number (LUN)

ScsiPathId

Data type: uint8

Access type: Read-only

The Operating System designated SCSI path identifier or bus number

ScsiPortNumber

Data type: uint8

Access type: Read-only

The Operating System designated SCSI port number.

ScsiTargetId

Data type: uint8

Access type: Read-only

The Operating System designated SCSI Target ID.

TargetName

Data type: string

Access type: Read-only

The name of the Target.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\WMI
MOF
Iscsidsc.mof