Re: Starting and Stopping an Automated Process in Win32Lib
- Posted by m_sabal Jan 27, 2012
- 1739 views
Depends on what's running the process. If you have a Windows service that you want to control via a GUI app, you can use a shell command to execute "sc start|stop ServiceName". If the process is part of the same program as the GUI, have the button handlers set a global variable, and have the payload loop quit if that variable is set to a stop value. You may have to include a command to process events within the payload loop so the button click actually gets handled. I'm not sure if it's still that way in the latest Win32Lib or not.