我的应用程序运行时禁用TeamViewer类型程序 [英] Disable TeamViewer Type Programs When My Application Run

查看:224
本文介绍了我的应用程序运行时禁用TeamViewer类型程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Developers,

我希望在我的winform应用程序运行时禁用所有计算机监控程序,如 TeamViewer ,并在我的应用程序运行时启用它。我想阻止我的应用程序跟踪,所以我需要这个。



例如

假设我已经与其他用户连接远程桌面程序一些work.so他/她可以做我的系统上的所有事情。现在假设完成该工作后我忘了关闭远程程序,然后我启动我的winform应用程序,然后他可以跟踪我的应用程序。我想阻止它。所以我认为在我的应用程序启动时禁用这些类型的程序并在关闭时启用。我希望你理解我的要求。

先谢谢。

Hello Developers,
I Want to disable all computer Monitoring programs like TeamViewer when my winform application runs and enable it when my application runs.I want to prevent my application tracking so i need this.

e.g.
Suppose i already connected with other user with Remote Desktop program for some work.so he/she can do all things on my system.now suppose after complete that work i forget to close remote program and i start my winform application then he can track my application.i want to prevent it.so i think to disable these type of programs on my application startup and enable on close.I hope u understand my requirement.
Thanks in Advance.

推荐答案

为什么不阻止你的程序运行呢?



你可以使用 System.Diagnostics程序。 Process.GetProcessesByName(string) [ ^ ]获取进程是否按名称运行您可以创建一个要检查的进程名称数组,然后在打开应用程序的主表单之前检查是否有任何正在运行的程序名称并退出程序。



禁用和启用它们要复杂得多。有些是基于服务的,有些只是后台应用程序。真正禁用或启用它们的唯一方法是强制关闭进程,但是你可能找不到它们,因为有些可能在SvcHost中运行,甚至在另一个用户运行。
Why not just prevent your program from running if any of them are running?

You can use the System.Diagnostics.Process.GetProcessesByName(string)[^] to get if a process is running by name. You can create an array of process names that you want to check, and before opening your main form of your application check if any of these are running and exit the program if they are.

"Disabling" and "Enabling" them is much more complicated. Some are service based, some are just background applications. The only way to really disable or enable them is to forcibly close the process, but you may not find them all since some could be running in SvcHost or even in another user.


这篇关于我的应用程序运行时禁用TeamViewer类型程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆