I have a 64 bit process that needs to read the 32bit PEB of a Wow64 process.

I'm able to get it with `NtQueryInformationProcess`, but I realized that Wow64 processes have two PEBs (64 and 32 bit) and `NtQueryInformationProcess` returns the PEB corresponding to the bitness of the caller (64bit in my case), as @Anders commented in this solution:

[How to get the Process Environment Block (PEB) from extern process?](https://stackoverflow.com/questions/5454667/how-to-get-the-process-environment-block-peb-from-extern-process)

That's my scenario: I'm trying to get the 32bit PEB of a Wow64 process, from inside a x64 process. Any suggestions that involve changing that scenario are useless. I'm also aware that this kind of solution is not recommended for production and that's not my intention.

Any ideas?

Thanks in advance.