Question about WaitForSingleObject() ?

From: Knight Lin (lhbb5405_at_hotmail.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 17:20:07 +0800

Hi all:

    As we know, function WaitForSingleObject(HANDLE hHandle, DWORD
dwMilliseconds ) returns when the specified object(hHandle) is in the
signaled state or when the time-out(dwMilliseconds ) interval elapses.
But,if the system is busy,then the object is signaled and time-out elapses
at the same time,so which return-value will be returned,WAIT_OBJECT_0(object
is signaled) or WAIT_TIMEOUT(time-out interval elapsed, and the object's
state is nonsignaled) ?

--------------
Knight Lin