2010-06-11 10:51:02 UTC
I call DeleteTimerQueueTimer function in timer callback function. My first
question is "is that safe?"
Assuming that there is no problem, I pass NULL for CompletionEvent parameter
so that the function does not block. So far so good, but because I call
DeleteTimerQueueTimer function in timer callback function it should return
FALSE and GetLastError () should return ERROR_IO_PENDING stating that the
callback function is running. This happens most of the times but sometimes
the function returns TRUE as if the timer callback function has completed.
This behavior is strange because I call DeleteTimerQueueTimer inside timer
callback function. Do you have any idea about what goes wrong?
Thanks in advance