User and Reference Guide for the Intel® Fortran Compiler 14.0

Including the Intel® Visual Fortran Interface Definitions for Windows* API Routines

This topic only applies to Windows* OS.

Intel® Fortran provides interface definitions for both the Intel Fortran library routines and nearly all of the Windows* API routines in the standard include directory.

To include the Windows API interface definitions, do one of the following:

  1. Add the statement USE IFWIN to include all Windows API routine definitions.

    The USE IFWIN statement makes all parameters and interfaces for most Windows routines available to your Intel Fortran program. Any program or subprogram that uses the Windows features can include the statement USE IFWIN, which is needed in each subprogram that makes graphics calls.

    Add the USE statement before any declaration statements (such as IMPLICIT NONE or INTEGER) or any other modules containing declaration statements.

  2. You can limit the type of parameters and interfaces for Windows applications to make compilation times faster. To do this, include only the subsets of the Windows API needed in multiple USE statements (see the file ...\INCLUDE\IFWIN.F90).

    To locate the specific libraries for the routines being called, view the QuickInfo at the bottom of the routine page in the Platform SDK documentation, which lists the import library name. For example, to call only GetSystemTime, you need the interface definitions provided in kernel32.mod (binary form). To do this, add the following USE statement:

    USE KERNEL32

If you want to further minimize compile time, add the ONLY keyword to the USE statement. For example:

USE KERNEL32, only: GetSystemTime, GetLastError

Submit feedback on this help topic