Register a Serivce in Win2000
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
I need my program to register itself as a service I tried (RegisteSrviceProcess) but it doesn't work with Win2000 :( so I need a way to do it (way that works with Win2000) thanks in advance MR.Byte
CreateService(); - Anders Money talks, but all mine ever says is "Goodbye!"
-
CreateService(); - Anders Money talks, but all mine ever says is "Goodbye!"
A small update... Something like:
schService = CreateService( schSCManager, // SCManager database TEXT(SZSERVICENAME), // name of service TEXT(SZSERVICEDISPLAYNAME), // name to display SERVICE\_ALL\_ACCESS, // desired access SERVICE\_WIN32\_OWN\_PROCESS, // service type SERVICE\_DEMAND\_START, // start type SERVICE\_ERROR\_NORMAL, // error control type szPath, // service's binary NULL, // no load ordering group NULL, // no tag identifier TEXT(SZDEPENDENCIES), // dependencies NULL, // LocalSystem account NULL); // no password
- Anders Money talks, but all mine ever says is "Goodbye!"