How to modify route table programmatically on NT 4.0
From a MSVC++ 5.0 application I need to be able to add and delete
entries into the local route table. I have been able to do this by
sending a string to a system(pstr) call, but there are some problems
1. Flashes a black cmd.exe window on the screen while executing
2. Requires the logged on user to have administrative priviledges
3. Can't get the status of the command to know if it succeeded or not
Is there another in-line way of doing this? The only other solution I
can think of is to write an NT Service and have it run at system level.
Thanks for your help!