X-Spam-Check-By: sourceware.org Message-Id: <45DAF5100200005200000866@BJUMAIL.bju.edu> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Tue, 20 Feb 2007 13:18:03 -0500 From: "Kirk Russell" To: Subject: CreateFile() and fopen issues on vista 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 l1KIIpIB003998 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/