Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating ISAPI DLLs

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  outlook express  
Author Message
user1136

External


Since: Nov 26, 2003
Posts: 3



(Msg. 1) Posted: Wed Nov 26, 2003 4:57 pm
Post subject: Creating ISAPI DLLs
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

Sorry about that last mesage, I kinda accidentally pressed 'Send.'

I have Visual C++ .NET, Standard edition, and the option for making an ISAPI
DLL project is not there. Does anyone know about the version of IIS or
Windows required for making ISAPI DLLs? I have Windows XP Professional, and
IIS 5.1.

Thanks in advance,
Robert

 >> Stay informed about: Creating ISAPI DLLs 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Wed Nov 26, 2003 4:57 pm
Post subject: Re: Creating ISAPI DLLs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There's no special requirements here -- I write ISAPI using just the Visual
C++ compiler and my own text editor -- so what's missing is UI glitz, and
that's totally optional.

The only requirements for an ISAPI DLL are:
1. It is a Win32 DLL
2. Exports GetExtensionVersion and HttpExtensionProc (if ISAPI Extension) or
GetFilterVersion and HttpFilterProc (if ISAPI Filter)

So, just create a standard Win32 DLL project, add the .def file to export
the necessary functions and library name, and implement the C-code for the
DLL.

ISAPI questions should be directed to:
microsoft.public.platformsdk.internet.server.isapi-dev

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Roberto" <robert.bowmaker DeleteThis @dse.gen.nz> wrote in message
news:lUSwb.9880$VV6.226051@news.xtra.co.nz...
Hi,

Sorry about that last mesage, I kinda accidentally pressed 'Send.'

I have Visual C++ .NET, Standard edition, and the option for making an ISAPI
DLL project is not there. Does anyone know about the version of IIS or
Windows required for making ISAPI DLLs? I have Windows XP Professional, and
IIS 5.1.

Thanks in advance,
Robert

 >> Stay informed about: Creating ISAPI DLLs 
Back to top
Login to vote
user1139

External


Since: Nov 26, 2003
Posts: 1



(Msg. 3) Posted: Wed Nov 26, 2003 4:57 pm
Post subject: Re: Creating ISAPI DLLs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I would be very grateful if you could e-mail me a skeleton ISAPI DLL
source code - something that output "Hello world" or something. I'm very
new with Visual C++, and these UI gliches aren't helping me! Smile

Thanks in advance,
Robert

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 >> Stay informed about: Creating ISAPI DLLs 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Wed Nov 26, 2003 4:57 pm
Post subject: Re: Creating ISAPI DLLs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ISAPI Extension template. For ISAPI Filter, look up <httpfilt.h> and
change the names of the exported functions and signatures (all in the
include file) in this template and it should work as well.

For functionality, you must look up MSDN for the functions.


ISAPIExt.def:
LIBRARY MyIsapi

EXPORTS
GetExtensionVersion
HttpExtensionProc
TerminateExtension


ISAPIExt.c:
#include <windows.h>
#include <httpext.h>

BOOL WINAPI GetExtensionVersion(
HSE_VERSION_INFO *pVer
)
/*

Purpose:

This is a required ISAPI Extension DLL entry point.

Arguments:

pVer - Points to extension version info structure

Returns:

Always returns TRUE. Returning FALSE causes DLL to not be loaded

*/
{
pVer->dwExtensionVersion = MAKELONG(HSE_VERSION_MINOR,
HSE_VERSION_MAJOR);
lstrcpyn(pVer->lpszExtensionDesc, "Description String",
HSE_MAX_EXT_DLL_NAME_LEN);

return TRUE;
}


DWORD WINAPI HttpExtensionProc(
EXTENSION_CONTROL_BLOCK *pecb
)
/*

Purpose:

********

Arguments:

pecb - pointer to the extenstion control block

Returns:

HSE_STATUS_SUCCESS on successful transmission completion
HSE_STATUS_ERROR on failure

*/
{
return HSE_STATUS_SUCCESS;
}

BOOL WINAPI TerminateExtension(
DWORD dwFlags
)
/*

Purpose:

This is an optional ISAPI extension DLL entry point.
If present, it will be called before unloading the DLL,
giving it a chance to perform any shutdown procedures.

Arguments:

dwFlags - specifies whether the DLL can refuse to unload or not

Returns:

TRUE, if the DLL can be unloaded
*/
{

return TRUE;
}

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"bob bowmaker" <robert.bowmaker.TakeThisOut@dse.gen.nz> wrote in message
news:etbYIv$sDHA.3416@tk2msftngp13.phx.gbl...
I would be very grateful if you could e-mail me a skeleton ISAPI DLL
source code - something that output "Hello world" or something. I'm very
new with Visual C++, and these UI gliches aren't helping me! Smile

Thanks in advance,
Robert

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 >> Stay informed about: Creating ISAPI DLLs 
Back to top
Login to vote
user1136

External


Since: Nov 26, 2003
Posts: 3



(Msg. 5) Posted: Thu Nov 27, 2003 12:35 am
Post subject: Re: Creating ISAPI DLLs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"David Wang [Msft]" <someone.TakeThisOut@online.microsoft.com> wrote in message
news:eDO9AL$sDHA.2304@tk2msftngp13.phx.gbl...
 > There's no special requirements here -- I write ISAPI using just the
Visual
 > C++ compiler and my own text editor -- so what's missing is UI glitz, and
 > that's totally optional.
 >
 > The only requirements for an ISAPI DLL are:
 > 1. It is a Win32 DLL
 > 2. Exports GetExtensionVersion and HttpExtensionProc (if ISAPI Extension)
or
 > GetFilterVersion and HttpFilterProc (if ISAPI Filter)
 >
 > So, just create a standard Win32 DLL project, add the .def file to export
 > the necessary functions and library name, and implement the C-code for
the
 > DLL.
 >
 > ISAPI questions should be directed to:
 > microsoft.public.platformsdk.internet.server.isapi-dev

Awesome, thanks.

-- Robert<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Creating ISAPI DLLs 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Creating ISAPI DLLs with Delphi 5 - Hi, I have an ISAPI DLL created with Delphi 5 and it has a string in the ThreadVar section. This var should be unique to each session/client, but I am finding that a change written by one client is changing the var for another client. Has anyone had..

ISAPI extension creating a file in IIS 6 - Hi, We are currently running IIS5 on Win2K and have started to test migrating to IIS 6 on 2003. I have added our custom IIS exntesions to the allowed extension list, but the first attempt to use it failss (401 error in the IIS log file). The first....

Creating an OLE Object is hanging my ISAPI DLL - Hi, I have a DLL written in Delphi 5 that uses a CreateOLEObject call to run a third party OCX file. When I use this DLL from my apps (with LoadLibrary) it works fine and runs the OCX. But when I call my DLL from an ISAPI dll, the CreateOLEObject call...

Please Help! Creating Thread Pool for ISAPI Extentions - I am developing ISAPI Extension DLL on VC++ (Win XP). I am working with IIS Version 5.1. I found in the MSDN example application Afxpool.exe - this project demonstrates mechanism of creating a thread pool for an MFC - based ISAPI Extension. In the fil...

Please Help! Creating Thread Pool for ISAPI Extentions - I am developing ISAPI Extension DLL on VC++ (Win XP). I am working with IIS Version 5.1. I found in the MSDN example application Afxpool.exe - this project demonstrates mechanism of creating a thread pool for an MFC - based ISAPI Extension. In the fil...
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]