[haiku-development] get_token_list() and get_window_info()

Hi All,

For my app I need info about the visible windows of each application. I
don't want to use scripting to query each app for it's windows, since this
doesn't provide all functionality.

In the Deskbar source, I see get_token_list() & get_window_info() being
called for information about an applications windows. I'm guessing a set of
tokens is used by the app server for referencing Windows, Views and Bitmaps.
Through this tokenlist I should be able to find the required info.

The problem is I can't find the right header file to include in my source.
Is this header available on  R5 developer edition?

I'm also wondering if the is a mechanism for notifying me when a new token
(and thus a new window) has been created? Something like the
B_SOME_APP_LAUNCHED message from the Roster.

I know these functions are undocumented (as I found in some comments in the
Haiku source) because they shouldn't be used due to future change.
Some help and pointers would be very appreciated!

Thanks

Mauro

Other related posts: