开发者

about windows services

i have two questions:

  1. can win开发者_如何学Godows services register to receive SENS network events because my service just stops when i try to do it.
  2. after the service onStart() method has been called, if no seperate Timer or thread is started, does the service stop ??

NOTE: i am using C# services to implement my service

thanx, AB


  1. You should be able to, I'm not real familiar with SENS specifically but you should be able to do just about anything (outside of UI related, and that's doable too just more caveats). One thing you might want to check out is what user account your service is running, you may need to use something like LocalServie or LocalSystem to have the proper permissions.

  2. No the process continues to run, but if you don't have a timer or some other mechanism to invoke your code, then your service won't do anything.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜