IIS Server - Please Help! Creating Thread Pool for ISAPI Extentions

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > June 2005 > Please Help! Creating Thread Pool for ISAPI Extentions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Please Help! Creating Thread Pool for ISAPI Extentions
Pola

2005-06-27, 2:48 am

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


David Wang [Msft]

2005-06-27, 8:48 pm

You will have to open/read the file yourself using something like
HSE_REQ_TRANSMIT_FILE.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Pola" <Pola@discussions.microsoft.com> wrote in message
news:3FC30858-1103-45C0-8CF4-D8DB424499E7@microsoft.com...
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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com