General information
Title:
Using gdi32 in a Windows Service app.
Environment versions
Network:
Windows 2003 Server
I trying to write a Windows Service that needs to periodically query locations on the screen and give an RGB value for the color of the pixel. I am using gdi32 with the GetPixel call and cannot get it to work properly within the Service. It works just fine when I call it from a WinForm developed for testing. Does the Service not have access to anything on the desktop? It always returns me a value of FFFFFFFF regardless of the actual pixel color. Is there any work around here or must I can the Service.
Thanks.
Rick Grinter
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only