Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is the ISAPI Extension Wizard

334 views
Skip to first unread message

Jeff Dege

unread,
Oct 1, 2007, 6:45:45 PM10/1/07
to
I have a problem for which an ISAPI extension wizard may be an
appropriate solution. From what I've read of them, they look promising.
But I've been unable to try them out, because I've been unable to build
one.

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"

David Wang

unread,
Oct 1, 2007, 8:14:04 PM10/1/07
to
I believe the ISAPI Wizard was cut from Visual Studio 2005. And that's
a good thing.

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
//

0 new messages