是否有可能使clientserver程序访问特定IP寻址系统的进程? [英] is it possible to make clientserver program to accesss the process of a particular ip addressed system?
问题描述
我正在尝试使用套接字编程和tcp监听器编码,在编码中,服务器端处于控制台模式,但我想访问正在运行的进程,所以我需要在Windows模式下执行,请帮我解决这个问题用于访问特定ip寻址系统进程的确切代码(服务器端应该是Windows应用程序模式).....
i尝试过有一个简单的聊天应用程序,但对于Windows模式,我不知道,这对我来说是新的......
好的解决方案将不胜感激.....
最好的问候
pradeep
I am trying with socket programming and tcp listener codings, in that codings, server side is in console mode but i want to access the running processes , so i need to do in windows mode , pls help me on this to get some exact code for accessing the process of particular ip addressed system(server side should be windows application mode).....
i tried with a simple chat application but for windows mode i doesnt unsderstand ,this is new for me......
good solutions will be appreciated.....
Best Regards
pradeep
推荐答案
进程
类有一个名为GetProcesses
的方法。在这里,您可以提供计算机名称并获取在其上运行的所有进程的列表。如果您正在寻找一些特定的过程,那么在Process
类中也有相应的方法。详细了解此类此处 [ ^ ]
请注意,您在连接的计算机上需要相关权限。
Process
class has a method calledGetProcesses
. Here you can provide the computer name and get list of all processes running on it. If you are looking for some specific process there are methods for that too inProcess
class. Check out more about this class here[^]
Note that you will need relevant permissions on the computer you are connecting to.
不,你不能做你想做的事。无论服务器是控制台程序还是Windows应用程序都没有区别。如果您需要有关服务器上某些进程的信息,那么服务器必须将其提供给客户端。
No you cannot do what you want. And whether the server is a console program or a Windows application makes no difference. If you want information about some process on the server, then the server will have to provide it to the client.
这篇关于是否有可能使clientserver程序访问特定IP寻址系统的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!