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