Use of Win32 semaphore

Hello,

Is it possible to use a semaphore to prevent a single thread from recursing infinitely ? I am handling a notification message, and unfortunately my handler causes the notification to be Sent again on some machines. I need to find a way to know that I am already handling that message so that I can ignore it when it comes in again. Can this be done?

Thanks
[388 byte] By [bug_crusher] at [2007-11-17 10:28:01]
# 1 Re: Use of Win32 semaphore
The answer should be yes.
myron at 2007-11-9 13:55:44 >
# 2 Re: Use of Win32 semaphore
[ moved thread ]
Marc G at 2007-11-9 13:56:55 >