pythoncom.CoDisableCallCancellation

CoDisableCallCancellation()

Disables call cancellation for synchronous calls on the current thread