Implemented WaitForInputIdle.

8 files changed