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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE - I was on vacation, and did not see
your personal reply for several days, whereas the list would have faster
response.

According to Kirk Russell on 2/20/2007 3:17 PM:

> 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,
> 
> I am using CreatFile() to create a  handle that is passed to  DeviceIoControl() in order to get product id and version from the USB drive. Are you saying that I could use fopen to do the same? 
> 
> Thanks for the reply
> Kirk

DeviceIoControl is yet another non-cygwin function that goes behind
cygwin's back.  I'm not familiar enough with what you are trying to do to
know if a cygwin ioctl() would get at the same information.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3vDj84KuGfSFAYARAvBLAJ498a9k9mUN+QrQx0ormMBTpKEJcwCglCk5
E/onUjp0Yx+BwUpIwaWGUGk=
=MZr8
-----END PGP SIGNATURE-----

--
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]