在线笔记
全部博文(596)
发布时间:2013-12-31 14:51:15
//必须以Global开头,跨进程可能找不到#define EVENT_ASYNC L"Global\\XX"//server{ h = CreateEvent(...); .... SetEvent(h);}//必须以Global开头,跨进程可.........【阅读全文】
发布时间:2013-12-30 15:47:18
1. 注册服务到SCM 获取SCM句柄,h_scm = OpenSCManager(..) 注册服务到SCM, h_sev = CreateService(h_scm..)The following is a complete service sample. When using this code as a template, simply add code to the sections that are prefaced by TO_DO.http://msdn.microsoft.com/en-us/library/.........【阅读全文】