in reply to how to print out windows service status
Hello ytjPerl,
I am not running on WindowsOS so I can not really help, but try the sample of code from this similar question Simple WIN32 Service Test.
Hope this helps, BR.