George George

George George

  • NA
  • 778
  • 0

WaitOne with 0 as timeout value

Apr 24 2008 2:24 AM

Hello everyone,


1.

I have checked MSDN document,

http://msdn2.microsoft.com/en-us/library/kzy257t0(VS.80).aspx

it does not cover what is the function of WaitOne if we assign 0 as the timeout parameter.

I think the function of assigning 0 is to check whether the signal is set or not, and it will be returned immediately, right?

2.

If WaitOne (0, true) returns true, it means the signal is set or not set?


thanks in advance,
George