FANDOM


Syntax

.HINST

Explanation

.HINST outputs the instance handle of PC Logo for Windows. This is a value needed as a parameter for Windows API calls.


See also .WINDOWS.

Example

The following procedure loads a string with a given integer resource ID from the resource part of the PC Logo for Windows executable file.

TO LOADSTRING :N

LOCAL "ARRAY
MAKE "ARRAY BYTEARRAY 128
IF (.WINDOWS "LoadString .HINST :N :ARRAY 128) = 0 \
THEN OUTPUT "FALSE \
ELSE OUTPUT TEXTARRAY :ARRAY

END

? LOADSTRING 1001

Result: Opens an editor window

?

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.