3
Searching the web I found this function to returns the letters of the Hdds.
function tbDriveLetters: string;
{ Uso: S := tbDriveLetters; - retorna 'ACD' se existir as unidades A:, C: e D: }
var
Drives: LongWord;
I: byte;
begin
Result := '';
Drives := GetLogicalDrives;
if Drives <> 0 then
for I := 65 to 90 do
if ((Drives shl (31 - (I - 65))) shr 31) = 1 then
Result := Result + Char(I);
end;
I need another function to separate the letters and add to the Combobox so that each Letter is a Combobox item.
I took the test and I’m fine...
– ProsTecnologia