bool get_thread_input_output_pending_flag(handle thread,
                                          bool* input_output_is_pending);

This function determines if an input/output operation is pending for a thread.


handle thread

The handle of the thread whose input/Output pending status is being queried. This handle must have the access right thread_access::QueryInformation.

bool* input_output_is_pending

A pointer to a variable that is updated as follows.

true An input/Output operation is pending.
false No input/Output operation is pending.



true The function succeeded.
false The call failed.


The I/O status of a thread can change rapidly, and may already have changed by the time the function returns. A pending I/O operation could complete between the time the function sets InputOutputIsPending and the time it returns.