Reputation: 55
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
Upvotes: 1
Views: 2441
Reputation: 10855
rundll32.exe can't act as service! You need helper like srvany.exe (from old Resource Kit).
Upvotes: 2