## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### CALL Command

The CALL command performs a call to an imported PMI function entry point. Function entry point addresses are resolved at parsing (loading) time, by querying the procedural entry points of the dynamic libraries that were imported by the #includecode directive. Failing to resolve the addresses fails the loading of the PMI file. The calling convention is _Syscall (C). A return value of 0 denotes success; otherwise, an error applicable to the operating system should be returned.

Internal PMI functions are called implicitly by specifying the function's name. See PMI Sections for more information.

    CALL function;
    <function>  ::= identifier

For example:

    [SetMode]        //set mode section
    call fnPMISetMode;                      //call imported fnPMISetMode function