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
?