.HWND outputs the window handle of the PC Logo for Windows main window. This value is needed as a parameter for many Windows API calls. You can obtain the window handle of any window of PC Logo for Windows by supplying its title as an optional input. If the window cannot be found, 0 is output.
The following procedure outputs the window title of any window. To output the title of a window, you must supply the window handle for the window.
TO GETWINTEXT :HANDLE
- (LOCAL "ARRAY "DUMMY)
- MAKE "ARRAY BYTEARRAY 128
- MAKE "DUMMY (.WINDOWS "GetWindowText :HANDLE :ARRAY 128)
- OUTPUT TEXTARRAY :ARRAY
? GETWINTEXT .HWND
Result: PC Logo for Windows