使Windows仅运行一个对用户可见的程序 [英] Making windows run only one program visible to the user

查看:68
本文介绍了使Windows仅运行一个对用户可见的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我承担的任务是使一家小公司的所有计算机只能访问一个网站,就像一个网络亭.在使用了许多白名单网络过滤软件之后,发现公司预算中没有任何东西可以真正满足他们的要求. (阻止用户访问除IE之外的所有程序,并且IE只能访问一个域)我不是世界上最伟大的程序员,但我认为我可以将一个非常简单的C#Web浏览器组合在一起,该浏览器仅允许访问特定域,并且让用户使用它.问题是C#依赖于Windows中存在的其他内容才能正常工作.如果可以然后设置Windows计算机,以便在用户登录时隐藏所有Windows功能,但仍在后台运行,并且正在运行一个特定程序,则此C#Web浏览器将在正确的域上启动,并且那实际上就是用户可以做的所有事情.有人知道实现这一目标的方法吗?

So I have been charged with the task of making all of the computers for a small company only able to access a single website, sort of like a web kiosk. After playing with a lot of the whitelist web filtering software out there and finding nothing that is in the company's budget that really does what they want. (blocking user access to all programs except IE, and IE can only access one domain) I'm not the greatest programmer in the world but I figured I could throw together a really simple C# web browser that only allowed access to a particular domain and make the users use that. Problem is that C# relies on other things existing in Windows to work properly. If it were possible to then setup a windows machine so that when a user logs on, all Windows functions are hidden, but still running in the background, and one specific program is running, then this C# web browser would start on the right domain and that would really be all that the user could do. Does anyone know of a way to make this happen?

我的问题的其他解决方案将不胜感激.我更喜欢针对特定用户的解决方案,而不是网络过滤器或更高版本的解决方案.这样一来,当我对整个网络和计算机进行维护时就可以访问它们,因为用户可以访问相邻办公室提供的许多wifi网络之一(如果是网络级别的话).

Other solutions to my problem would be greatly appreciated. I would prefer a solution that is user specific on individual machines, not a network filter or something higher up. So that I can access the full web and computers when I do maintenance on them and because users could just access one of the many wifi networks available from neighboring offices if it was network level.

是的,有些机器是Windows 7,而其他的机器正在运行XP.

Oh yeah, and some machines are windows 7, and others are running XP.

推荐答案

我建议您使用来自user32的CreateDesktop/SwitchDesktop WinAPI调用.

I suggest you use the CreateDesktop/ SwitchDesktop WinAPI Calls from user32.

例如 http://msdn.microsoft.com/zh- us/library/ms686347(v = vs.85).aspx

不知道如何从C#中调用此方法,但我认为这是可能的.

Don't know how to call this from C#, but I think it is possible.

因此,您应该将桌面创建和切换集成到您的简单C#浏览器中(在启动时)或在单独的应用程序中,该应用程序确实会启动您的浏览器.将此应用程序(或浏览器)添加到用户的自动运行中.

So your should integrate a desktop creation and switching inside your simple C# browser (at start of it) or in separate application, which does start your browser. Add this application (or browser) to the user's autorun.

非常小心,当您进行桌面切换时,是否很难(我认为是不可能)切换回去.

Be very careful, when you does a desktop switch, is it very hard (I think impossible) to switch back.

这篇关于使Windows仅运行一个对用户可见的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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