none
程序和Windows服务通信 RRS feed

Respostas

Todas as Respostas

  • 你好!
         可以使用ServiceController类来达到你的目的,具体可以参考这里,希望对你有帮助:
    http://msdn.microsoft.com/zh-cn/library/system.serviceprocess.servicecontroller%28VS.80%29.aspx
    周雪峰
    terça-feira, 14 de julho de 2009 09:05
    Moderador
  • 至于有人回复了 能否给个实例
    好像ServiceController 只能操作服务的停止和启动吧
    晕死 应该是 程序和Windows服务通信  
    老大给个 程序和Windows服务通信   实例
    terça-feira, 14 de julho de 2009 09:17
  • 没有统一的方法。你得先找服务的作者要服务的开发接口。

    Please mark the post answered your question as the answer, and click the chartreuse pyramid floating over nothingness/null to mark other helpful posts as helpful. This posting is provided "AS IS" with no warranties, and confers no rights.
    Visual C++ MVP
    terça-feira, 14 de julho de 2009 14:12
    Moderador
  • 是我自己想用VS做个Windows服务然后用VS的Windows 用户界面的应用程序
    不知道用NET的那个来通信好
    quarta-feira, 15 de julho de 2009 02:19
  • 可以用WCF或者Remoting。

    Please mark the post answered your question as the answer, and click the chartreuse pyramid floating over nothingness/null to mark other helpful posts as helpful. This posting is provided "AS IS" with no warranties, and confers no rights.
    Visual C++ MVP
    quarta-feira, 15 de julho de 2009 03:07
    Moderador
  •  如果用Remoting的话。请参考http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/Series/NETRemoting.aspx
    看完第一讲就可以编写了。有相应的代码可下载,稍微变一下代码就可以了,将其中的宿主改为服务,将客户端改为windows即可。
    quarta-feira, 15 de julho de 2009 06:12
  • 你好,

    你可以有很多种方法实现跨进程通信IPC(inter-process communication),.NET Framewok3.5在现在内置namedpipe(命名管道)的支持类,.NET 4.0会支持shared memory。如果你是使用.NET1.1/1.0/2.0的话,你要用PInvoke去调用API实现IPC。参考下面的文章:

    http://blog.benday.com/archive/2008/06/22/23182.aspx

    http://support.microsoft.com/kb/871044

    这里有些IPC的完整的例子:
    http://cfx.codeplex.com/
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    quinta-feira, 16 de julho de 2009 01:47
    Moderador
  • 楼上 1.0 2.0的remoting 也有  namedpipe channel
    答案900, 目标五颗星 Aurvana Air, 音乐真的是随风飘来的 凉宫春日 永无止境的八月 你到底什么时候结束阿。。。。
    quinta-feira, 16 de julho de 2009 02:09
    Moderador
  • 你好,

    我是直接建议使用namedpipe作为IPC的方式,没有说.NET Remoting不包含这种channel,不过我的确没有使用过namedpipe channel在.NET Remoting中。

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    quinta-feira, 16 de julho de 2009 02:29
    Moderador
  • 其实服务也是我开发,但是我不知道这样开发这样的服务。对外提供API。而外部程序可以通过API实现想要的服务功能。迷糊中。

    quarta-feira, 13 de abril de 2011 05:53
  • can't find the page, link error
    quinta-feira, 2 de novembro de 2017 02:04