On Wednesday 28 April 2004 06:25 am, Francois Gouget wrote: > I don't think that it is correct to say that services cannot cerate > windows. From what I remember from the time I wrote a service and how I > read the information at the URLs you provided, what happens is that a > service can create windows but the user won't see them, and the user > won't be able to send input of click on them. But as long as the process > does not expect the user to do anything with the windows it puts up we > should be fine. > > Note that some tests need to be able to create windows. See for instance > user32_test.exe. If services cannot create Windows at all (i.e. if > CreateWindow fails for services), then many important tests are likely > not to work at all, thus greatly reducing the usefulness of such a > service process! > > (based on the trend I suspect we'll get more and more window related tests)
Services can create windows, but when the service is not flagged as interactive its windows don't act completely normally, AFAIK. >From what I remember in my past work with services (which has been a while so I may be forgetting something here), windows created from a non-interactive service dont show up in the system window list (as seen by apps like spy++), and they cannot be visible (that is, the windows are created hidden, and a call to ShowWindow will always fail) If the service is flagged as interactive, everything acts normally