I was asked from some reasons replace inside NDIS driver the NdisWaitEvent() on KeWaitForSingleObject().
I like to keep base algorithm and going inside NdisWaitEvent() dissembler (Windbg) to check which parameters it defines for KeWaitForSingleObject().
I found, that 4th parameter is translated as NULL (FALSE):
_ KeWaitForSingleObject( &, 0 /Executive/, 0 /KernelMode/, 0 /FALSE!?!/, &); _
The problem in MSDN 4th parameter described as:
Specifies a Boolean value that is TRUE if the wait is alertable and FALSE otherwise.
means the KeWaitForSingleObject() will not be completed by clearing appropriate event. if 4th parameter FALSE (timeout is NULL!) !?!
Is it MSDN mistake?
Or I understand term "alertable" not right?
Thanks & Regards,
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Writing WDF Drivers||21 Oct 2019||OSR Seminar Space & ONLINE|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|
|Kernel Debugging||30 Mar 2020||OSR Seminar Space|
|Developing Minifilters||27 Apr 2020||OSR Seminar Space & ONLINE|