You have three ways how to close data timer handles:
Pass TIMER_DATA_HNDL_CLOSE as timer flag when creating the timer, the handle will be closed automatically then.
Close the handle yourself with CloseHandle()
pass true as second parameter when killing the timer with KillTimer()
All of the ways mentioned above will close the datatimer's data handle.
Why reinvent the wheel ? Download smlib with over 350 useful functions.
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0