From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 14 08:02:39 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5441616A4E7 for ; Mon, 14 Aug 2006 08:02:39 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0517C43D73 for ; Mon, 14 Aug 2006 08:02:33 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Mon, 14 Aug 2006 16:02:32 +0800 id 00102E1E.44E02E18.00001263 References: <86bqqnyhlm.fsf@xps.des.no> <86psf3wz89.fsf@xps.des.no> In-Reply-To: <86psf3wz89.fsf@xps.des.no> From: "Intron" To: des@des.no Date: Mon, 14 Aug 2006 16:02:32 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-hackers@freebsd.org, Sean Bryant Subject: Re: Questions about devices and input. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 08:02:39 -0000 Dag-Erling [iso-8859-1] Smo/rgrav wrote: > "Intron" writes: >> "Dag-Erling Smo/rgrav" writes: >> > "Sean Bryant" writes: >> > > I'm writing some cd buring software using burncd as a reference. >> > > I was wondering if its possible to detect opening and closing of >> > > the doors. >> > Unfortunately, no. The drive may not even have a door. >> Mr. smo/rgrav loves playing joke very much. > > No. Unlike you, I know what I'm talking about. > >> But most of CD/DVD drives have a door, though generally speaking, >> software cannot detect the open/close status of a door directly. > > http://www.plextor.com/english/products/716AL.htm What I said is "most of". This kind of drive may do harm to your CD/DVD disc if you fail to operate carefully enough. > >> However, software can command the drive to open/close its door. > > This is not what Sean wants. I want to tell Sean that he is not worth spending time in finding how to detect the open/close status of a drive door. If his program can open/close/lock/unlock the door and detect whether recording medium (CD/DVD) is present in drive or not and whether the drive is locked or not, that's enough, just as Nero (www.nero.com) can do. > > DES > -- > Dag-Erling Smo/rgrav - des@des.no ------------------------------------------------------------------------ From Beijing, China