delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | Sam Edge <sam DOT edgeZZZ AT lineone DOT net> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Portable Cygwin on a CD |
Date: | Tue, 06 May 2003 23:42:18 +0100 |
Organization: | . |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <ohdgbvo3ergftf1pm9p759j2dr2253lkka@4ax.com> |
References: | <rtpdbvo73bvfnmqph8as57t6bi20fl5ikg AT 4ax DOT com> <Pine DOT LNX DOT 4 DOT 44 DOT 0305060925450 DOT 8957-100000 AT localhost DOT localdomain> |
In-Reply-To: | <Pine.LNX.4.44.0305060925450.8957-100000@localhost.localdomain> |
MIME-Version: | 1.0 |
X-Posting-Agent: | Hamster/2.0.0.1 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h46MgcA02954 |
Greetings again. Ronald Landheer-Cieslak <ronald AT landheer DOT com> wrote in <Pine DOT LNX DOT 4 DOT 44 DOT 0305060925450 DOT 8957-100000 AT localhost DOT localdomain> in gmane.os.cygwin on Tue, 6 May 2003 10:48:38 +0200 (CEST): > I don't have the slightest clue on how to lock a CD-ROM drive, though.. The DeviceIoControl() API has the IOCTL_STORAGE_MEDIA_REMOVAL control code to enable/disable removal of media in NT-series OSes. I know the same can be done in 9x-series but I'm don't know what API call is needed. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/ioctl_storage_media_removal.asp > but the code for looking whether Cygwin is running can be found in Cygwin > itself, so that's mostly a matter of copying & pasting :) Ah. I've not looked. I was thinking of monitoring the DLL load/unload and counting. If Cygwin does this itself, that's better. -- Sam Edge -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |