CreateFile() and fopen issues on vista
Eric Blake
ericblake@comcast.net
Tue Feb 20 22:06:00 GMT 2007
> 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/
More information about the Cygwin
mailing list