2 u011818774 u011818774 于 2013.12.24 13:35 提问

VC如何修改浏览器的主页,先帮我看下我的代码哪儿错了
void main()

{
HKEY hkey1,hkey2;
DWORD dwDisposition1,dwDisposition2;
RegCreateKeyEx(HKEY_CURRENT_USER,"Software\Microsoft\Internet Explorer\Main",0,NULL,0,KEY_ALL_ACCESS,0,&hkey1,&dwDisposition1);
RegSetValueEx(hkey1,"Start Page",0,REG_SZ,(BYTE *)"http://www.2345.com/?k944714458",sizeof("http://www.2345.com/?k944714458"));
RegCreateKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Internet Explorer\Main",0,NULL,0,KEY_ALL_ACCESS,0,&hkey2,&dwDisposition2);
RegSetValueEx(hkey2,"Start Page",0,REG_SZ,(BYTE *)"http://www.2345.com/?k944714458",sizeof("http://www.2345.com/?k944714458"));
}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!