線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1931
推到 Plurk!
推到 Facebook!

如何抓到硬碟的model name 呢?

答題得分者是:axsoft
palw
初階會員


發表:45
回覆:89
積分:26
註冊:2003-02-24

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-07-25 17:12:22 IP:211.78.xxx.xxx 未訂閱
請問: 我要怎麼去得到硬碟的Model name的值呢?
axsoft
版主


發表:681
回覆:1056
積分:969
註冊:2002-03-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-08-07 17:28:59 IP:61.218.xxx.xxx 未訂閱
引言: 請問: 我要怎麼去得到硬碟的Model name的值呢?
palw 您好:    試試這個元件
http://home.earthlink.net/~akonshin/delphi_components.htm    IdeSN - extract IDE hard disk serial number 
This is simple console application that use DeviceIoControl function to extract IDE hard disk serial number.
下載: http://home.earthlink.net/~akonshin/files/IdeInfo2.zip    ScsiSN - extract SCSI-2 device serial number 
This is simple console application that use DeviceIoControl function to extract SCSI-2 device serial number
下載:http://home.earthlink.net/~akonshin/files/ScsiSN.zip    相關文章
IDE harddisk serial number - Using S.M.A.R.T. IOCTL API By Alex Konshin http://www.latiumsoftware.com/en/pascal/0044.php Most FAQs recommend the use of GetVolumeInformation for getting the "hard disk serial number", but what this function actually gets is the volume serial number, not the manufacturer's hard disk serial number. The volume serial no. is assigned and changed during the formatting of the partition. Some companies use cloning tools for installing software on all new computers, copying from one hard disk to all the others. Of course, the volume serial numbers for these disks are identical. You can get the real serial number of IDE hard disk, model name, firmware revision, and other IDE hard disk information using the S.M.A.R.T. IOCTL API. HAVE A NICE DAY FOR YOU 發表人 - axsoft 於 2003/08/07 17:33:35
palw
初階會員


發表:45
回覆:89
積分:26
註冊:2003-02-24

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-08-11 11:12:50 IP:211.78.xxx.xxx 未訂閱
謝謝您的幫忙 
shchen
一般會員


發表:12
回覆:27
積分:7
註冊:2003-08-13

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-08-19 01:27:43 IP:202.52.xxx.xxx 未訂閱
palw 您好: 你也可以使用Win API GetVolumeInformation()指令來達成,如下!! void __fastcall TForm1::Button1Click(TObject *Sender) { char lpVolName[200],lpFSNameBuff[50]; char *DriverName="c:\\"; DWORD dwVolSer,lpMaxComLen,lpFSFlags; GetVolumeInformation(DriverName,lpVolName,200,&dwVolSer,&lpMaxComLen,&lpFSFlags,lpFSNameBuff,50); Label1->Caption=DriverName; //磁碟編號 Label2->Caption=lpVolName; //磁碟名稱 Label3->Caption=IntToHex(__int64(dwVolSer),8); //磁碟序號 Label4->Caption=lpFSNameBuff; //檔案系統 }
syntax
尊榮會員


發表:26
回覆:1139
積分:1258
註冊:2002-04-23

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-11-14 22:01:22 IP:203.203.xxx.xxx 未訂閱
引言: palw 您好: 你也可以使用Win API GetVolumeInformation()指令來達成,如下!! void __fastcall TForm1::Button1Click(TObject *Sender) { char lpVolName[200],lpFSNameBuff[50]; char *DriverName="c:\\"; DWORD dwVolSer,lpMaxComLen,lpFSFlags; GetVolumeInformation(DriverName,lpVolName,200,&dwVolSer,&lpMaxComLen,&lpFSFlags,lpFSNameBuff,50); Label1->Caption=DriverName; //磁碟編號 Label2->Caption=lpVolName; //磁碟名稱 Label3->Caption=IntToHex(__int64(dwVolSer),8); //磁碟序號 Label4->Caption=lpFSNameBuff; //檔案系統 }
這位大哥,你看不懂英文喔 axsoft 已經寫的很請楚 GetVolumeInformation 所取得的序號,只是 hard disk serial number 不是 manufacturer's hard disk serial number
系統時間:2024-05-04 8:50:19
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!