Windows API Window Using C#:
Begins as a Windows Forms project but uses nothing from Windows Forms, for
educational purposes only. Have a
Detecting When an Application Has Been Idle is a console program but the code is intended to be used in Windows Forms and WPF applications.