Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
IDENTIFICATION DIVISION.
PROGRAM-ID. TESTCALL.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 HMODULE PIC 9(09) COMP-5 VALUE 0.
77 HADRES PIC 9(09) COMP-5 VALUE 0.
77 HADRESP REDEFINES HADRES USAGE PROCEDURE-POINTER.
77 HLIB PIC X(08) VALUE "user32" & X"00".
77 HTEKST PIC X(08) VALUE "tekst" & X"00".
77 HTITEL PIC X(08) VALUE "titel" & X"00".
77 HMSGB PIC X(12) VALUE "MessageBoxA" & X"00".
PROCEDURE DIVISION.
MAIN SECTION.
M1.
CALL "LoadLibraryA" WITH STDCALL LINKAGE
USING BY REFERENCE HLIB
RETURNING HMODULE.
IF HMODULE = 0
DISPLAY "HMODULE == 0"
GO TO M9.
CALL "GetProcAddress" WITH STDCALL LINKAGE
USING BY VALUE HMODULE
BY REFERENCE HMSGB
RETURNING HADRES.
IF HADRES = 0
DISPLAY "HADRES == 0"
GO TO M9.
CALL HADRESP WITH STDCALL LINKAGE
USING BY VALUE 0
BY REFERENCE HTEKST
BY REFERENCE HTITEL
BY VALUE 0.
M9.
IF HMODULE NOT = 0
CALL "FreeLibrary" WITH STDCALL LINKAGE
USING BY VALUE HMODULE
MOVE 0 TO HMODULE.
STOP RUN.