|
|
|
[求助]线程控制块TEB,书中第5章突然出现的这个是什么意思啊
很多关于系统编程的书, 都会提到PEB与TEB, 你没看过这类书? 我想 PEB 就是 Process Environment Block 进程环境块, 那么 TEB 就是 Thread Environment Block 线程环境块, 但是这本书好像把这东西说是"线程控制块", 在另一本书上, 我又看到作者把它说成是 Thread Information Block 线程信息块, .... 怎么说的都有, 我晕; 但无论怎样, 听说这个结构的地址是在FS寄存器中保存的; 这个结构主要用于保存线程的Context, 即当时的环境信息, 如寄存器的值啊, 异常处理结构链啊, ....等等这些信息, 那么系统在切换到别的线程的时候, 就把这些信息保存进这个结构, 当这个线程再次被调度的时候, 就利用这个TEB记录着的信息来还原上一次线程被中断时的环境信息. 简单地,大概地的就是这样; |
|
[求助]PE文件中.textbss是什么节?
这么在乎节名做什么,节名可以乱起的; |
|
[求助]DeviceIoControl的问题
DeviceIoControl 这个函数有读写方式可设置的吗? 你去哪看到的? 看MSDN, 这个函数没有读写方式可设; 那就是设备对象的读写方式与这个函数没有什么关系咯? MSDN: BOOL WINAPI DeviceIoControl( __in HANDLE hDevice, __in DWORD dwIoControlCode, __in LPVOID lpInBuffer, __in DWORD nInBufferSize, __out LPVOID lpOutBuffer, __in DWORD nOutBufferSize, __out LPDWORD lpBytesReturned, __in LPOVERLAPPED lpOverlapped ); |
|
[求助]用ZwQuerySystemInformation枚举进程时遇到的一个小问题,(请教!)
嗯, 可能至少创建了2个新进程, 系统才会去更新这个"快照", ZwQuerySystemInformation 函数才能得到新的信息; |
|
[求助]用ZwQuerySystemInformation枚举进程时遇到的一个小问题,(请教!)
貌似是ZwQuerySystemInformation 函数的问题, 这个函数只是向系统拿一个"快照", 并没有真正地实时监测系统; 何时何种情况下, 才更新这个"快照", 可能视系统与这个函数的查询类型有关; 我简单地测试了一下, 发现运行程序后, 再运行记事本程序, 程序根本没有"发现"记事本的进程, 再任意地运行任何一个进程, 程序就"发现"记事本的进程了, 貌似是"快照"已经被系统更新; ZwQuerySystemInformation 函数具体的细节不是很清楚; |
|
[求助]请教高手一个奇怪问题!
自己根据实际情况慢慢调试, 我哪知你那个有"中文"这两个字的窗口是什么? 可能这个窗口就是Explorer创建的 |
|
[求助]请教高手一个奇怪问题!
我想应该是这样: 当一个进程被创建的时候,该进程的句柄表同时被创建(注意,是句柄表); 这个句柄表,就是记录了该进程可访问可使用的内核对象的句柄,但进程在使用这些内核对象的时候,并不直接使用这些对象的句柄,而是使用‘索引’; 就是说,当你获得一个新的对象的句柄的时候, 句柄表里就会增加一项,是按序列增加的,好像1, 2, 3, 4.... 这样, 这个句柄表里使用的‘索引’,就是你进程中使用的所谓的‘句柄’; 那么不难解释你上面的那个程序, 你OpenProcess后, 程序立即在句柄表里增加了一个‘索引’, 80(可能是因为之前句柄表里的最高索引为79),接着你CloseHandle,对象对于你的进程来说,被释放了,这个值为‘80’的索引从你的句柄表里被删除; 然后,又OpenProcess获得一个句柄,当然,又是‘80’, 你又CloseHanlde,这个‘80’又没了.... 如此循环, 所以, 这个值一直都是: 80 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值