Windows Service

Try this thread: http://forum.mikrotik.com/t/probe-thread/10321/1

It may have some useful pointers.