Table of Contents

Sparkle.Host.WinService Namespace

Anonymous methods

Name Description
TServiceBody A procedure type for the body of a service. The procedure runs on the thread the SCM creates for ServiceMain, not on the main thread.

Methods

Name Description
ReportRunning Reports SERVICE_RUNNING. Idempotent, and ignored when not running as a service.
ReportStopPending Reports SERVICE_STOP_PENDING. Idempotent, and ignored when not running as a service.
SetReloadHandler Starts accepting SERVICE_CONTROL_PARAMCHANGE and calls AProc when it arrives.
TryRunAsService Runs ABody as a Windows service, blocking until it returns.