I contend that KeWaitForMultipleObjects *never* returns STATUS_SUCCESS, but
rather returns STATUS_WAIT_x. That STATUS_WAIT_0 == STATUS_SUCCESS is a
freak coincidence ![]()
Regards,
Paul Bunn, UltraBac Software, 425-644-6000
Microsoft MVP - Windows NT/2000/XP
http://www.ultrabac.com
-----Original Message-----
From: Taed Wynnell [mailto:xxxxx@vertical.com]
Sent: Friday, February 07, 2003 8:16 AM
To: NT Developers Interest List
Subject: [ntdev] RE: KeWaitForMultipleObjects returned STATUS_WAIT_1 ???
As a few people pointed out, I missed the implication here:
If KeWaitForMultipleObjects returns STATUS_SUCCESS and if WaitAny is
specified as the WaitType, KeWaitForMultipleObjects also returns the
zero-based index of the object that satisfied the wait at NTSTATUS.
However, that is actually not worded correctly, which is what caused my
confusion. STATUS_SUCCESS has the value 0x00000000, and it doesn’t return
that value for me, it returns 0x00000001. It should be written as:
If KeWaitForMultipleObjects returns a value for which the macro
NT_SUCCESS() returns TRUE and …
I’ve submitted this correction to the OSR docs “report a bug”…