TCC > Variables & Functions > Variables:
Comments (...)
_SERVICE returns 1 if TCC was started as a service (TCC /N).
Help URL: http://jpsoft.com/help/index.htm?_service.htm