简体   繁体   中英

Get existing process handle

Let's say I'm a DLL that's inside a certain process (process A ) that already haves a handle to another one ( the target, process B ). I wanna get the existing handle of process B from process A (I'm a DLL injected in process A) to use ReadProcessMemory() on Process B.

How can I do that? I can't seem to find anything about it.

QuerySystemInformationSystemHandleInformation类( 0x10 )一起使用可获得句柄列表,对其进行迭代并查找ProcessId以处理B。大多数结构都是未记录的,但可在Web上方便使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM