Пример #1
0
// Disconnect closes connection m to servise control manager.
func (m *Mgr) Disconnect() error {
	return winapi.CloseServiceHandle(m.Handle)
}
Пример #2
0
// Close relinquish access to service s.
func (s *Service) Close() error {
	return winapi.CloseServiceHandle(s.Handle)
}