|
|
|
[原创]来自核心的祝福
用GDI绘也是来自核心的,呵呵。 |
|
|
|
|
|
[原创]数值分析课程设计
我来up下,头像的分形效果不错呀~ |
|
[求助]请教下这个软件在桌面上飘雪的是怎么实现的
我觉得是用GDI的光栅布尔操作实现的。 |
|
[原创][分享]不需要任何版本.net的VC2008Pro IDE精简版
expression版也不是很大。 |
|
|
|
[求助]一个API 导致内存大量泄漏???
不太清楚你vb中com接口怎么释放的。c++里要显式调用pUnknown->Release()的。 我注意到你的代码中有一个_Release被注释掉了。 c++代码如下: WallPaperChanger::WallPaperChanger() { ::CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER, IID_IActiveDesktop, (void**)&m_pActiveDesktop); } WallPaperChanger::~WallPaperChanger() { if (m_pActiveDesktop) { m_pActiveDesktop->Release(); m_pActiveDesktop = NULL; } } bool WallPaperChanger::SetWallPaper(LPCWSTR pwszWallpaper, WallPaperStyle wallpaperStyle) { if (m_pActiveDesktop) { if (S_OK == m_pActiveDesktop->SetWallpaper(pwszWallpaper, 0)) { WALLPAPEROPT wpopt; wpopt.dwSize = sizeof(wpopt); wpopt.dwStyle = wallpaperStyle; m_pActiveDesktop->SetWallpaperOptions(&wpopt, 0); m_pActiveDesktop->ApplyChanges(AD_APPLY_SAVE); return true; } } return false; } |
|
|
|
前进方向 如何前进
倘若楼主希望能有一个好的工作和发展的话,个人觉得这一块(OD、逆向、windows内核、VIRUS、ROOTKIT..)可以作为lz的兴趣继续发展下去,但是不要把他当成事业。毕竟目前国内的相关行业比较少、不成熟、范围也比较狭窄。 楼主接触信息安全无非就是2个方向:理论和工程。 目前大部分人应该是走的工程方向。倘若lz可以,选择理论应该会有不错的前途。 对于lz学习c++,我是持肯定态度的。虽然说现在c++程序员有很多,但你确实可以利用它来做一些事情,做一些能够帮助别人的项目,进而也能使自己得到提高。这不等同于破解或者写病毒、木马、外挂等事情。建设远比破坏来得更有意义、挑战性和重要。 |
|
|
|
|
|
|
|
[求助]不死心, 再问:"Windows 的“当按 CTRL 键时显示指针是用了什么 API 来实现的?"
这个是基于gdi的光栅布尔操作来的,这样才能在不需要重绘的情况下擦除先前绘制的颜色。 像ROP_NOT ROP_XOR这些布尔操作恰好可以再一定程度上保存背景信息,从而在第二次绘制的时候将背景恢复,且在视觉上能达到醒目的效果。 如果想指定颜色的话,只能依赖于重绘了这样的整个桌面会闪烁。 至于windows自带那个为什么一直是一种色彩,他可能就不是用的这种方法,应该是在鼠标显示的相关实现里做的。 |
|
|
|
[求助]不死心, 再问:"Windows 的“当按 CTRL 键时显示指针是用了什么 API 来实现的?"
实现你这个功能的核心代码在raw_nput_processer.cpp里的: if ((WM_KEYUP == uMessage || WM_SYSKEYUP == uMessage) && (VK_CONTROL == curKeyCode)) { HDC hdc = ::GetDC(NULL); int nS = ::SaveDC(hdc); HPEN hNewPen = ::CreatePen(PS_SOLID, 5, RGB(255, 255, 255)); HPEN hOldPen = (HPEN)::SelectObject(hdc, hNewPen); ::SetROP2(hdc, R2_XORPEN); POINT cursorPt; ::GetCursorPos(&cursorPt); for (int i = 5; i > 0; ) { int l = i << 5; ::BeginPath(hdc); ::Ellipse(hdc, cursorPt.x - l, cursorPt.y - l, cursorPt.x + l, cursorPt.y + l); ::EndPath(hdc); ::StrokePath(hdc); ::Sleep(100); ::BeginPath(hdc); ::Ellipse(hdc, cursorPt.x - l, cursorPt.y - l, cursorPt.x + l, cursorPt.y + l); l = --i << 5; ::EndPath(hdc); ::StrokePath(hdc); } ::SelectObject(hdc, hOldPen); ::DeleteObject(hNewPen); ::RestoreDC(hdc, nS); ::ReleaseDC(NULL, hdc); } |
|
[求助]不死心, 再问:"Windows 的“当按 CTRL 键时显示指针是用了什么 API 来实现的?"
代码和执行程序都在附件里,看看是不是你要的效果:) 这个是vc9的工程。 vc6可能编译不了。 |
|
[原创]金山互联网安全公司诚聘反病毒工程师
还在市区,原来的楼推倒重新盖了一个15层的金山大楼。现在金山的办公环境还是不错的。 原来的厂房好像还在继续使用。 现在有3部电梯,不需要爬楼梯了。 此外,食堂也由6人一桌的形式改成自助餐的形式了。不过还是每顿6菜一汤,只是现在要排队而已。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值