-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revive environ windows #747
Conversation
OUT PMEMORY_BASIC_INFORMATION64 MemoryInformation, | ||
IN ULONG64 Size, | ||
OUT PULONG64 ReturnLength OPTIONAL); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 space indentation
This is cool! I like the "enum" refactoring you applied. I just added a bunch of stylistic comments but the rest LGTM. Feel free to merge it after you address them. |
Thanks! I'll post an update later 💤 |
Rename psutil_get_parameter to psutil_get_process_data and let it return only the data to the caller. This reduces the needed local variables and makes the function slightly simpler.
30b775b
to
6694832
Compare
6694832
to
302a632
Compare
302a632
to
6fe1544
Compare
Please have another look. |
All good. Merged. Thanks for the great work. |
@fbenkstein psutil 4.0.0 is out and I gave you credits for this great piece of code http://grodola.blogspot.com/2016/02/psutil-4-real-process-memory-and-environ.html |
I believe this could be ready now. Getting the 32bit -> 64bit accesses was a pain but it appears to be working now. Unfortunately, NtWow64QueryVirtualMemory64 appears to be missing from Windows 10. So Process.environ() will throw NotImplementedError there when accessing a 64bit process from 32bit Python.