Hi, I am currently trying to create a gui program that when you click one button, it executes Net Pause (service), and then the second button executes Net Continue (service), could anyone tell me what code I need to use in order to do this?

If it helps, I am using Dev C++ for this program, and editing an older program of mine that starts applications from buttons using

CreateWindow(TEXT("button"), TEXT("CPU-Z"),WS_VISIBLE | WS_CHILD ,20, 55, 173, 25, hwnd, (HMENU) 1, NULL, NULL);
if (LOWORD(wParam) == 1) {system("start Files\\CPUZ\\Cpuz.exe}

The above is just a line of code to open one of the programs in my older program, can I continue to use the above by editing it somehow, or do I need to use a new code?