gh-85470: Delay load ole32.dll in the _ctypes module (GH-155435)

ole32.dll pulls in user32.dll, which makes the system treat the process as
a GUI process and stop sending logoff and shutdown console control events
to it.  It is only needed for ProgIDFromCLSID() when formatting a COM error.
2 files changed