unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs, ComCtrls, StdCtrls, Buttons, AKRipVCL;
type
TForm1 =
class(TForm)
Drives: TListBox;
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
AK: TAKRip;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
i : Integer;
lngHA : Integer;
lngTGT : Integer;
lngLUN : Integer;
lngPAD : Integer;
strID :
String;
strVendor :
String;
strProductID :
String;
strRevision :
String;
strVendorSpec :
String;
begin
Drives.Clear;
for i := 0
to 25
do
if GetLogicalDrives
and (1
shl i) <> 0
then
if GetDriveType(PAnsiChar(Chr(i + Ord('
A')) + '
:\')) = DRIVE_CDROM
then Drives.Items.Add(Chr(i + Ord('
A')) + '
- ');
AK.GetCDList;
if AK.GetCDListCount > 0
then begin
for i :=0
to AK.GetCDListCount - 1
do
begin
AK.GetCDListRecord(i, lngHA, lngTGT, lngLUN, lngPAD, strID);
Drives.Items[i] := Drives.Items[i]
+ '
['
+ IntToStr(lngHA)
+ '
:'
+ IntToStr(lngTGT)
+ '
:'
+ IntToStr(lngLUN)
+ '
] ';
AK.GetCDListInfo(i, strVendor, strProductID, strRevision, strVendorSpec);
Drives.Items[i] := Drives.Items[i]
+ trim(strVendor)
+ '
'
+ trim(strProductID);
end;
end;
end;
end.