Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010222151020.02f1e670@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 22 Feb 2001 15:11:12 -0500 To: Jesper Eskilson , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Accessing disk-devices In-Reply-To: <3A95695F.A9C3BC45@virtutech.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:32 PM 2/22/2001, Jesper Eskilson wrote: >Hi! > >Is there any way of accessing disk-devices under Cygwin (something like >using the "\\.\:" syntax accepted by the Win32 APIs? > >Another way around would be to use CreateFile() to open the device and >then convert the HANDLE to a Cygwin file-descriptor. The function > > cygwin_attach_handle_to_fd() > >looks ok, but I would like it to work in the other direction. > >/Jesper Yes, I believe this will work but you'll have to test it out in your specific situation. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple