Writing to my driver's registry key for the device instance after MiniportInitialize in an NDIS-WDM

Discussion in 'Windows Vista Drivers' started by Ronnie Kunin, Jan 22, 2004.

  1. Ronnie Kunin

    Ronnie Kunin Guest

    I need to save some state information across driver unload/reload in
    my NDIS-WDM driver running under Win2K & XP. The information is only
    available after about 30-120 seconds of loading the driver, way after
    MiniportInitialize() is done.

    I've tried a couple of things in order to write to the driver's
    registry key for the device instance, but with no luck so far:
    - NdisWriteConfiguration() cannot be used after MiniportInitialize()
    - using IoOpenDeviceRegistryKey()/ZwSetValueKey() works but will fail
    Ndistest's 1c_kernelcalls script and I need a WHQL logo'ed driver.

    I've read NdisWriteConfiguration() is/will be usable at passive level
    during runtime in NDIS6, but that does not help me since I need the
    support for Win2K / XP.

    What options do I have to accomplish this for 2K/XP ?

    Thanks in advance,
    Ronnie
     
    Ronnie Kunin, Jan 22, 2004
    #1
    1. Advertisements

  2. You can ask WHQL to give you a waiver for using
    IoOpenDeviceRegistryKey()/ZwSetValueKey() function. I don't think there is
    any other solution.
     
    Eliyas Yakub [MSFT], Jan 23, 2004
    #2
    1. Advertisements

  3. Ronnie Kunin

    Yariv Guest

    Eliyas,
    Is that correct?
    In my NDIS-WDM driver I open a sub key during MiniportInitialize using
    NdisOpenConfigurationKeyByName, I use it then later when MiniportInitialize
    is over.

    Yariv.
     
    Yariv, Jan 23, 2004
    #3
  4. Write a lower WDM filter driver and implement some direct call interface
    with your main driver. Your lower filter will be allowed to do whatever WDM
    driver can do.
     
    Alexander Grigoriev, Jan 23, 2004
    #4
    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.