Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using gdi32 in a Windows Service app.
Message
From
11/09/2006 13:49:15
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Using gdi32 in a Windows Service app.
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01152817
Message ID:
01152817
Views:
54
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
Map
View

Click here to load this message in the networking platform