Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - ReadFile Win32 API not working under Vista

Reply
 
Old 02-06-2009   #1 (permalink)


Vista Prof 32bit
 
 

ReadFile Win32 API not working under Vista

Hi, I have a USB Touch screen that I have built a user-mode driver for. It has been written in VB6 and has been working fine under Windows XP. I recently decided to rewrite the application in Visual Basic.Net and C#. Both work fine under XP, but when I try the two Dot Net versions under Windows Vista neither works. I use CreateFile API to point to the kernel-mode driver and it returns a valid Handle. But ReadFile returns with zero bytes received. I have tried this with Visual Studio 2008 and DotNet framework 3.5 and Visual Basic Express 2005 and I am using Vista Business. ReadFile works OK to read text files but not the USB device.

Any ideas greatly appreciated.

Goblet

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Administrator tool for Win32 has stopped working Vista performance & maintenance
Get the disbaled device list in vista through win32 Api in vc++ Vista hardware & devices
Live Messenger ignore Win32 API ReadFile return code and 100% CPU Live Messenger
Vista non-WIN32 apps memory restriction Vista General
Vista win32 exception in explorer Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46