Solved

IP information in Registry...NT4

Posted on 1997-07-24
1
407 Views
Last Modified: 2008-03-06
Hello,
I am not sure it is a pure programming question (C language
on NT4).
I need to develop a small program which allows users that
have network restrictions to change IP settings (IP &
Gateway only).
I have some troubles because I found the information using
Regedit but I am not sure the way is correct. I mean I am
not sure it will work in any case.
Here is my 'solution' :
We can see a string in the value 'BindFileEx' in the path
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ncpa\CurrentVersion"

Into that string we can see one 'sub-string' (the second one) which seems to be a path to a subkey containing the
value 'IPAddress'.

Not easy to manage but it work with my computer... but I
am not sure the string position wont change in another PC.

Hum !!! is there any one who can help me ?

Thank a lot.
WW
0
Comment
Question by:wwalschaerts
1 Comment
 
LVL 3

Accepted Solution

by:
jaba earned 200 total points
ID: 1165898
This is wrong way , because changing this information in registry allowed only for administrators and power users (by default) . I am understanding you, you want create programm, allowing to change IP for ordinar users. NT security system will prevent it if currently logged user have no rights to do it :-(
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question