This is the mail archive of the
cygwin
mailing list for the Cygwin project.
CreateFile() and fopen issues on vista
- From: "Kirk Russell" <Krussell at bju dot edu>
- To: <cygwin at cygwin dot com>
- Date: Tue, 20 Feb 2007 13:18:03 -0500
- Subject: CreateFile() and fopen issues on vista
Hi,
I am trying to port a program from Windows XP to Vista and am running into several issues.
1) When I issue an fopen of a file with "rb" or "wb" modes they fails. I have since switched to just a "r" and "w" and it now works. This was not an issue on XP.
2) When I issue a CreateFile() function call against f: which is a USB drive an invalid handle error is returned. I would appreciate any help solving this. Some of the things that I have done are.
a) Ran as the admin user
b) created a manifest file to run the process as admin
c) Ran CreateFile() on a directory (f://test) and not the root for the USB drive (f:)
d) Turned off UAC
Kirk
Kirk Russell
IT BJU
864 242 5100 x3884
--
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/