I am trying to implement a polling function in my driver. So I used CreateEvent and SetTimer function. In SetTimer, I used TimerPeriodic type.

When I do device reset, I do not want to have this poll function running, So I call CloseEvent function before starting device reset. Even after calling CloseEvent, I could see
that Timer handler function is getting trigged.

Is it not that CloseEvent should delete the Timer object and make sure that timer handler function is scheduled further? Or Is there any way to make sure the timer handler function
is not trigged after calling CloseEvent?