Solved

IP information in Registry...NT4

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

770 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