Solved

How to Persist Service Start Parameters.

Posted on 2003-12-09
5
578 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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