I
iapollo
Unregistered / Unconfirmed
GUEST, unregistred user!
在程序中这个dll是这么调用的<br>unit DiskSerial;<br><br>interface<br><br>type DISK_SERIAL = record<br> lpSerialNumber : array[0..31] of char;<br> lpModelNumber : array[0..31] of char;<br> lpRevisionNumber : array[0..31] of char;<br> lBufferSize : integer;<br> lCylinders : integer;<br> lHeads : integer;<br> lSectors : integer;<br>end;<br><br><br>function GetDiskSerial(nDrive:integer; var lpDiskSerialISK_SERIAL; lpRegNumberChar): LongBool;stdcall external 'DiskSerial.dll';<br><br><br>implementation<br><br>end.<br>现在我自己来写一个dll来替换这个dll。lpDiskSerial由自己随便输,如'abcdefgh'.