c++ - Unable to stop a windows service with net stop command -
i have created windows service running fine doing following. sc_handle hservice = ::createservice(*m_serviceconfig, // scm database name.c_str(), // name of service displayname.c_str(), // service name display service_all_access, // desired access service_win32_own_process | service_interactive_process, // service type (interactive debug) service_auto_start, // start type service_error_normal, // error control type path.c_str(), // path service's binary nullptr, // no load ordering group