• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 596
  • Last Modified:

How to Persist Service Start Parameters.

Is there a way to persist the start parameters field in a Windows service properties dialog.

My code accepts it fine, the next time, but I need to manually specify the parms everytime the service starts.

thx
0
skaaman
Asked:
skaaman
1 Solution
 
jkrCommented:
That's by design - the common workaround is to place the arguments you want to examine e.g. in a registry key and have the service read them from there explicitly.
0
 
AlexFMCommented:
CreateService function adds service to SCM database. It's lpBinaryPathName parameter may contain both service exe file name and required parameters. You can see the sample of service registration code in the book "Programming Served-Side Applications for Microsoft Windows 2000" by Jeffrey Richter and Jason D. Clark.
0
 
Computer101Commented:
PAQed - no points refunded (of 500)

Computer101
E-E Admin
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now