1
votes

I was able to run a dll using rundll32.exe .

Now I want to run it as a windows service but it doesn't seem to start and gets timeout.

I am not sure how I could pass the parameters.

Trying something along the lines of ..

sc.exe create service binPath= "c:\windows\system32\rundll32.exe -test.dll -Main"

Trying the suggestions from creating a service with sc.exe; how to pass in context parameters but it doesnt seem to work.

Any suggestions?

Thanks,

Karthik

1
What does not work? Did you check the Services Control Applet and review the commandline for service?hmjd

1 Answers

2
votes

rundll32.exe can't act as service! You need helper like srvany.exe (from old Resource Kit).