Com port driver problem

Posted: 01-11-2006, 04:44 PM
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

Responses to "Com port driver problem"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb port and driver mckeke0702@aol.com Windows XP Device Drivers 1 09-26-2004 01:00 AM
Print Port scanner driver problem Rebecca Windows XP Device Drivers 0 07-25-2004 03:02 AM
Standby problem/Com Port Driver Les Windows XP Device Drivers 1 06-01-2004 03:36 PM
MS com port driver help chas Windows XP Device Drivers 1 01-25-2004 08:37 AM
Problem with Serial Port Numbering Driver after Installing SP1 Ray Daugherty Windows XP Device Drivers 0 01-10-2004 01:16 PM