D
d0x
For the sake of clarity I will give you a brief description of what im
doing, followed by the things i am stuck on. I am making a very small
application that will be given to about 2000 people on a large LAN. The
application needs to accomplish the following,
Set up the users ethernet connection to use DHCP
change some other settings, comp name, workgroup ( i already did this
part).
The program will need to work on win98 through XP, but for now I am just
worried about xp and 2k. I know how to retrieve and alter the registry
data, but I'm just not sure where to find what I need.
PROBLEM 1: I found where windows keeps the settings for each network
adapter. The only problem is that i dont have anyway of telling which
adapter is in use.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\NetworkCards\ holds a key for each network card.
if I were to go into "Network Connections" in the cpanel I would only see
one LAN listed. In the registry here it shows ALL nic's i have ever used
even if they are not present. The one(s) I want are the ones that show up
as LAN or High speed internet under network connections. Does anyone have
an idea of how I can achieve this?
PROBLEM 2: Considering I "do" find the correct ethernet card. Given the
even that the user has for some reason or another manually specified an IP
address for the nic. I need to know how to tell if the IP the person has
was manually entered, or if it was obtained via DHCP. If it was manually
entered then I need to change the setting so that it will use DHCP for now
on.
Please note, that all of the above must be "automatic", assuming that a
large amount of the users will not know what a network card is.
Thanks!
doing, followed by the things i am stuck on. I am making a very small
application that will be given to about 2000 people on a large LAN. The
application needs to accomplish the following,
Set up the users ethernet connection to use DHCP
change some other settings, comp name, workgroup ( i already did this
part).
The program will need to work on win98 through XP, but for now I am just
worried about xp and 2k. I know how to retrieve and alter the registry
data, but I'm just not sure where to find what I need.
PROBLEM 1: I found where windows keeps the settings for each network
adapter. The only problem is that i dont have anyway of telling which
adapter is in use.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\NetworkCards\ holds a key for each network card.
if I were to go into "Network Connections" in the cpanel I would only see
one LAN listed. In the registry here it shows ALL nic's i have ever used
even if they are not present. The one(s) I want are the ones that show up
as LAN or High speed internet under network connections. Does anyone have
an idea of how I can achieve this?
PROBLEM 2: Considering I "do" find the correct ethernet card. Given the
even that the user has for some reason or another manually specified an IP
address for the nic. I need to know how to tell if the IP the person has
was manually entered, or if it was obtained via DHCP. If it was manually
entered then I need to change the setting so that it will use DHCP for now
on.
Please note, that all of the above must be "automatic", assuming that a
large amount of the users will not know what a network card is.
Thanks!