ControlService

closed account (z67Ly60M)
I'm trying to pause a service then resume.

 
 Couldn't make it kept geting erros 
hwat?
This can pause your program untill you press enter(you need #include <string> ):
1
2
3
std::string s;
std::cout<<"Press enter to continue... \n";
std::getline(std::cin,s);

If that's what you want.
closed account (z67Ly60M)
No I'm trying to pause a service not my own program.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682108(v=vs.85).aspx this si what i'm trying to use..
Last edited on
So, nothing to do with C++?
Edit: Oh okay, didn't realize you're talking about windows-specific stuff.
Last edited on
closed account (z67Ly60M)
No I'm trying to pause and resume a service in c++
Topic archived. No new replies allowed.