ISAPI Extensions
[This is preliminary documentation and subject to change.]
Extensions provide extended functionality to a Web application. These samples illustrate some of the techniques used in creating ISAPI extensions.
For each sample, complete Microsoft® Visual C++® version 5.0 source and project files are provided in the directory indicated.
-
Simple ISAPI Extension: This sample demonstrates some of the basic features of ISAPI extensions. The project is available at \iissamples\sdk\isapi\extensions\simple.
-
ISAPI and COM: This sample demonstrates how to create and use a COM Component with ISAPI. The project is available at \iissamples\sdk\isapi\extensions\com.
-
Keep-Alive: This sample extension demonstrates keep-alive processing. When an instance of this extension is created, and the HttpExtensionProc entry point function is called by the server, this extension sends keep-alives to the client, along with a submit button that can rerun the extension. The project is available at \iissamples\sdk\isapi\extensions\Keep-Alive.
-
Worker Thread: This sample is an implementation of a worker thread. Worker threads can accomplish a wide variety of tasks, but this worker thread implementation was created specifically to offload processing of certain types of special requests, such as database access, so that the main IIS threads can remain available for HTTP requests. When HttpExtensionProc is called, the extension creates a new thread with the CreateThread function, passes the extension's own ECB pointer to the new thread, and points the thread to the function WorkerFunction. The project is available at \iissamples\sdk\isapi\extensions\WorkThread.
-
KeepAlive with Worker Thread: This sample illustrates how keep-alives work with worker threads in an ISAPI DLL.The project is available at \iissamples\sdk\isapi\extensions\KeepAliveWithThread.
-
Forms and ISAPI (GET): This sample shows how to process forms with the GET method, using ISAPI. The project is available at \iissamples\sdk\isapi\extensions\getform.
-
Forms and ISAPI (POST): This sample demonstrates how to use ISAPI to process forms with the POST method. The project is available at \iissamples\sdk\isapi\extensions\postform.
-
Server Variables: This example demonstrates how to access and display server variables using ISAPI The project is available at \iissamples\sdk\isapi\extensions\servervariables.
-
Redirect: This sample shows how an ISAPI extension can redirect browsers. The project is available at \iissamples\sdk\isapi\extensions\redirect.
-
QueryString: This example demonstrates how parameters passed in a query string can be accessed from an ISAPI extension.. The project is available at \iissamples\sdk\isapi\extensions\querystring.
© 1997 by Microsoft Corporation. All rights reserved.