Ge van Geldorp wrote:
From: Murphy, Ged (Bolton)
Is there a particular reason you were doing this via the DHCP
client and not just using functions provided by iphlpapi?
I couldn't find iphlpapi functions to do this. But even if
they're there,
iphlpapi will need to inform the DHCP client about the change
to static IP
address (basically telling the DHCP client to shut up and go
to sleep).
I was thinking along the lines of stopping the DHCP service and calling
AddIPAddress, which should be the same as inserting the address manually in
the registry. I haven't looked into this though, so might not work.
(stopping the service would need a temporary hack, as it's not been
converted to an NT service yet, plus we don't have StartService to restart
it)
Ged.
************************************************************************
The information contained in this message or any of its
attachments is confidential and is intended for the exclusive
use of the addressee. The information may also be legally
privileged. The views expressed may not be company policy,
but the personal views of the originator. If you are not the
addressee, any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited.
If you have received this message in error, please contact
postmaster(a)exideuk.co.uk
<mailto:postmaster@exideuk.co.uk> and then delete this message.
Exide Technologies is an industrial and transportation battery
producer and recycler with operations in 89 countries.
Further information can be found at
www.exide.com