获得硬件标识例如:CPU、硬盘的标识
请问大虾VB或winapi里有没有函数可以获得硬件标识例如:CPU、硬盘的标识 Function GetSerialNumber(strDrive As String) As Long<BR>Dim SerialNum As Long<BR>Dim Res As Long<BR>Dim Temp1 As String<BR>Dim Temp2 As String<BR>Temp1 = String$(255, Chr$(0))<BR>Temp2 = String$(255, Chr$(0))<BR>Res = GetVolumeInformation(strDrive, Temp1, Len(Temp1), SerialNum, 0, 0, Temp2, _<BR>Len(Temp2))<BR>GetSerialNumber = SerialNum<BR>End Function<BR>调用形式 Label1.Caption = GetSerialNumber("c:\") 兄弟,谢谢,获取硬盘标识我已经查到了,但是还没查到获取CPU序列号的函数,请问知道否? 我有一个,不过是封装好的dll库,不知道你要不要,要的话我给你发过去.
页:
[1]