IUIAutomationWindowPattern::WaitForInputIdle Method
Causes the calling code to block for the specified time or until the associated process enters an idle state, whichever completes first.
Syntax
HRESULT WaitForInputIdle( int milliseconds, BOOL *success );
Parameters
- milliseconds
[in] The amount of time, in milliseconds, to wait for the associated process to become idle.- success
[out, retval] The address of a variable that receives the result: TRUE if the window has entered the idle state, or FALSE if the timeout occurred.
Return Value
Returns S_OK if successful, or an error value otherwise.