Getting a slice of idle processing in managed component under unmanaged host
问题 I have a managed component written in C#, which is hosted by a legacy Win32 app as an ActiveX control. Inside my component, I need to be able to get what normally would be Application.Idle event, i.e. obtain a time slice of the idle processing time on the UI thread (it has to be the main UI thread). However in this hosted scenario, Application.Idle doesn't get fired, because there is no managed message loop (i.e., no Application.Run ). Sadly, the host also doesn't implement