OK, here goes, hope this is understandable!

I have a combo box with a list of network devices and I want to be able to change the registry values (WinXP & others) for the device selected from the combo box.

I need to find the registry keys relevant to the network interface selected from the combo, so if someone chooses the first card, I can then change the registry values for that card, for example, the values might be at;


I have searched everywhere, but can't find out how to retrieve the registry key for a specific device.

A solution for any compiler will do, though I'm using Masm. If someone could point me in the right direction as to where to look, what functions, other relevant registry keys... anything!

One app that achieves similar to what I require is DRTCP (which is written in VB so no use to me, I get lost in its bloated routines);

The combo at the bottom :


BTW: At the moment I'm getting the device values with GetIfTable but maybe I should be looking into the registry for the device list?
Seems I'm going about this wrongly?!
Posted on 2003-02-20 19:28:22 by Drmres
Download RegMon from Sysinternals first... then 1. run regmon, 2. run DRTCP and it will show you all the registry keys DRTCP opens and querys. :-)

One thing.. BE CAREFUL! Read the docs about what you are about to make. If you do not understand the TCP protocal, you can really mess up the connections... Win9.x is much differant than Win NT. and W2K/XP has hidden settings.... read, read, read... MS has some docs about this, you have to dig for them though..

Have fun!
Posted on 2003-02-20 19:48:16 by Gunner
I have already tried this and found next to nothing (this is how I found the key in my original post). I have also gone through all msdn docs that I thought may shed some light (although their search facility is pathetic), IDAd and Ollyd DrTCP (but it's VB - say no more), googled 'til I can google no more and still no luck!

This is what is puzzling me, it must be easy enough to do but I can't find a hint, I really have tried all I can think of, which leads me to think I'm looking at this the wrong way.

It's finding the link between the adapter and the registry key that I can't work out - how to look up the correct key. :confused:
Posted on 2003-02-20 20:45:11 by Drmres
I don't think you RegMon'd DrTCP cause I just did and DrTCP accessed the registry 640 times. Although much of it in non important because most of it is what windows looks up as it loads a program. There are many "network" keys accessed! It is not only 1 key but a few. When I looked into what you are doing, a few years ago, I found many great docs about it. Don't have any links right now, but basically, you get the value from one key, the value you get is another key, take that value and open the key and query what you want... it is kinda complicated but the docs helps... since you have been to dslr, check there, I think there were a few docs there, check http://www.winguides.com/registry/ it has a few settings described there and the keys... do a google and you WILL find the docs.
Posted on 2003-02-20 21:13:41 by Gunner
Obviously it doesn't access just 1 key!

The key in my post is just an example - the location that I want to edit.

I did regmon it when I started coding this particular procedure (wouldn't have said I had if I hadn't - there is no ignorance surrounding me) and backtraced to see if I could determine how it finds the location, I only ended up no further ahead. I am not a beginner!

I didn't think of looking at Winguides though, I'll take a look.

Thanks for the suggestions
Posted on 2003-02-20 21:28:58 by Drmres
Still no luck with this. Any ideas anyone... (please!) ?
Posted on 2003-02-22 09:54:51 by Drmres
hope the follwing link helps :

Posted on 2003-03-04 07:13:12 by himanshu
Posted on 2003-03-04 07:27:58 by himanshu