This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CreateFile() and fopen issues on vista
- From: ericblake at comcast dot net (Eric Blake)
- To: "Kirk Russell" <Krussell at bju dot edu>, <cygwin at cygwin dot com>
- Date: Tue, 20 Feb 2007 22:05:50 +0000
- Subject: Re: CreateFile() and fopen issues on vista
> 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/