Hi Kent,
I'm including part of a previous posting below.
================
The service application was designed in a rather unorthodox way.
We wanted to provide SpamFilter in three different flavors. A Windows standalone application, a Windows NT service, and a Unix GUI application (a Unix console application is on the way). We succeeded, and furthermore we simplified development a lot by using a single set of source code that can be compiled in three different ways.
The service is unusual in that there is no control program. The GUI you see *is* the service. Closing the GUI would shutdown the service. When there is nobody logged in NT, the GUI window is simply hidden, and keeps running in the background. You are correct, this is not how usually services are designed, but it is what allows us to maintain two applications (standalone & service) always in sync development-wise
================
We are very familiar with the articles you mention, unfortunately Borland Delphi (our compiler) has caused a few problems with the service-mode when we proceeded with our way of programming. But since the problem of not being able to use the tray icon is proving to be a pain with Term Services, we are trying to come up with an alternative way of forcing the tray icon to diplay using a helper app. We hope to have that ready soon, unless other issues come up.
Roberto Franceschetti LogSat Software
|