Only as a real service using RexxStart, sorry. There's a sample service (in
Samples\WinBase\Service) in the MS Platform SDK that can be quickly hacked
into shape, which does the basic SCM interfacing. Take a look at it.
From the readme from that example:
1) The use of the SERVICE.H header file and the accompanying SERVICE.C file
simplifies the process of writing a service. You as a developer simply need
to follow the TODO's outlined in the header file, and implement the
ServiceStart and ServiceStop functions for your service.
There is no need to modify the code in SERVICE.C. Just add SERVICE.C to your
project and link...
As you say, the service should be made dependent on rxapi. Also, note that
2.1.3 with rxapi as a service is an absolute prequisite, as 2.1.2 and
earlier have a range of defects that prevent successful use in a service or
under terminal services.