Hi, Has anyone been able to use this Windows function in Delphi 5? I've seen plenty of example code and the general idea is something like... function GetWindows(Handle: HWND; Info: Pointer): BOOL; stdcall; begin Result := True; WindowList.Add(Pointer(Handle)); end; ... EnumWindows(@GetWindows, Longint(@TopWindow)); However I cannot make it work. Any ideas? Cheers Ant ________________________________________________________ Antony Gardiner (IT Specialist) Clear Communications Ltd One of the Intranet, NRS, CPS, & NMS wannabes (+64 9 912 4746) Zone 1534 --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz