Microsoft Internet Server Beta

IS2WCGI - Internet Server to Windows CGI 1.3 Conversion Tool


This sample implements a useful tool if you have Windows CGI applications. The spec is at website.ora.com.

The code for IS2WCGI.DLL illustrates how to gather inbound data in an Internet Server Extension DLL, how to build a profile compliant with the Windows CGI specification, and how to send the data back after the process completes. Since a DLL entry point is necessary, a DllMain function is provided, and makefiles illustrate the linker's /entry option.

If you have built this sample, you can use this form to test it. IS2WCGI.EXE is a sample Windows CGI application that simply replies with the profile it was given. IS2WCGI.DLL is the server extension that translates web data to and from IS2WCGI.EXE.

You can also use IS2WCGI.DLL with other Windows CGI applications you may have. Simply rename the root of the DLL to match your application, and write an HTML page that calls the DLL for the submit button. For example, if you have an app named MYAPP.EXE, rename IS2WCGI.DLL to MYAPP.DLL. Modify the HTML page that accesses MYAPP.EXE so it submits a request to MYAPP.DLL. The DLL will load your application and translate the output for you.


The Sample Form:

Text Field:

Text Field with Defaults:

Checkboxes:

Combo Box:


POST Method to IS2WCGI.DLL:

The DLL must be located in a CGI-BIN directory off the root web directory. This page can be anywhere in your web hierarchy.