RE: [ntfsd] usb2serial driver

Now I find out, that IoRegisterDeviceInterface returns SymbolicLinkName:
??\USB#Vid_067c&Pid_2304#5&1f8fd7d0&0&1#{86e0d1e0-8089-11d0-9ce4-08003e301f73}
but I excepted that it would be COMx symbolic link.
I tried to open the device with this returned symbolic link and it works. I’m able to send data to the device. So the device is exposed to usr-land but how can I connect it with the COMx symbolic link?
Do I have to get the COMx link created by serenum.sys from registry and create this link using IoCreateSymbolicLink?

When I get a problem like this, I try to create the symbolic link to test if
it can properly be exposed to usr-land. Most of the time it is yes. Given
that, something is wrong in your IoRegisterDevice…().

-pro

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jan Halama
Sent: Monday, July 26, 2004 1:19 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] usb2serial driver

Hi,
I have an usb device for which I write a function driver. I used WinDDK
bulkusb source code as base for my driver. I defined in inf file upper
filter driver as serenum.sys.
Driver instalation works fine. The device is installed and in device
explorer I can see new serial port.
Now I have a basic problem, I’m not able to open the com port using COMx
device link.
I couldn’t see any response in debug when I call API CreateFile function.

I made this changes in the AddDevice routine:

  1. IoCreateDevice

ntStatus = IoCreateDevice(
DriverObject,
sizeof(DEVICE_EXTENSION),
NULL,
FILE_DEVICE_SERIAL_PORT, // I changed DeviceType
when creating device object
FILE_DEVICE_SECURE_OPEN,
TRUE,
&deviceObject);

  1. IoRegisterDeviceInterface

ntStatus = IoRegisterDeviceInterface(
deviceExtension->PhysicalDeviceObject,
&GUID_CLASS_COMPORT, // I changed device
interface GUID
NULL,
&deviceExtension->InterfaceName);

How can I solve this problem?


Obchodn? d?m.cz - ?irok? sortiment dom?c?ch spot?ebi?? a elektroniky,
v?razn? slevy. Nav?tivte
http://ad.seznam.cz/clickthru?spotId=73742


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@seznam.cz
To unsubscribe send a blank email to xxxxx@lists.osr.com


Anonymn? p?ipojen? k internetu od Seznamu
http://ad.seznam.cz/clickthru?spotId=74638