FANDOM


Syntax

.HWND

(.HWND name)

Explanation

.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.

See also .HINST and .WINDOWS.

Example

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

END

? GETWINTEXT .HWND

Result: PC Logo for Windows

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.