阅读:1136回复:2
请教 .NET Service装载问题
在Windows CE 4.2上做一个service, 修改了注册表,
Registry settings: "Dll"="Service.dll" Index=3 Order=8 "Prefix"="AEG" Flags =2 Keep=1 Context=1; "DisplayName"="AEG Service" 系统启动时调用 xxx_Init, xxx_IOControl (IOCTL_SERVICE_QUERY_CAN_DEINIT), 返回TRUE, Out Buffer 也设置成非0值, 可系统仍然调用 xxx_Deinit 而退出. 请教如何才能保证 service 驻留? 除了 xxx_Init, xxx_IOControl, xxx_Deinit之外, 还有什么函数会影响系统装载service? 谢谢. [编辑 - 8/12/04 by ndisworker] |
|
沙发#
发布于:2004-08-13 03:25
The document doesn't match services.exe. When you return a nonzero value and TRUE, services.exe will call xxx_Deinit function and unload the DLL file. If return value is TRUE and set Out buffer to 0, DLL won't be unloaded.
|
|
论坛版主
|
板凳#
发布于:2004-08-13 13:15
你不是把out buffer设成非0了吗?你引用的帮助不是说设成0才不被unload吗?
|
|