NT Service handling functions
v1.05

General
-------
This set of functions will allow you to start, stop, pause, resume,
create and delete services under WinNT; it all takes place natively
in InstallShield, no external DLLs needed.

Scripts:       These are the current working copies - simple include into your setup
Original:      Original ntservice.rul file before the rewrite
MyService:     Sample service (VC++ 6.0)
Service Test:  IS 5.5 created sample, exercising all the functions against MyService


Functions:
----------
prototype _InitServiceConnections(STRING);
prototype _CloseServiceConnections();

Internal functions not normally needed to be called directly.  These open a connection
to the SCManager and Service (if applicable).

prototype _IsServiceAvailable(STRING);
prototype _StartNTService(STRING);
prototype _StopNTService(STRING);
prototype _IsNTServiceStopped(STRING);
prototype _PauseNTService(STRING);
prototype _ResumeNTService(STRING);
prototype _DeleteNTService(STRING);

These functions do exactly what you'd think; the parameter is the service *name*,
not the display name. See the example install if you need clarification.

prototype _CreateNTService(STRING, STRING, NUMBER, NUMBER, NUMBER, STRING, STRING,
                           NUMBER, STRING, STRING, STRING);

This one is the hardest of the bunch; the parameters are rather complex, so it is
advised you read the MSDN/VC++ help for "CreateService".  Read the function itself
for the inline comments to help you.  In the most basic sense, you can directly
port your C parameters over to this function, the function internally takes care of
the pointer stuff.


Bugs:
-----
The pause function doesn't seem to work with the MyService sample; if anyone would
like to debug, feel free.


Credits:
--------
Authors:  Mike Hegyi <mikeh@epicsys.com> - Original
          Stephan Hagedorn <shagedorn@dspace.de> - Revisions
          Alan F. Barksdale <afbarksd@ingr.com> - Extensions
          Giorgio Cognigni <giocogni@hotmail.com> - IS3 Support
          Troy Engel <tengel@abtcorp.com> - Rewrite, Extensions, Docs, Samples

Other:    Ken Dyck <kdyck@go-dsp.com> - Reading his code helped ;-)
          Stefan Krueger <skrueger@installsite.org> - InstallSite guru


Last revised by:  Troy Engel <tengel@abtcorp.com>
If you make any revisions please try to keep the package up to date, intact, and
whole. The package on InstallSite should be considered the master.
