This article shows how to create user defined service in Windows. http://support.microsoft.com/default.aspx?scid=kb;EN-US;q137890