View previous topic :: View next topic |
Author |
Message |
uweb -
Joined: 23 Apr 2006 Posts: 2
|
Posted: Sun Apr 23, 2006 6:56 pm Post subject: ISAPI |
|
|
hello,
my english is not the best, but i try even so to explain clearly what i mean.
I have a simple isapi-dll and it works like it should (i think) but i wont to execute it automaticly by accesing a special folder (for some or for all mime-types).
eg. By
- http://127.0.0.1/vtest/001.dll/xyz.gif ?123
i get
- REQUEST METHOD: GET
- QUERY_STRING: 123
- PATH_INFO: /xyz.gif
- PATH_TRANSLATED: E:\Programme\Abyss Web Server\htdocs\xyz.gif
- CONTENT TYPE:
- REMOTE_ADDR: 127.0.0.1
but i wont the same by
- http://127.0.0.1/vtest/xyz.gif ?123
Two other Questions :
Is it safe that my isapi.dll lifes as long as the server runs ?
- I will keep information in it and they would be lost by a restart.
Is it possible to keep a thread in my isapi.dll to do things independent from a call ? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Apr 24, 2006 11:03 am Post subject: Re: ISAPI |
|
|
To do so, you'll have to declare your ISAPI as the interpreter of .gif files (for an example, refer to http://www.aprelium.com/abyssws/perl-isapi.html ).
Quote: | Is it safe that my isapi.dll lifes as long as the server runs ?
- I will keep information in it and they would be lost by a restart. |
ISAPI DLLs are loaded when they are first needed and will remain active until the server unloads them (in current versions, this happpens when the server is stopped or restarted, but in theory this could happen at any time). When the server is going to unload an ISAPI, it calls its TerminateExtension callback (if defined): see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/0ea5334a-d91c-45c6-a2aa-c6a9c429fc80.asp .
Quote: | Is it possible to keep a thread in my isapi.dll to do things indepen
dent from a call ? |
Yes. You can call any function available in Windows API (or other DLLs) from an ISAPI DLL. This includes calling thread creation functions to launch background threads. _________________ Support Team
Aprelium - http://www.aprelium.com
Last edited by aprelium on Tue Apr 25, 2006 9:55 am; edited 1 time in total |
|
Back to top |
|
 |
uweb -
Joined: 23 Apr 2006 Posts: 2
|
Posted: Mon Apr 24, 2006 11:17 am Post subject: |
|
|
THANK YOU for your competent, understandably and quick help !!! |
|
Back to top |
|
 |
|