Every website I've seen says, in essence:
1. Open Visual Studio
2. Select Project/New
3. Choose "ISAPI Extension Wizard"
I'm running Microsoft Visual Studio 2005, and if there is an "ISAPI
Extension Wizard" in the New Project Templates, I can't find it.
Where should I be looking?
--
Ownership of the means of production is not a privilege, but a social
liability. Capitalists and landowners are compelled to employ their
property for the best possible satisfaction of the consumers. If they are
slow and inept in the performance of their duties, they are penalized by
losses. If they do not learn the lesson and do not reform their conduct
of affairs, they lose their wealth. No investment is safe forever.
- Ludwig von Mises, "Human Action: A Treatise on
Economics"
One hardly needs the wizard and all the MFC ISAPI overhead to write an
ISAPI. It takes but eight lines of code (sans white space) to have a
basic functioning ISAPI Extension (it's not what I'd recommend as
production code; just the shortest lines of code). You will hardly
figure out what those lines are out of the 300 lines of boilerplate
code in multiple files from the ISAPI Extension Wizard.
#include <windows.h>
#include <httpext.h>
BOOL WINAPI GetExtensionVersion( HSE_VERSION_INFO *pVer )
{
return TRUE;
}
DWORD WINAPI HttpExtensionProc( EXTENSION_CONTROL_BLOCK *pECB )
{
DWORD cbBuf = 63;
pECB->WriteClient( pECB->ConnID, "HTTP/1.1 200 OK\r\nContent-Type:
text/html\r\nContent-Length: 0\r\n\r\n", &cbBuf, NULL );
return HSE_STATUS_SUCCESS;
}
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//