示例#1
0
文件: service.go 项目: eswdd/bosun
// Close relinquish access to the service s.
func (s *Service) Close() error {
	return windows.CloseServiceHandle(s.Handle)
}
示例#2
0
文件: mgr.go 项目: eswdd/bosun
// Disconnect closes connection to the service control manager m.
func (m *Mgr) Disconnect() error {
	return windows.CloseServiceHandle(m.Handle)
}