|
[讨论]第一个保护模式的cpu的设计的根据是什么?
保护主要是指: 1. 任务间的保护,通过段页机制的内存映射,不同任务相互隔离,这样任务之间不会相互干扰,破坏其它任务的数据或者代码。 关于段页机制的内存映射过程,可以看: INTEL-X86保护模式下的内存管理,最后一幅图详细的介绍了这个过程。 2. 任务内的保护,就比如一个大厅,大门进去之后,各个房间还有自己的门,不同的门相当于不同的保护级别,x86 CPU有4个,虽然OS只用了2个,ring 0和ring 3,从一个房间进入另一个房间,需要钥匙,钥匙正确了才能进去,相当于check dpl,cpl和RPL。这样可以确保低级别的应用代码不会破坏高级别的OS代码。 |
|
OD里CtrL+C键下什么断点?
F2下断点,F9运行 F7, step into F8, step over Shift + F2是什么意思?另外,我的OD找不到那个输入命令的窗口啊?是Alt+F1那开的那个嘛? |
|
[讨论]关于获取系统关机信息
如果你的需求是系统下次启动时替换一些文件,有其它的方法做到这点。 |
|
|
|
|
|
VS中Win32编程,如何让窗口标题栏的左上角显示自己导入的图片
你可以所有的代码贴出来嘛? |
|
|
|
[求助]弱弱弱问个看似有点简单的问题
2aca24b0应该是指针的值,要看信息,应该是dd 2aca24b0 |
|
[原创]小菜也玩inline hook -------GetWindowText
[QUOTE=wuaiwu;981114]取函数地址呀。貌似kernel api 是如此,user32的是[GetWindowText]???,这个知识点我也不太明确。等待大牛给你解答下,额呵呵。 反正GetWindowText也跳一下的,在动用中,kernel32可以直接调用,不用跳板,call GetProcAddress即可。而 us...[/QUOTE] 关于import的API的调用情况,有篇文章 函数的调用之迷 ,希望对你有帮助。 顺便问下,现在还有这么多人使用XP嘛?我们单位去年win7+64bit了,就已经被批判为out了。 |
|
[求助] C++转化为C的问题(gpPicture->Release())
看看这个,面试一道题--C模拟实现C++的多态 http://user.qzone.qq.com/31731705/blog/1310540087 |
|
|
|
|
|
[求助] C++转化为C的问题(gpPicture->Release())
如果Release只是简单的成员函数,就这样。 Release( gpPicture ); 如果是虚函数 gpPicture是一个结构,开始是个虚表指针, (*gpPicture->pvtbl->somefun)(); |
|
VS中Win32编程,如何让窗口标题栏的左上角显示自己导入的图片
其实只要注册窗口类的时候指定图标就可以了, 我特地写了个程序测试,使用VS的向导生成一个最普通的win32程序SampleWin32,在资源里添加了2个图标,IDI_ICON1, IDI_ICON2, 特别提点,有2个地方需要图标,一个图标是任务栏和Alt+Tab时出现的,另外一个是左上角的图标是小图标。不知道楼主是不是这里出了问题。 那个WM_SETICON消息,一般如果程序需要动态切换图标的时候可以用。这里其实没有必要的。 代码如下: ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; [B][COLOR="Red"] // 任务栏和Alt+Tab时出现的图标, //wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SAMPLEWIN32)); wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));[/COLOR][/B] wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = MAKEINTRESOURCE(IDC_SAMPLEWIN32); wcex.lpszClassName = szWindowClass; [COLOR="red"][B] // 左上角的图标 //wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_ICON2));[/B][/COLOR] return RegisterClassEx(&wcex); } |
|
[求助]线程起始地址修改
这几天翻了翻以前写的代码,整理了下,对你应该有些帮助。 标准C++中实现线程类 http://user.qzone.qq.com/31731705/blog/1310033782 |
|
SendMessage()函数求助!
如果你只要结果,没有必要一定使用SendMessage了,其它的函数也可以的。你为什么会有这样的限制条件,仅仅是学习目的? |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值