Microsoft KB Archive/40030

API Call Format Variations with COBOL Versions 3.0 and 3.0a

PSS ID Number: Q40030 Article last modified on 04-20-1993

3.00 3.00a OS/2

Summary: When CALLing OS/2 API functions from Microsoft COBOL Versions 3.0 or 3.0a, the form may vary depending on the number of parameters required by the individual function. The following code segments demonstrate three different forms of CALLing OS/2 API functions. First, you will need to know the type and number of parameters required for the desired function. The following formats are examples: Call “DosStartSession” using by reference PID by reference SessID by reference start-data. Call “P_DosCreateThread” using by value Thread2-Address by reference Thread2-ID by value Stack-Pointer. Call &quot;__MouOpen&quot; using by reference mouse-handle by reference ws-null. More information covering OS/2 API function CALLs is available in the OS2API.DOC file found on the Communications disk (disk 7 of the Microsoft COBOL 3.0a disk set). The OS2API.DOC file was not shipped with Version 3.0.

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.