[WINETEST] How is a visible desktop detected
Paul.Vriens at xs4all.nl
Fri Jan 28 08:29:22 CST 2005
On Fri, 2005-01-28 at 13:52, Ferenc Wagner wrote:
> Paul Vriens <Paul.Vriens at xs4all.nl> writes:
> Hmm, services use an invisible desktop by default AFAIK.
> It shouldn't matter how you started winrash (the service),
> but how you started winetest itself. If it's started by
> winrash, it runs on an invisible desktop; if you start it,
> it runs on a visible desktop.
How does an invisible desktop explain the fact that when I'm logged in,
I see a Windows Explorer Window being opened by one of the tests
> It's either buggy or misnamed, reality suggests. It was
> invented to account for metafile test failures, which
> require a visible desktop, see eg.
> Now it looks it depends on something else instead, and you
> are in a pretty good position to find out what! I haven't
> got a clue, including this flag was suggested by others.
I will try and figure out.
> > What's the criteria for 'running on a visible desktop'?
> programs/winetest/main.c (as offered by Dmitry Timoshkov):
> static int running_on_visible_desktop ()
> return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE != 0);
Yeah, I should have looked better!
More information about the wine-devel