title: Running a dll using rundll32.exe as a windows service
body: <p>I was able to run a dll using rundll32.exe .</p>
  
  <p>Now I want to run it as a windows service but it doesn't seem to start and gets timeout.</p>
  
  <p>I am not sure how I could pass the parameters.</p>
  
  <p>Trying something along the lines of ..</p>
  
  <p>sc.exe create service binPath= "c:\windows\system32\rundll32.exe -test.dll -Main"</p>
  
  <p>Trying the suggestions from 
  <a href="https://stackoverflow.com/questions/3663331/creating-a-service-with-sc-exe-how-to-pass-in-context-parameters">creating a service with sc.exe; how to pass in context parameters</a>
  but it doesnt seem to work.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks,</p>
  
  <p>Karthik</p>