Sorry, I forgot one thing - those utilities don't included into standart windows distributive. You should download
srvany or
both utilities and install them on your computer. Please, read
this example which provides you to create a new service on your system.
If you will need any help I will answer you cheerfully.
Good luck!
--------------------------------
SV* sv_bless(SV* sv, HV* stash);