首页  编辑  

监测光驱是否就绪

Tags: /超级猛料/Hardware.硬件相关/驱动器相关/光驱/   Date Created:

function CDROMReady(DRV:char):boolean;

var

 i:dword;

 buf:array[0..MAX_PATH] of char;

 pd:DWORD;

begin

 pd:=0;

 GetVolumeInformation(DRV+':\',buf,i,@pd,i,i,buf,i);

 result:=pd<>0;

end;