I try to use the NT service framework class v. 1.75 on a new console application and have followed every steps include all the necessary files and rc and project settings.
The service is created and started. However, I can't view the event being log in the event viewer. It is giving me a message that said
The description for Event ID ( 1 ) in Source (Service ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service.
This could be a windows security issue. Are the files you are trying to delete located on a remote file share. If so you must remember that a service using the "LocalSystem" account by default does not have any network credentials. You will need to configure your service to use alternate credentials
I got attention to your CNTService... wrapper classes and i thought it will be usefull to my application. Before this i was using XYNTService to start my program. The problem here is My App. needs to disable Task Manager. i do this
by setting the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr
Well i am not able to do this anymore as the service runs in a 'Local System'
Is it possible to programatically tell the service to run in an User A/c providing User's logon information.
Great package, I am using it all the time for several projects.
Most are small services that open run database functions on a daily bases. I looked under task manager and these take nearly 2mb of memory. I have a couple of these running on Win2K machines and these machines are struggling from memory usage.
I am using Microsoft Visual C++ .NET 7.1.3088 and I would like to reduce the size of these bad boys!
I've got an existing app that uses Windows for message posting (the windows are always hidden from the user). My understanding is that this is not a problem in a service (the hidden windows still work in the service).
My question is how do I get the app to startup correctly? Currently, I've got the "CWinApp::InitInstance" returning TRUE to start the main frame message pump. But, how do I get the "ServiceMain" to run also?
Do I need to start another thread for the ServiceMain?