Is there any way to convert an existing dialog based application to an NT service, without using srvany?

Can I create a winmain win a dialog based app?