I know that (windows xp and 2000) if you run:
net stop "network connections"
net stop dhcp
it will stop it.
to start it:
net start "network connections"
net start dhcp
(if you don't have a static ip)
I'm not aware of an api call to do that, but there may be one.
>Dear All
>I want (form.scx) to Disable/Enable Local Area Connection for the computers on the network programmatically.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"