Ok I have read almost all forums relating this topic. But mine is somewhat different. I need the complete code to directly capture the active window/screen and get a color on a specified point on it. It can't be entered in the clipboard because it will make it slow, and besides it needs it to do this repeatly about every 40 milisec.

And I don't need to delclare the API funtions anymore because I stumbled on what might help all of you. If you reply I will tell you.