MS_SM_ScsiInformationMethods clase WMI
Un controlador de miniporte HBA que admite storage Management API usa la clase WMI de MS_SM_ScsiInformationMethods para enviar comandos SCSI. Esta clase WMI no tiene bloques de datos. Por lo tanto, el conjunto de herramientas WMI genera estructuras que contienen datos de parámetros para los métodos que pertenecen a la clase , pero no genera una estructura que corresponde a la propia clase.
La sintaxis MOF para cada método que pertenece a esta clase se describe en la página de referencia del método . En los temas siguientes se describen estos métodos y sus estructuras complementarias:
La clase MS_SM_ScsiInformationMethods se define de la siguiente manera en Hbaapi.mof:
class MS_SM_ScsiInformationMethods
{
[key]
string InstanceName;
boolean Active;
[Implemented, WmiMethodId(1)]
void SM_ScsiInquiry(
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DomainPortWWN[8],
[in, HBAType("HBA_SCSILUN")]
uint64 SmhbaLUN,
[in ]
uint8 Cdb[6],
[in ]
uint32 InRespBufferMaxSize,
[in ]
uint32 InSenseBufferMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out]
uint8 ScsiStatus,
[out]
uint32 OutRespBufferSize,
[out]
uint32 OutSenseBufferSize,
[out, WmiSizeIs("OutRespBufferSize") ]
uint8 RespBuffer[],
[out, WmiSizeIs("OutSenseBufferSize") ]
uint8 SenseBuffer[]
);
[Implemented, WmiMethodId(2)]
void SM_ScsiReportLuns(
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DomainPortWWN[8],
[in ]
uint8 Cdb[12],
[in ]
uint32 InRespBufferMaxSize,
[in ]
uint32 InSenseBufferMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out]
uint8 ScsiStatus,
[out]
uint32 TotalRespBufferSize,
[out]
uint32 OutRespBufferSize,
[out]
uint32 OutSenseBufferSize,
[out, WmiSizeIs("OutRespBufferSize") ]
uint8 RespBuffer[],
[out, WmiSizeIs("OutSenseBufferSize") ]
uint8 SenseBuffer[]
);
[Implemented, WmiMethodId(3)]
void SM_ScsiReadCapacity(
[in, HBAType("HBA_WWN")] uint8 HbaPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DiscoveredPortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DomainPortWWN[8],
[in, HBAType("HBA_SCSILUN")]
uint64 SmhbaLUN,
[in ]
uint8 Cdb[16],
[in ]
uint32 InRespBufferMaxSize,
[in ]
uint32 InSenseBufferMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out]
uint8 ScsiStatus,
[out]
uint32 OutRespBufferSize,
[out]
uint32 OutSenseBufferSize,
[out, WmiSizeIs("OutRespBufferSize") ]
uint8 RespBuffer[],
[out, WmiSizeIs("OutSenseBufferSize") ]
uint8 SenseBuffer[]
);
};