?
Solved

How to Persist Service Start Parameters.

Posted on 2003-12-09
5
Medium Priority
?
586 Views
Last Modified: 2013-12-03
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
Comment
Question by:skaaman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 9908058
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
 
LVL 48

Expert Comment

by:AlexFM
ID: 9910102
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10883612
PAQed - no points refunded (of 500)

Computer101
E-E Admin
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question