【VC开源代码栏目提醒】:网学会员鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“XMLTestIsapi.cpp”一文,供大家参考学习
// XMLTestIsapi.cpp : 定义 DLL 应用
程序的入口点。
//
#include "stdafx.h"
// 对于 WebDbg.exe 的自定义断言和跟踪处理
#ifdef _DEBUG
CDebugReportHook g_ReportHook;
#endif
[ module(name="MyXMLTest", type="dll") ];
[ emitidl(restricted) ];
typedef CIsapiExtension<> ExtensionType;
// ATL Server ISAPI 扩展
ExtensionType theExtension;
// 将 ISAPI 导出委托给扩展
//
extern "C" DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB)
{
return theExtension.HttpExtensionProc(lpECB);
}
extern "C" BOOL WINAPI GetExtensionVersion(HSE_VERSION_INFO* pVer)
{
return theExtension.GetExtensionVersion(pVer);
}
extern "C" BOOL WINAPI TerminateExtension(DWORD dwFlags)
{
return theExtension.TerminateExtension(dwFlags);
}