PDA

View Full Version : Stop running program?



NewsArchive
10-11-2011, 12:36 AM
Does anyone know if theres any facilities in SB to stop a running program?
Its not a service just a normal hidden windowed app which is called from the
HKLM Run reg key.

TIA.

Richard Rose

NewsArchive
10-11-2011, 12:37 AM
Just seen the Terminate Active Application in the script function yet
couldnt find "Stop Running program" in the help.

Got a question, what exactly is "Gently Close Application [in] Mark this
checkbox to gently close the application. "

Does this PostMessage with WM_Query End Session or WM_End Session to
the running app or something else?

TIA

Richard Rose

NewsArchive
10-11-2011, 12:37 AM
Hi Richard,

> Just seen the Terminate Active Application in the script function yet
> couldnt find "Stop Running program" in the help.
>
> Got a question, what exactly is "Gently Close Application [in] Mark this
> checkbox to gently close the application. "
>
> Does this PostMessage with WM_Query End Session or WM_End Session to
> the running app or something else?

The "Gently Close" option posts WM_CLOSE to all windows whose PID matches
your process's and then waits (for max. 5 seconds) on the handle. The app
can then handle all the required shutdown actions.

Friedrich