home *** CD-ROM | disk | FTP | other *** search
- LISTING C:
-
- LOAD dvapi && Load the .BIN routines
-
- * Initialize variables for handles:
- WIN_Main = SPACE(10) && Window object handle
- KBD_Main = SPACE(10) && Keyboard object handle
- CrLf = CHR(13) + CHR(10) && Return/Linefeed
-
- * Get task Window Handle
- DO DESQview WITH [WIN_Main = win_me]
- * Get keyboard handle for the task window
- DO DESQview WITH [KBD_Main = key_me]
- * Write a string to the task window
- DO DESQview WITH [win_write &WIN_Main "&CrLf"]
-
- PROCEDURE DESQview && All function requests come through here
- PARAMETERS command
- * Note how api_request must be padded to fill 254 positions:
- api_request = command + SPACE( 254- LEN(command) )
- CALL dvapi WITH api_request && Execute .BIN routine
- . . . && other routines
- RETURN