Solved

IP information in Registry...NT4

Posted on 1997-07-24
1
382 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Modify static variables within a class in VC++ 3 95
VS2015 compilation and missing DLLs 9 119
C++ Language error 28 197
C++ mouse_event mouse look 7 70
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now