91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

安全等級(jí) 添加網(wǎng)站列表 彈出窗口 設(shè)置代理服務(wù)器 C++,IE瀏覽器的一些常規(guī)設(shè)置,主要是找到對(duì)應(yīng)的注冊(cè)表,全部在IE11實(shí)踐成功。 如果沒有積分,請(qǐng)私信我留下郵箱,我會(huì)盡快發(fā)過去

資源截圖

代碼片段和文件信息

//?localInternet.cpp?:?Defines?the?entry?point?for?the?console?application.
//

#include?“stdafx.h“
#include?
#include?
#include?
#include?
#include?
#include?

using?namespace?std;
#pragma?comment(lib“wininet.lib“)//InternetSetOption?函數(shù)使用

void?SetValue()//設(shè)置安全等級(jí)等的值,第一步
{
DWORD?dwtype?sl?=?256;?
int?sz[256];?
HKEY??hKeyResult?=?NULL;
string?strUrl?=?“Software\\Microsoft\\Windows\\CurrentVersion\\Internet?Settings\\Zones\\3“;//安全級(jí)別
//string?strUrl?=?“Software\\Microsoft\\Internet?Explorer\\New?Windows“;//組織彈出??PopupMgr
//string?strUrl?=?“Software\\Microsoft\\Internet?Explorer\\Download“;//允許運(yùn)行或安裝軟件,即使簽名無效?RunInvalidSignatures??第四步



if(ERROR_SUCCESS?==?::RegOpenKeyEx(HKEY_CURRENT_USER?strUrl.c_str()?0?KEY_ALL_ACCESS?&hKeyResult))
{
printf(“RegOpenKeyEx?success!\n“);

}

if(ERROR_SUCCESS?==RegQueryValueEx(hKeyResult?“CurrentLevel“?NULL?&dwtype?(LPBYTE)sz?&sl))

{
printf(“RegQueryValueEx?success!\n“);

}

//12000級(jí)別為高,十進(jìn)制73728;11500,十進(jìn)制70912;11000,十進(jìn)制69632
DWORD?m_newValue?=?73728;//設(shè)置需要進(jìn)行改變的值;

if(ERROR_SUCCESS?==RegSetValueEx(hKeyResult?“CurrentLevel“?NULLREG_DWORD(unsigned?char*)&m_newValuesizeof(DWORD)))
{
printf(“RegSetValueEx?success!\n“);

}
RegCloseKey(hKeyResult);?
}


int?__stdcall?GetCountOfSite()//選擇受信任站點(diǎn)
{
int?iRet?=?0;

CString?str?strTemp;
str.Format(“%d“iRet+1);
CString?strKeyName?=?“Range“?+?str;

HKEY?hKEY;
HKEY?hKeyRoot?=?HKEY_CURRENT_USER;
LPCTSTR?lp?=?“Software\\Microsoft\\Windows\\CurrentVersion\\Internet?Settings\\ZoneMap\\Ranges\\“;
while(::RegOpenKeyEx(hKeyRoot?lp?+?strKeyName?0?KEY_READ?&hKEY)?==?ERROR_SUCCESS)//如果無法打開hKEY則中止程序的執(zhí)行
{
++iRet;
str.Format(“%d“iRet+1);
strKeyName?=?“Range“?+?str;
}

::RegCloseKey(hKEY);

return?iRet;
}

void?AddSite()//添加受信任的站點(diǎn)的網(wǎng)站列表
{
CString?strSite?=?“https://0000“; //此處即為需要添加的網(wǎng)站地址

int?iIndex?=?strSite.Find(“:“);
CString?strIp?=?strSite.Mid(iIndex+3);
CString?strHead?=?strSite.Left(iIndex+3);
if?(((strHead?==?“http://“)?||?(strHead?==?“https://“)))
{
//查找注冊(cè)表Index
int?iCount?=?GetCountOfSite();

//插入注冊(cè)表
DWORD?dwData?=?2;
CString?str?strTemp;
str.Format(“%d“iCount+1);
CString?strKeyName?=?“Range“?+?str;

DWORD?dwTemp;
HKEY?hKEY;
HKEY?hKeyRoot?=?HKEY_CURRENT_USER;
LPCTSTR?lp?=?“Software\\Microsoft\\Windows\\CurrentVersion\\Internet?Settings\\ZoneMap\\Ranges\\“;
if(::RegCreateKeyEx(hKeyRoot?lp?+?strKeyName?0?REG_NONE?REG_OPTION_NON_VOLATILE?KEY_ALL_ACCESS?NULL?&hKEY?&dwTemp)?==?ERROR_SUCCESS)
{
::RegSetValueEx(hKEY?“:Range“?0?REG_SZ?(BYTE*)strIp.GetBuffer()?strIp.GetLength());
::RegSetValueEx(hKEY?(strHead.Left(strHead.Find(“:“))).GetBuffer()?0?REG_DWORD?(BYTE*)&dwData?sizeof(DWORD));????????????
}

::RegCloseKey(hKEY);

}
}


void?SetValuePop()//設(shè)置彈出窗口阻止程序
{
DWORD?dwtype?sl?=?256;?
int?sz[256];?

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-09?10:21??localInternet\
?????目錄???????????0??2018-05-09?10:01??localInternet\Debug\
?????文件??????103936??2018-05-09?10:02??localInternet\Debug\localInternet.exe
?????文件??????689732??2018-05-09?10:02??localInternet\Debug\localInternet.ilk
?????文件?????1272832??2018-05-09?10:02??localInternet\Debug\localInternet.pdb
?????目錄???????????0??2018-05-09?10:21??localInternet\Release\
?????文件???????17920??2018-05-09?10:21??localInternet\Release\localInternet.exe
?????文件??????650240??2018-05-09?10:21??localInternet\Release\localInternet.pdb
?????目錄???????????0??2018-05-09?10:21??localInternet\localInternet\
?????目錄???????????0??2018-05-09?10:02??localInternet\localInternet\Debug\
?????文件????????7402??2018-05-09?10:02??localInternet\localInternet\Debug\BuildLog.htm
?????文件?????????663??2018-05-09?10:01??localInternet\localInternet\Debug\localInternet.exe.embed.manifest
?????文件?????????728??2018-05-09?10:01??localInternet\localInternet\Debug\localInternet.exe.embed.manifest.res
?????文件?????????621??2018-05-09?10:02??localInternet\localInternet\Debug\localInternet.exe.intermediate.manifest
?????文件??????203133??2018-05-09?10:02??localInternet\localInternet\Debug\localInternet.obj
?????文件?????4128768??2018-05-09?10:01??localInternet\localInternet\Debug\localInternet.pch
?????文件??????????67??2018-05-09?10:02??localInternet\localInternet\Debug\mt.dep
?????文件???????11797??2018-05-09?10:01??localInternet\localInternet\Debug\stdafx.obj
?????文件??????592896??2018-05-09?10:02??localInternet\localInternet\Debug\vc90.idb
?????文件??????520192??2018-05-09?10:02??localInternet\localInternet\Debug\vc90.pdb
?????文件????????1338??2018-05-09?09:23??localInternet\localInternet\ReadMe.txt
?????目錄???????????0??2018-05-09?10:21??localInternet\localInternet\Release\
?????文件????????8670??2018-05-09?10:21??localInternet\localInternet\Release\BuildLog.htm
?????文件?????????616??2018-05-09?10:21??localInternet\localInternet\Release\localInternet.exe.intermediate.manifest
?????文件?????1161123??2018-05-09?10:21??localInternet\localInternet\Release\localInternet.obj
?????文件?????4128768??2018-05-09?10:21??localInternet\localInternet\Release\localInternet.pch
?????文件??????????67??2018-05-09?10:21??localInternet\localInternet\Release\mt.dep
?????文件???????67805??2018-05-09?10:21??localInternet\localInternet\Release\stdafx.obj
?????文件??????232448??2018-05-09?10:21??localInternet\localInternet\Release\vc90.idb
?????文件??????421888??2018-05-09?10:21??localInternet\localInternet\Release\vc90.pdb
?????文件????????6233??2018-05-09?10:21??localInternet\localInternet\localInternet.cpp
............此處省略8個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源