[Q] Static parameter or "hidden registry parameter" for Ndis D/D.

Discussion in 'Windows Vista Drivers' started by Daum, Aug 4, 2004.

  1. Daum

    Daum Guest

    Subject : [Q] Static parameter or "hidden registry parameter" for Ndis D/D.





    Hello everyone.





    I'm developing a WinXP Ndis driver and there is one thing what I want to
    know.



    I want to know how to make "hidden registry parameter" using an inf file.

    (Please note that the "hidden registry parameter" is not a common term.)



    When I'm installing my D/D, the parameter in inf file will be registered
    automatically to registry with default value.

    (See below example for speed and duplex parameter.)



    After installation, the parameter can be accessed and configured at
    "advanced" menu in the device¡¯s properties window.



    What I want to do is just registering the parameter to registry and not
    showing the parameter at advanced menu.



    I do not want the parameter to be configured or modified by users.



    Thank you for your help in advance.



    Have a nice time.





    //Daum









    //Below example

    [Speed.reg]

    HKR, Ndi\params\SpeedDuplex, ParamDesc, 0, "SpeedDuplex"

    HKR, Ndi\params\SpeedDuplex, default, 0, "0"

    HKR, Ndi\params\SpeedDuplex, type, 0, "enum"

    HKR, Ndi\params\SpeedDuplex\enum, "0", 0, "AutoDetect"

    HKR, Ndi\params\SpeedDuplex\enum, "1", 0, "10Mb-Half-Duplex"

    HKR, Ndi\params\SpeedDuplex\enum, "2", 0, "10Mb-Full-Duplex"

    HKR, Ndi\params\SpeedDuplex\enum, "3", 0, "100Mb-Half-Duplex"

    HKR, Ndi\params\SpeedDuplex\enum, "4", 0, "100Mb-Full-Duplex"
     
    Daum, Aug 4, 2004
    #1
    1. Advertisements

  2. If you just put the value to HKR (without desribing in in params), it won't
    be shown in the Advanced dialog.

    HKR, ,SpeedDuplex, 0, "0"
     
    Alexander Grigoriev, Aug 4, 2004
    #2
    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.