回复 2楼 thlgood
要代码吗?我给你就是了!简单程序代码:
#include<stdio.h> #include<windows.h> #include<string.h> void main() { printf("\t\t宽屏补丁:BY_金成\t Email:wjckiss@\n"); printf("\t1,穿越火线宽屏补丁(部分A卡无效)\t\t"); printf("2,魔兽宽屏补丁\t\n\n"); int xc; printf("请输入相应的数字并以回车结束:"); scanf("%d",&xc); switch(xc) { case 1: {HKEY hkresult; DWORD dwnum=4; long ret=RegOpenKey(HKEY_LOCAL_MACHINE,"SYSTEM\\ControlSet001\\Control\\GraphicsDrivers\\Configuration\\LGD02A70_00_07DA_1A^03450404E546A24E7BD5E3D20E50A358\\00\\00",&hkresult); ret=RegSetValueEx(hkresult,"Scaling",0,REG_DWORD,(const BYTE*)&dwnum,4); if(ret==0) { printf("\n成功安装穿越火线宽宽屏补丁\n"); RegCloseKey(hkresult); break; } else { printf("安装失败,请联系金成 wjckiss@\n"); } } case 2: { HKEY hk2; DWORD dw2w=1400,dw2h=900; long ret2=RegOpenKey(HKEY_CURRENT_USER,"Software\\Blizzard Entertainment\\Warcraft III\\Video",&hk2); ret2=RegSetValueEx(hk2,"reswidth",0,REG_DWORD,(const BYTE *)&dw2w,4); long ret3=RegSetValueEx(hk2,"resheight",0,REG_DWORD,(const BYTE *)&dw2w,4); if(ret2==0||ret3==0) { printf("成功安装魔兽宽宽屏补丁\n"); RegCloseKey(hk2); break; } else { printf("安装失败,请联系金成 wjckiss@\n"); } } } ShellExecute(0,"open","C:\\Program Files\\Internet Explorer\\iexplore.exe","http://",NULL,SW_SHOW); }