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:
- 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);
- 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