Logon failure when trying to start the service after installing the service programaticallyI have one problem in installing the Service programatically.I have created service using Service API(i.e createService ).When I create and install service as LocalSystem account(i.e when its user is system,i.e last 2 parameters in CreateService are NULL) every thing works fine.But my service requires to run on adminstrator account .So I have to specify the user name and password in last 2 parameters of CreateService function.But doing this doesn't work when I try to start servce after installing it.Starting it gives "logon failure" message.But when I change the password manually in service property then every thing works fine and even for next time after reinstalling it works fine that mean I have to give the parameter in service property manually.Can any one throw a light on this ?
OS used Windows server 2003
Shrishail Uppin