Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading a windows service?

1 view
Skip to first unread message

Quentin David Jones

unread,
Dec 4, 2006, 2:37:34 AM12/4/06
to
Greetings all,

(Please advise if there is a better newsgroup to ask such questions :-)

I am starting to build a Windows Service application - I am using C++
Builder 6 which makes it much easier.

So,
I have built the example program (500ms Beep) from chapter 7 of the Borland
manual (C++ Builder 6.) It compiles OK and I have the output exe file.

But,
I can't get it to show up the Services list - i.e. I don't know how to LOAD
the service. So, how do I get the service loaded?

I tried running it with /install option.
Still no service.

The book says a key
" HKLM \ SW \ Microsoft \ Windows NT \ CurrentVersion \ Image File Execution
Options "
should be set with the file name and BCB link.
I did that.
Still no service.

(There is also a program "installutil" mentioned online. It only works for
.NET though.)

I found a program that turns any exe into a service - that works, but there
must be an easy way.

I am sure this is a simple issue :-)
Can someone please get me started?

Thanks.

Quentin


bejoy

unread,
Dec 4, 2006, 8:21:49 AM12/4/06
to
There are APIs
CreateService
DeleteService
ControlService
MSDN has a lot of sample code just search for service programs
search for installing a service in MSDN

Quentin David Jones

unread,
Dec 4, 2006, 7:16:45 PM12/4/06
to
Thanks,
it's making sense now :-)

Q.

"bejoy" <bejoy....@gmail.com> wrote in message
news:1165238509.2...@j44g2000cwa.googlegroups.com...

0 new messages