« Previous Next »

Answered Thread: Timer Message in ISAPI Filter

Last post 04-14-2009 2:27 PM by _OK. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 04-08-2009, 6:31 PM

    Timer Message in ISAPI Filter

    Hello All,

        Can I have a windows timer message (WM_TIMER)  in a ISAPI Filter.  As I need to check some of the settings every 5 seconds, I thought of having a Timer message in the filter.  Will it effect the performance of the IIS processing.  I am using IIS 5.1 and the program is required for IIS 5.1 +.

    Thanks in Advance,

    Neelesh K J Jain.

  • 04-08-2009, 6:48 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: Timer Message in ISAPI Filter

    Use CreateTimerQueueTimer if you want a periodic timer.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-14-2009, 2:27 PM In reply to

    • _OK
    • Not Ranked
    • Joined on 04-11-2009, 3:31 PM
    • Posts 4

    Answered Re: Timer Message in ISAPI Filter

    Or you can create a thread.

    ThreadProc has for() loop - let it do the job than put it to sleep (for 5 sec)

    You can also implement TerminateFilter to close it gracefully

    The good thing about it – if you need COM access you can CoInitializeEx only once ;-)

Page 1 of 1 (3 items)
Microsoft Communities