How to run two instances of the same driver

Discussion in 'Windows Vista Drivers' started by Billy Ng, Aug 20, 2004.

  1. Billy Ng

    Billy Ng Guest

    I have a virtual network driver modified from DDK sample Netvmini. I used to
    get the driver handle in user-mode application by:
    CreateFile(TEXT"(\\\\.\\NETVMINI"),...) where "NETVMINI" is defined in .inf

    I can run DeviceIoControl calls without any problem until I install another
    identical driver. I have a few questions:

    1) Is the system confused of which instance of the driver I try to access?
    2) If I have two identical driver installed, are two instances sharing any
    memory space?
    3) How can I pick each driver instance, and get its handle (which allows me
    to run DeviceIoControl calls)?
    Billy Ng, Aug 20, 2004
    1. Advertisements

  2. Billy Ng

    Calvin Guan Guest

    Because the named device object already exists.
    Drivers don't have 2 instances, devices do.
    Generate the name differently. for instance dev1,dev2....

    Calvin Guan Software Engineer
    ATI Technologies Inc.
    Calvin Guan, Aug 20, 2004
    1. Advertisements

  3. Billy Ng

    Billy Ng Guest

    In a user-mode app, I try to get the each device's unique DevicePath from the
    SP_DEVICE_INTERFACE_DETAIL_DATA, and run CreateFile to get the device handle.
    However, DeviceIoControl calls do not seem to work. Any idea why?
    Billy Ng, Aug 21, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.