agent/hybrid/hybrid_windows.go (10 lines of code) (raw):

//go:build windows // +build windows package hybrid import ( "github.com/aliyun/aliyun_assist_client/agent/log" "github.com/aliyun/aliyun_assist_client/agent/util/serviceutil" ) // CleanUpRegisterDataAndExit will clean up hybrid directory and stop service self, should be called // by Agent process itself. func CleanUpRegisterDataAndExit() { logger := log.GetLogger().WithField("action", "CleanUpRegisterData") clean_unregister_data(logger, false) serviceutil.StopAgentService(logger) }