Skip to content
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

Merged
merged 4 commits into from Feb 1, 2016
Merged

Revive environ windows #747

merged 4 commits into from Feb 1, 2016

Conversation

fbenkstein
Copy link
Collaborator

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.

OUT PMEMORY_BASIC_INFORMATION64 MemoryInformation,
IN ULONG64 Size,
OUT PULONG64 ReturnLength OPTIONAL);

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 space indentation

@giampaolo
Copy link
Owner

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.

@fbenkstein
Copy link
Collaborator Author

Thanks! I'll post an update later 💤

Frank Benkstein added 2 commits January 29, 2016 12:38
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.
@fbenkstein
Copy link
Collaborator Author

Please have another look.

giampaolo added a commit that referenced this pull request Feb 1, 2016
@giampaolo giampaolo merged commit 5116bea into master Feb 1, 2016
@giampaolo giampaolo deleted the revive-environ-windows branch February 1, 2016 17:58
@giampaolo
Copy link
Owner

All good. Merged. Thanks for the great work.

@giampaolo
Copy link
Owner

@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
Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants