Lottery - An ISAPI DLL that maintains a persistent worker thread
Lottery.Dll is an ISAPI extension that illustrates how to use a persistent worker thread, allowing it to run independent of client requests. The worker thread continuously increments a lottery number, and when a client request comes in, the current lottery number is sent as a reply. The Lottery sample also illustrates how to change security tokens and how to use HTTP_STATUS_PENDING.
Steps to build the sample:
The makefile that comes with the Internet SDK uses the DLL version of the C Runtime Library. You must have this DLL on your server in order for the samples to work. For example, if you are using Visual C++ 4.0 to build the DLL, it will need the debug version of the C Runtime Library DLL, named MSVCR40D.DLL. Verify that this file is in your server's SYSTEM32 directory.