使.NET应用程序能够运行的唯一方案?应用程序、方案、NET

2023-09-03 11:10:11 作者:花惜颜︶°

什么是使Windows .NET应用程序是可以在计算机上使用的唯一程序的最佳方法是什么? 我所遇到的定时器或事件与文字匹配回切换窗口一个窗口和一些api32电话拨打形式的最顶端。

What would be the best way to make a Windows .NET application be the only program that can be used on a computer? I have come across timers or events to switch windows back to a window with matching text and some api32 calls to make a form top most.

是否有可能做出这样的窗口的应用程序锁定屏幕,没有任何东西可以,只是屏幕上显示内容做?我想阻止做其他事情的用户,只允许管理员进入桌面。

Is it possible to make an application like the windows lock screen where nothing can be done except that what is on screen? I want to block users from doing other things and only let administrators get to the desktop.

推荐答案

我发现了一个更简单的方法来做到这一点不使用信息亭模式或gpedits之类的任何事情。

I found a much simpler way to do this not using kiosk mode or gpedits or any things like that.

在我的应用我做了问这两个该死的简单的东西 - 没有问题,一个按钮!

In my application I made a button with these two damn simple things- no questions asked!

我用shell.cmd启动单击一次应用程序,AP preF-MS和它的作品魅力。

I used shell.cmd to start a click once application ,appref-ms and it works a charm.

'The logged in user has to be administrator or the app run as administrator once.

My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\system.ini\boot", "Shell", "USR:Software\Microsoft\Windows NT\CurrentVersion\Winlogon")

'This will change the shell to your program for THIS LOGGED IN user- after re logon bye bye exploerer shell hello custom app!            

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell", appPath & "\shell.cmd")`

看我的软件启动,就好像它拥有的窗口!

欲了解更多它是如何工作的全apscect?