function GetDriveLetter(DriveIndex: Byte): PAnsiChar; stdcall; external 'GetDiskSerial.dll';
Hi , is there a way to get the Drive Letter from Drive Index ,
For example , when i enter 0 it will give me the current drive which is 'C:' and 'D:' .... etc
A pseudo function :
Delphi-Quellcode:
Function GetDriveLetter(DriveIdx:Byte):String;
begin
Result:=....DriveIdx ;
// Result will be 'C: D: ' if DriveIdx value is 0
end;
thank you .