hi all,
I would like to create an ndis miniport driver that does not run a network interface card, but a USB to com port instead .
the usb device generate 2 com ports , can the ndis driver communicate with these 2 com port ?
[TCP/IP] [Service]
| |
[NDIS Miniport Driver]
| |
| |
[Com 1] [Com 2]
| |
[Dail up] [get network status]
I had completed the USB to com port driver and create a device interface by
WdfDeviceCreateDeviceInterface with GUID .
I am trying to do by the step of
1.IoGetDeviceInterfaces(GUID , & devicelist )
question: how can i distinguish the Com 1 and Com 2? It seems there is only a list ?
2.IoGetDeviceObjectPointer(&pDevObj) to get device object
3.Iocalldriver(pDevObj , Irp) to send IRP to com port driver .
I don’t know if it is feasible ,i hope somebody can help .
I found if i plug in two devices that will make it more complex . so i try to make each com port more exclusive to be recognize .maybe PID VID or any other . any clues will be great appreciated .