1.需要#include <windows.h>
http://zhidao.baidu.com/link?url=yOeEGkhe3-kVI6rCqyNp14IjTyXBkQhLeNt-XSTATR5yfjeEIPa5RkyIGDD7I4B2sc9pWR_UdLosic_bYPngf_ 2.blogshttp://www.jb51.net/article/49667.htm 3.reg addsystem("reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v DisableRegistryTools /t reg_dword /d 00000001 /f")