問題タブ [nt-native-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
206 参照

windows - HANDLE_TYPE_PROCESS across Windows versions

I can't find any documentation about this. I'm enumerating process handles in another process.

I check the value of SYSTEM_HANDLE::ObjectTypeNumber and apparently it's different between versions of Windows. I found this piece of code in a project on GitHub

Strangely, it skips Windows 7. I've been checking various kernel related books (such as Windows Internals) and wasn't able to find the correct value for Windows 7. I don't own a Windows 7 machine to test on either.

Therefore, my code looks like this at the moment:

What's the object type number for process handles in Windows 7?