1) Administrative Tools --> Services
2) Locate your service and right-click. Select the Properties command.
3) Click the Log On tab.
4) Check the Allow service to interact with desktop checkbox.
I don't know if this will work, but it is worth a try.
"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:10**********************************@microsof t.com...
Thank you Peter. This is a good lead. However, I cannot find this setting
anywhere. Can you be more specific?
Thank you!
--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't
like
to do.
E.M. Gray
"Peter Rilling" wrote:
Windows services do not interact with the desktop. There is a setting in
the properties for the windows service that allows the service to
interact
with the desktop. Try changing this setting. I have not done this
before,
but it is a thought.
"Madestro" <me_no_like_spam_juanDOTromero@bowneDOTcom> wrote in message
news:BB**********************************@microsof t.com... > Hi guys,
>
> I have a little problem. I have a class that uses Windows API to
> capture a
> snapshot of the screen. I have this class in a library that I include
> in
> my
> projects.
>
> When I try to use this class in a windows service, the snapshot comes
> up
> as
> a black screen. Any idea why? or how do I get around it?
>
> The class works fine if I use it in a regular windows forms
> application.
>
> Thank you in advance!
>
> --
> Juan Romero
> -----------------------------------------
> The successful person has the habit of doing the things failures don't
> like
> to do.
> E.M. Gray