Platform SDK: Exchange Server |
If your gateway runs as a service of Windows NT Server, you must install it in the Windows NT service control manager (SCM). Making your gateway a service of Windows NT Server enables it to start up automatically when the computer is turned on and to run in its own security context. Users also gain the ability to control the gateway through the operating system, instead of requiring a custom user interface.
To register a gateway as a service of Windows NT Server
For an example of this procedure, see the HrInstallService function in \SAMPLES\DbMsg\EXCHANGE\LIBSRC\EXCHINST.C. See Installing Event Logging for specifics on creating the Diagnostics key.