FREE TUTORIALS ON C programming

Monday, January 13, 2014

The following program disables autoplay in control panel.


#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 3 /t REG_SZ /d  Microsoft.AutoPlay /f");



}

11:49 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search