Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use winapi.com instead of coinitialize #51966
What does this PR do?
What issues does this PR fix or reference?
Commits signed with GPG?
@twangboy - does these things work?
Once you get out of the context of with salt.utils.winapi.Com(), is conn still valid, because it will in the Com class, on the exit method (which happens when you get out of the with block), you do a pythoncom.CoUninitialize().
I think once you add the with context, you should put everything inside (returns too).
And BTW, I do see these traces on a machine box: