This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]