Como se pega o n° serial do HD?

Delphi

20/03/2003

:wink: Preciso Saber como se pega o número serial do HD p/ meu esquema de senha. Se alguém sabe me falem por favorzão


Anonymous

Anonymous

Curtidas 0

Respostas

Dor_poa

Dor_poa

20/03/2003

Function SerialNum(FDrive:String) :String;
Var
Serial:DWord;
DirLen,Flags: DWord;
DLabel : Array[0..11] of Char;
begin
Try GetVolumeInformation(PChar(FDrive+´:\´),dLabel,12,@Serial,DirLen,Flags,nil,0);
Result := IntToHex(Serial,8);
Except Result :=´´;
end;
end;


GOSTEI 0
POSTAR