ControlService

Oct 14, 2014 at 1:52am
closed account (z67Ly60M)
I'm trying to pause a service then resume.

 
 Couldn't make it kept geting erros 
Oct 14, 2014 at 2:02am
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.
Oct 14, 2014 at 2:17am
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 Oct 14, 2014 at 2:19am
Oct 14, 2014 at 2:19am
So, nothing to do with C++?
Edit: Oh okay, didn't realize you're talking about windows-specific stuff.
Last edited on Oct 14, 2014 at 2:24am
Oct 14, 2014 at 2:22am
closed account (z67Ly60M)
No I'm trying to pause and resume a service in c++
Topic archived. No new replies allowed.