Restriction: The following applies to native COBOL only.
The Win32 API routines can be treated as subprograms that can be called directly from COBOL. The API routines should always be called with the correct call convention.
For an example, see
Example of Calling a Win32 API Routine.