|
[翻译]Web Hacking 101 中文版
翻译幸苦了 |
|
|
|
[讨论]辞职了,接下来又不知道干什么了
学几个月就想入职,恐怕只能呵呵了 |
|
|
|
[求助]想去HK检查
现在的形式是生女儿有奖,生儿子自己养 |
|
[求助]C# NetworkStream循环为什么是收到数据循环,而不是一直循环?
学习路径是从ASM>C>其他高级语言就不会有这种困惑了 |
|
[原创]使用代码关闭XP没有经过WHQL认证的ndis驱动安装警告
/************************************************* Function: SetSigpolicy Description: 设置驱动验证状态 Input: true启用驱动验证,false取消驱动验证 LuaInput: 无 Output: 无 Return: 返回成功状态布尔值 LuaReturn: 无 Others: 非Lua直接调用函数 *************************************************/ BOOL SetSigpolicy(BOOL a1) { typedef int (__stdcall *GETREALSYSTEMTIME)(_SYSTEMTIME *); BOOL bResult; HMODULE hSetup; HKEY hKey; DWORD cbData; DWORD Type; DWORD Data; _SYSTEMTIME SystemTime; GETREALSYSTEMTIME GetRealSystemTime; hKey = 0; cbData = 4; bResult = FALSE; if (ERROR_SUCCESS == RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\WPA\\PnP", 0, KEY_QUERY_VALUE, &hKey) )//正常XP不存在此键值 { if ( !RegQueryValueEx(hKey, "seed", 0, &Type, (BYTE *)&Data, &cbData) ) { if ( cbData == 4 ) { if ( Type == 4 ) // REG_DWORD { hSetup = LoadLibrary("setupapi.dll"); if ( hSetup ) { GetRealSystemTime = (GETREALSYSTEMTIME)GetProcAddress(hSetup, "pSetupGetRealSystemTime"); if ( GetRealSystemTime ) { SystemTime.wDayOfWeek = 4; //参数2赋值到wDayOfWeek低位 SystemTime.wYear = HIWORD(Data);//Seed高位赋值给wYear SystemTime.wMilliseconds = (((4 * (a1 & 3)))<<16) + LOBYTE(SystemTime.wMilliseconds);//参数1赋值到wMilliseconds高位 SystemTime.wMinute = LOWORD(Data);//Seed低位赋值给wMinute GetRealSystemTime(&SystemTime); bResult = TRUE; } FreeLibrary(hSetup); } else { RaiseException(SetupApi,EXCEPTION_NONCONTINUABLE,NULL,NULL); } } } } RegCloseKey(hKey); } return bResult; } |
|
|
|
|
|
[转帖]什么样的人不适合当程序员呢?
好的程序员应该是知己知彼的人,知道客户需求,知道机器怎样运作缺一不可 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值