One hardware, many functions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hallo,
I'm developing an USB hardware with two different functions, a custom device and a serial port.
I want to create a driver that shows two devices (so I can use my hardware with my own applications to control custom device, and standard Serial port program for serial port device).

In AddDevice function I tried to call two times
IoCreateDevice, IoAttachDeviceToDeviceStack, IoRegisterDeviceInterface
to create two different devices.
It seems to work and in WinDbg I can see distinct requests for devices I created, but at user level I cannot see two devices.

What should I do to see two different devices in device management tree ?

Thank you very much,
Blu.
.



Relevant Pages

  • Re: One hardware, many functions
    ... For a multi-function USB device, the MS's generic parent is a driver. ... drivers - one for the custom device, another for serial port. ...
    (microsoft.public.development.device.drivers)
  • [PATCH] zs: Move to the serial subsystem
    ... This is a reimplementation of the zs driver for the serial subsystem. ... to use a console on a serial port, say Y. Otherwise, say N. ... * This is the Z85C30 driver's generic interrupt routine. ...
    (Linux-Kernel)
  • Re: Accessing peripherals from a managed application
    ... There's a driver for, ... I did find that System.IO.Port has the functionalities of a serial port ... Paul G. Tobey wrote: ... Call on the imported functions to access the hardware. ...
    (microsoft.public.windowsce.app.development)
  • Re: OutputDebugString on Release build?
    ... I now see plenty of debug on the serial port ... is being used and then disables the serial driver. ... It sounds like serial debug on Release builds should work. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB Composite Device, Serial + Mass Storage, could not install
    ... I really do that, I also use IAD for the composite device, Windows XP SP2 ... can begin to install the driver according to the inf file. ... question mark on my virtual serial port and my mass storage device can work. ...
    (microsoft.public.development.device.drivers)