Re: Starting and Stopping an Automated Process in Win32Lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu