判断光盘是否是CD

I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
Function AudioCD(Drive : Char) : Boolean;
Var
FSFlags, MaxLength: DWORD;
VolName, Path : String;
Begin
Path := Drive + ':/';
Result := FALSE;
if (GetDriveType(PChar(Path)) = DRIVE_CDROM) then
Begin
SetLength(VolName, 64);
GetVolumeInformation(PChar(Path), PChar(VolName), Length(VolName), nil, MaxLength, FSFlags, nil,0);
if (lStrCmp(PChar(VolName),'Audio CD') = 0) Then Result := TRUE;
End;
end;
 

Similar threads

I
回复
0
查看
1K
import
I
I
回复
0
查看
363
import
I
I
回复
0
查看
347
import
I
I
回复
0
查看
410
import
I
I
回复
0
查看
403
import
I
顶部