ndisworker
驱动牛犊
驱动牛犊
  • 注册日期2002-10-19
  • 最后登录2012-03-31
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望10点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1092回复:2

请教 .NET Service装载问题

楼主#
更多 发布于:2004-08-12 05:44
在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]
ndisworker
驱动牛犊
驱动牛犊
  • 注册日期2002-10-19
  • 最后登录2012-03-31
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望10点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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.
wxl_50685330
论坛版主
论坛版主
  • 注册日期2002-11-19
  • 最后登录2018-09-25
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望521点
  • 贡献值0点
  • 好评度419点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-08-13 13:15
你不是把out buffer设成非0了吗?你引用的帮助不是说设成0才不被unload吗?
根据地的兄弟们,团结就是力量
游客

返回顶部