c# - Disable Clock App in Windows 6.5 -
disable clock app on windows 6.5
this code run in windows 6 .. didn't work in windows 6.5
pda (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();
the (appstate) registry-key fired 30 value .. nothing changed in clock app .. tried change value nothing changed in
i want try xml code didn't know how use this
--> <characteristic type="hkcu\software\microsoft\windows\currentversion\policies\explorer\disallowrun"> <parm name="1" value="clock.exe" datatype="string" /> </characteristic> <!--
to disable program policy need set use of 'blacklist' globally first , list of disallowed apps used:
regedit4 ;enable blacklist of applications should not run [hkey_local_machine\security\policies\shell] "disallowrun"=dword:1 ;add entries blacklist of applications should not run [hkey_current_user\software\microsoft\windows\currentversion\policies\explorer\disallowrun] "1"="fexplore.exe" "2"="iexplore.exe" "3"="clock.exe"
see http://www.hjgode.de/wp/2010/03/27/blacklist-applications-to-disable-use/
Comments
Post a Comment