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

Please Help! Creating Thread Pool for ISAPI Extentions

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  asp pages throw 500 error  
Author Message
Pola

External


Since: Mar 31, 2005
Posts: 7



(Msg. 1) Posted: Thu Jun 23, 2005 4:16 am
Post subject: Please Help! Creating Thread Pool for ISAPI Extentions
Archived from groups: microsoft>public>inetserver>iis (more info?)

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 file ThreadPool.cpp used SendData(...), this function send back a
CString to the Client using the WriteClient(...).
In the function SendData(...) instead of WriteClient(...) I want to use
ServerSupportFunction(...) that will send me back page (1.htm).
I use function ServerSupportFunction(...) in the SendData():
DWORD dwSize;
char szSTR[1000];
strcpy(szSTR,"1.htm");
dwSize=lstrlen(szSTR);
pECB->ServerSupportFunction( pECB->ConnID,HSE_REQ_SEND_URL,szSTR,&dwSize,NULL)

the ISAPI DLL sent me back the following page:
Document Moved
HTTP/1.1 302 Object Moved Location:1.htm Server:Microsoft-IIS/5.1
Content-Type:text/html
Connection:close Content-Lenght:128

Object Moved

This document may be found here

When I click on "here" I receive my page 1.htm.
How I can use in SendData (...)
{...
ServerSupportFunction(...) function
....
}
in order to receive directly page 1.htm?
I want tread to send me back page 1(1.htm).

Pls help me to solve this problem?
Thank you in advance,
Pola

 >> Stay informed about: Please Help! Creating Thread Pool for ISAPI Extentions 
Back to top
Login to vote
Display posts from previous:   
   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 ]