I need to create a dll which starts a timer.
This is easy enough, i'll just use _beginthread, increment a counter for each loop, and Sleep for one second.
The problem is, however, that i need to start multiple instances of this timer, each being able to report back to the single-threaded caller app for each tick.
The caller also have to be able to stop the timer.
The only return from beginthread, is the handle to the thread.