PC Review


Reply
Thread Tools Rate Thread

Com port driver problem

 
 
wilhelm.lundgren@gmail.com
Guest
Posts: n/a
 
      11th Jan 2006
Hi,


Im writing a virtual serial port for xp and stumbled upon a problem. I
do all my initiation stuff such as IoCreateDevice (with name) and set
up symbolic link. This works fine and i can access my driver by calling

createfile(com5...) etc. But, the problem is that the system never
seems to understand that COM5 is now available. So any other
application cant see COM5, even though it works to open it.


Question number one is, how can i make the system understand and
announce COM5 to the world.


I tried using this RegisterDeviceInterface, which probably is a better
way to go. But this has to be used in AddDevice function. And this
function never gets called when i set up the pointer to it in
DriverEntry. Wierdly enough, If i set up this pointer and do
startservice from my application, DriverUnload is immidiatly called
after DriverEntry. If i dont set the adddevice pointer, the driver
stays loaded.


Question number 2, How can this be solved, and why?


One part of this problem is that i do not want to use an .inf file, i
just want my application to do it all via Createservice, openservice
and startservice etc.


Hope someone can lend a hand


/Wille

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB 2.0 Port Device Driver Problem for Windows XP SP2 user =?Utf-8?B?VG9ueSBDb29wZXI=?= Windows XP New Users 2 24th Nov 2006 04:28 AM
SIS PORT Driver problem after Windows Update Hem Windows XP Help 6 15th Jul 2005 07:08 PM
Print Port scanner driver problem Rebecca Windows XP Drivers 0 25th Jul 2004 03:02 AM
Standby problem/Com Port Driver Les Windows XP Drivers 1 1st Jun 2004 03:36 PM
Problem with Serial Port Numbering Driver after Installing SP1 Ray Daugherty Windows XP Drivers 0 10th Jan 2004 01:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:25 PM.