Steps to Create a Typical ISAPI Extension
After you have decided what your ISAPI Extension Server will do, you can get started by using the ISAPI Extension Wizard. For more information about starting a new project using wizards, see Visual C++ Wizards that Help You Begin Your Program. After the project has been created, you add your custom functionality. The steps are described below.
To create a project using the ISAPI Extension Wizard
In the development environment, choose New from the File menu and click the Projects tab.
On the Projects tab, click the ISAPI Extension Wizard and name your project.
In Step 1 of the Extension Wizard, check the option to Generate a Server Extension object.
Name your -derived extension class, and choose Finish to create the project.
To add your functions
For each command, write a function.
MFC passes a pointer to a CHttpServerContext object when calling your function. Much of the information you want to work with is in the object’s structure data member. You can also use member function callbacks to obtain additional header information, such as the user’s IP address.
For each function, write a parse map entry for the required and optional parameters.
Override CHttpExtensionProc, if you want to do custom processing.
To install your DLL
Copy your DLL into a directory for which users have execute privileges.
For Microsoft Internet Information Server, you set execute permissions in Internet Service Manager.
Clients can now type the URL in the browser to invoke your DLL on the server.
See Also Internet: Where Is...