Anyone know some Windows APIs that can be used to break and re-enable a network connection ? I initially thought WNetCancelConnection2() would do the job but that is for mapped network drives. I want to be able to do the same as if I go to network connections and disable/re-enable the connection from there.
Thanks
http://msdn.microsoft.com/en-us/library/aa394595.aspx
The netsh command should also work.
Mmmmm is there any regular APIs that can be used instead ? Not even sure how I would go about using those for MASM.. The netsh method I had come across before but it seems rather inelegant if there are functions available that do what I want.
Can you even use classes with MASM ? I've used them to quite some extent in Java previously but not sure how I would go about doing so for MASM..