Hi friends,
I have one problem regarding Service.I have created service using Service API(i.e createService Winsvc.h).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 problem requires service to have access to domain resources.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 username and password manually in service property applet 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 guide me where I am making mistake???
Thanks in Advance

Waiting for positive reply.