Fórum Volume do disco rigido #171005
23/07/2003
0
Olá pessoal,
Alguém tem alguma função que retorne o valor do disco rigido?
sd
Wizard
Alguém tem alguma função que retorne o valor do disco rigido?
sd
Wizard
Wizard
Curtir tópico
+ 0
Responder
Posts
24/07/2003
Mabel
Tente o seguinte:
Function SeriedoDisco(Drive:String):String;
Var
Serial:DWord;
DirLen,Flags: DWord;
DLabel : Array[0..11] of Char;
begin
GetVolumeInformation(PChar(Drive+´:\´),dLabel,12,@Serial,DirLen,Flags,nil,0);
Result := IntToHex(Serial,8);
end;
Falou, cara? :lol: :shock:
Function SeriedoDisco(Drive:String):String;
Var
Serial:DWord;
DirLen,Flags: DWord;
DLabel : Array[0..11] of Char;
begin
GetVolumeInformation(PChar(Drive+´:\´),dLabel,12,@Serial,DirLen,Flags,nil,0);
Result := IntToHex(Serial,8);
end;
Falou, cara? :lol: :shock:
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)