X-Spam-Check-By: sourceware.org From: ericblake AT comcast DOT net (Eric Blake) To: "Kirk Russell" , Subject: Re: CreateFile() and fopen issues on vista Date: Tue, 20 Feb 2007 22:05:50 +0000 Message-Id: <022020072205.23634.45DB70BE0006311500005C5222007456720A050E040D0C079D0A@comcast.net> X-Mailer: AT&T Message Center Version 1 (Oct 4 2006) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > 2) When I issue a CreateFile() function call against f: which is a USB drive an > invalid handle error is returned. In general, it is a bad idea to mix Windows APIs with cygwin, since you are going behind cygwin's back, and can no longer guarantee cygwin's POSIX-y behavior. Using CreateFile from a cygwin program is asking for problems. Use fopen() or open() instead. -- Eric Blake -- 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/