The module configuration of a CGI application is not restricted in particular except that it needs a main program. For an ISAPI application, however, the following three modules must be defined.
GetExtensionVersion
HttpExtensionProc
TerminateExtension
HttpExtensionProc corresponds to the main program of a CGI application. GetExtensionVersion and TerminateExtension, corresponding to nothing of a CGI application, are the functions used for the initialization and termination processing, respectively.
For details about GetExtensionVersion, HttpExtensionProc, and TerminateExtension, see "GetExtensionVersion" "HttpExtensionProc" and "TerminateExtension" In Chapter 2. Additionally, the main program must be named HttpExtensionProc. For example, modify the application as follows:
Description in a CGI application
IDENTIFICATION DIVISION. PROGRAM-ID MAINPROG. ENVIRONMENT DIVISION.
Modified description in an ISAPI application
IDENTIFICATION DIVISION. PROGRAM-ID "HttpExtensionProc". ENVIRONMENT DIVISION.