X-Spam-Check-By: sourceware.org Message-Id: <45DB0BD30200005200000870@BJUMAIL.bju.edu> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Tue, 20 Feb 2007 14:55:15 -0500 From: "Kirk Russell" <Krussell AT bju DOT edu> To: <cygwin AT cygwin DOT com> Subject: Re: CreateFile() and fopen issues on vista References: <45DAF5100200005200000866 AT BJUMAIL DOT bju DOT edu> In-Reply-To: <45DAF5100200005200000866@BJUMAIL.bju.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l1KJtrQJ015606 Folks, Never mind. I went through and changed the permissions on the f: drive and now it is working again. Even though my userId in cygwin is administrator Windows does not seem to recognise me as such. CreateFile() is now able to create a valid handle once more. I also dont seem to have any side effects of changing the mode on the file. Kirk Kirk Russell IT BJU 864 242 5100 x3884 >>> "Kirk Russell" <Krussell AT bju DOT edu> 2/20/2007 1:18:03 PM >>> 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/ -- 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/