###User Defined Function###
_WinAPI_WaitForSingleObject

###Description###
Waits until the specified object is in the signaled state

###Syntax###
#include <WinAPI.au3>
_WinAPI_WaitForSingleObject ( $hHandle [, $iTimeout = -1] )


###Parameters###
@@ParamTable@@
$hHandle
	A handle to the object
$iTimeout
	[optional] The time-out interval, in milliseconds. The function returns if the interval elapses, even if
	the conditions specified by the fWaitAll parameter are not met. If 0, the function tests the states of the
	specified objects and returns immediately. If -1, the function's time-out interval never elapses.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Indicates the event that caused the function to return
Failure:	(-1) WAIT_FAILED, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
None.


###Related###
_WinAPI_WaitForMultipleObjects


###See Also###
@@MsdnLink@@ WaitForSingleObject
