-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-34980: P/Invoke QueryFullProcessImageName to get process' name #9901
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
Conversation
allow the 32-bit MSBuild to access 64-bit processes names.
Thanks for the PR @jkloth. I've added the skip news label so the Windows core devs can see that there are no failing tests 👍 |
PCbuild/pyproject.props
Outdated
try { | ||
int pathLength = 32768; | ||
StringBuilder pathBuilder = new StringBuilder(pathLength); | ||
QueryFullProcessImageName(p.Handle, 0, pathBuilder, ref pathLength); |
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.
Weird indentation going on here, and would be nice to just continue
here if it fails.
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.
Oops, some tabs crept in.
I'm unsure to what the continue
you refer to. The return
at the end is due to the change from type="Fragment"
to type="Method"
.
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.
If QueryFullProcessImageName
returns false
, we don't want to bother with anything else after it.
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.
Ah, yes. Committed.
GH-10055 is a backport of this pull request to the 3.7 branch. |
…ythonGH-9901) (cherry picked from commit fa53294) Co-authored-by: Jeremy Kloth <[email protected]>
GH-10056 is a backport of this pull request to the 3.6 branch. |
…ythonGH-9901) (cherry picked from commit fa53294) Co-authored-by: Jeremy Kloth <[email protected]>
…H-9901) (cherry picked from commit fa53294) Co-authored-by: Jeremy Kloth <[email protected]>
…H-9901) (cherry picked from commit fa53294) Co-authored-by: Jeremy Kloth <[email protected]>
https://bugs.python.org/issue34980