Programming Tips - Win32: How can I programmatically start/stop the SNMP service?

Date: 2008aug18 Platform: win32 Language: C/C++ Q. Win32: How can I programmatically start/stop the SNMP service? A. In C/C++ do this:
system("net start snmp"); // Start it
system("net stop snmp"); // Stop it