
Specifically, it includes data types, constants, and function calls.įrom the Windows SDK help ( Window Handles)Ī window handle has the HWND data type an application must use this type when declaring a variable that holds a window handle.Īn application can use the FindWindow function to discover whether a window with the specified class name or window name exists in the system. Note that windows.pas contains data from many c++ header filesĪnd is used to define the Windows API as described in the Windows SDK. In Delphi (a case insensitive language), defined types begin Lower case and all the Microsoft defined types are uppercase. in a 32-bit operating system.Ĭ++ is a case sensitive language. Which amounts to approximately the same thing. Where a LongWord is an unsigned 32-bit value. PHandle = ^THandle // but they are really from winnt.h THandle = LongWord // The comments say these are from WINDEF.H These include application windows and the controls (buttons, menus, and so forth)

Windows uses handles to identify many objects. To do that, I needed a way to obtain the handle of the application window. I wanted to write the window image directly to a jpeg or png file. I wanted to develop my own print screen function -īut instead of capturing the image to the clipboard, Delphi - Getting Window Handles Delphi - Getting Window Handles
