[Bug 50405] Missing ability to read Evironment Block and Environment Block Size from any Process ID kernel32

WineHQ Bugzilla wine-bugs at winehq.org
Sat Dec 26 10:57:02 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=50405

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello Samuel,

you're most likely doing something wrong. There are many
libraries/frameworks/applications using that "undocumented" approach. Also you
didn't tell if you're running a WoW64 environment which has some restrictions
(32-bit -> 64-bit process).

https://stackoverflow.com/questions/7446887/get-command-line-string-of-64-bit-process-from-32-bit-process

'PhGetProcessPebString':

https://github.com/processhacker/processhacker/blob/04f18ea9a98374fb5aa4fc0d8c51b93a708eafc4/phlib/native.c#L580

'PhGetProcessCommandLine':

https://github.com/processhacker/processhacker/blob/04f18ea9a98374fb5aa4fc0d8c51b93a708eafc4/phlib/native.c#L733

'PhGetProcessEnvironment':

https://github.com/processhacker/processhacker/blob/04f18ea9a98374fb5aa4fc0d8c51b93a708eafc4/phlib/native.c#L913

---

ProcessHacker 2.x works as intended with Wine, showing remote process' command
line and environment using that approach (see previous code references).

https://github.com/processhacker/processhacker/releases/download/v2.39/processhacker-2.39-setup.exe

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list