IsWindowsService reports whether the process is currently executing as a Windows service.
()
| 120 | // IsWindowsService reports whether the process is currently executing |
| 121 | // as a Windows service. |
| 122 | func IsWindowsService() bool { |
| 123 | isSvc, err := svc.IsWindowsService() |
| 124 | return isSvc && err == nil |
| 125 | } |
| 126 | |
| 127 | // ProcessModule describes the process loaded module. |
| 128 | type ProcessModule struct { |
no outgoing calls
no test coverage detected