# MyWindowsService **Repository Path**: ye-yanhong/WindowsService ## Basic Information - **Project Name**: MyWindowsService - **Description**: windows注册服务Service,支持开启,暂停,删除服务操作 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2022-02-12 - **Last Updated**: 2022-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 一个基于windows的服务注册程序源码,可用于windows开机自启任务及守护进程监测 关键代码: string strServiceName = CTool::ReadIni("Register", "ServiceName", "ServiceBasic", ""); 服务名称为: ServiceBasic sin.sin_port = htons(8888); 端口8888 StuService.exe /install StuService.exe /uninstall