手动增删windows 服务和dll函数

①注册windows服务
sc create "服务名AAA" binPath= "安装目录AAA.exe"
displayname= "服务显示名称XXX XXX" start=auto
 

②删除windows服务

sc delete 服务名称
③命令行执行dll中的函数
rundll32.exe "C: est est_dll.dll"  fortest  //fortest为test_dll.dll中的函数。
------山的那一边
原文地址:https://www.cnblogs.com/mountain2011/p/9025013.html