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.
The handle of the thread whose input/Output pending status is being queried. This handle must have the access right thread_access::QueryInformation.
A pointer to a variable that is updated as follows.
|An input/Output operation is pending.
|No input/Output operation is pending.
|The function succeeded.
|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.