Name    : KILLPROCESS.DLL
Version : 1.2
Purpose : Provide bangs for closing windows / killing processes
Platform: Litestep load-module
Author  : Copyright (C) 2001 Pavel Vitis
Date    : January 28, 2001



 Description 

This module adds bangs for closing / killing windows / processes:

These bangs sends WM_CLOSE message to specified window:

  !KillProcessTitle "window title"
  !KillProcessClass "window class name"
  !KillProcessExe "path to window's process executable"

It will close whole application, if you send this message to one of its
windows.

This bang will forcedly kill process:
  
  !KillProcessExeF "path to window's process executable"

These bangs send WM_SYSCOMMAND/SC_CLOSE message to specified window:

  !CloseWindowTitle "window title"
  !CloseWindowClass "window class name"

It will close specified window only, without closing whole application.


These bangs manipulates visibility of specified window:

  !ShowWindowTitle "window title"
  !ShowWindowClass "window class name"

  !HideWindowTitle "window title"
  !HideWindowClass "window class name"

  !ToggleWindowTitle "window title"
  !ToggleWindowClass "window class name"


Use KillProcessF to close desired program forcedly (uses WinAPI TerminateProcess
function) when desired window doesn't react on WM_CLOSE messages. 
Be warned that if you terminate any application in that way, you may lose unsaved 
informations.


Bangs for controlling module state:

  !KillProcessEnable
  !KillProcessDisable
  !KillProcessToggle


Parameters recognize wildcards:

  '*' matches any sequence of characters (zero or more)
  '?' matches any character
  [SET] matches any character in the specified set,
  [!SET] or [^SET] matches any character not in the specified set.

A set is composed of characters or ranges; a range looks like character hyphen
character (as in 0-9 or A-Z).  [0-9a-zA-Z_] is the minimal set of characters
allowed in the [..] pattern construct.
Other characters are allowed (ie. 8 bit characters) if your system will
support them.

To suppress the special syntactic significance of any of `[]*?!^-\', and match
the character exactly, precede it with a `\'.


Note:

To determine correct ClassName of a window you can use GetWinInfo utility
available on my pages, or more advanced:

  WindowSpy
  (C) 1999 Krichmar Kobi
  http://come.to/kobik/


 Version history 

1.2
  * Rewritten into C
  * Source code available under GPL license

1.1
  * Optimized window enumerating
  + More bangs added

1.0
  * Initial release. Tested on Win98 / PureLS


 Contact 

Pavel Vitis
mailto: pavel.vitis@seznam.cz
http://floach.pimpin.net/pavel/ (main site)
http://lsg.come.to/ (mirror site)
