0

在 Windows 6.5 上禁用时钟应用程序

此代码在 Windows 6 中正常运行 .. 但在 Windows 6.5 中不起作用

掌上电脑 (Intermic CN51)

System.Byte[] offValue = new byte[1];
offValue[0] = 0x30;
Microsoft.Win32.RegistryKey registryKey =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"\Software\Microsoft\Clock\", true);
registryKey.SetValue("AppState", offValue);
registryKey.Close();

(Appstate)注册表项已经以 30 值触发..但时钟应用程序中没有任何变化..我尝试更改值但没有任何变化

我想试试 XML 代码,但不知道如何使用它

       -->
<characteristic type="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun">
  <parm name="1" value="clock.exe" datatype="string" />
</characteristic>
<!--
4

1 回答 1

0

要通过策略禁用程序,您需要首先全局设置“黑名单”的使用,然后使用您的不允许应用程序列表:

REGEDIT4

;Enable blacklist of applications that should not run
[HKEY_LOCAL_MACHINE\Security\Policies\Shell]
"DisallowRun"=dword:1

;Add entries to blacklist of applications that should not run
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"1"="fexplore.exe"
"2"="iexplore.exe"
"3"="clock.exe"

另见http://www.hjgode.de/wp/2010/03/27/blacklist-applications-to-disable-use/

于 2015-06-20T04:43:39.330 回答