Einzelnen Beitrag anzeigen

sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#1

Get Drive Letter

  Alt 23. Okt 2011, 20:53
Delphi-Version: 7
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 .
  Mit Zitat antworten Zitat