SoftAuthorizeGetHddInfo 方法 |
获得硬盘信息
命名空间:
HslCommunication.BasicFramework
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static SoftAuthorizeHardDiskInfo GetHddInfo(
byte driveIndex = 0
)
Public Shared Function GetHddInfo (
Optional driveIndex As Byte = 0
) As SoftAuthorizeHardDiskInfo
public:
static SoftAuthorizeHardDiskInfo GetHddInfo(
unsigned char driveIndex = 0
)
static member GetHddInfo :
?driveIndex : byte
(* Defaults:
let _driveIndex = defaultArg driveIndex 0
*)
-> SoftAuthorizeHardDiskInfo
参数
- driveIndex (Optional)
- 类型:SystemByte
硬盘序号
返回值
类型:
SoftAuthorizeHardDiskInfo硬盘信息
备注
by sunmast for everyone
thanks lu0 for his great works
在Windows Array8/ME中,S.M.A.R.T并不缺省安装,请将SMARTVSD.VXD拷贝到%SYSTEM%\IOSUBSYS目录下。
在Windows 2000/2003下,需要Administrators组的权限。
示例
AtapiDevice.GetHddInfo()
参见