Unit WindowsListUnit

TWindowsList v1.0 This unit will get a list of actives windows in the system. To get it, call one of the functions GetAllWindows, GetVisibleWindows or GetInvisibleWindows. This will gather windows informations and place it in the TheWindowsList StringList. The AcceptEmptyNames will decide if yes or not unnamed windows are added to the list. I know I haven't used a 'real object method' to do the job (The code is repeated in all the 3 Get functions), but it was a lot easier that way. I tried another method, but I screwed. Anyway, if you decide to rewrite it, let me know. In futures version, I will add others windows informations line ClientRECT, Classes, etc. Special thanks to Franze who helped me a lot, even if he didn't find all the bugs, he spent few hours with me looking at it. Jerome Tremblay, aka DeathStroke, jerome@infose.com

Classes

TWindowInfo -
TWindowsList - Public declarations

Functions

Register - This is called a Typecast.

Types

TCustomEnumWindowsProc

Constants

Variables


Functions


procedure Register;

This is called a Typecast. It allows me to access the object directly without having to store it in a temp variable. This is necessary, since in a StringList, all objects are TObject, so there are no properties & methods.

Types


TCustomEnumWindowsProc = Procedure(WinHandle : HWND)

Constants


Variables