pythoncom.CoEnableCallCancellation

CoEnableCallCancellation()

Enables call cancellation for synchronous calls on the current thread