uses mmsystem,mplayer;
var mp:tmediaplayer;
; ;msp:tmci_info_parms;
; ;mediastring:array[0..255] of char;
; ;ret:longint;
begin
; mp:=tmediaplayer.create(nil);
; mp.visible:=false;
; mp.parent:=applicartion.mainform;
; mp.shareable:=true;
; mp.devicetype:=dtcdzudio;
; mp.filename:='d:';
; mp.open;
; application.processmessage;
; fillchar(mediastring,sizeof(mediastring),#0);
; fillchar(msp,sizeof(msp),#0);
; msp.lpstrreturn:=@mediastring;
; msp.dwretsize:=255;
;ret:=mcisendcommand(mp.deviceid,mci_info,mci_info_media_identity,longint(@msp);
;if ret<>0 then
; mcigeterrorstring(ret,@mediastring,sizeof(mediastring));
else
;showmessage(strpas(mediastring));
mp.close;
;application.processmessage;
mp.free;
end;