The following c program is used to disable wscui.cpl command and hide action center from windows 7 control panel,in order to see the effect of this program you might have to log off and log on again or sometimes just switching between users works.
#include<stdio.h>int main() {system("reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer /v DisallowCpl /t REG_DWORD /d 1 /f");
system("reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\DisallowCpl /v 1 /t REG_SZ /d Microsoft.ActionCenter /f");
}
0 comments:
Post a Comment