get_graphics_thread_information


bool get_graphics_thread_information(unsigned thread,
                                     graphics_thread_information* information);

This function obtains information about the active thread or about a specified graphical user interface thread.

Parameters

unsigned thread

The identity of the the thread for which information is being obtained. If zero is specified, information for the foreground thread is obtained.

graphics_thread_information* information

A pointer to a buffer to hold the graphics information. The member size of this structure should be correctly initialized.

Return

bool

true The function succeeded.
false The function was unsuccessful.

Notes

This function succeeds even when the active window is not part of the current process.

The win+ function get_window_thread_process_identity may be called to obtain the identity of the thread passed to this function.

If the specified thread does not exist or does not have a message queue, the function fails.