title: How to use GetPixel() to check different positions
body: <p>I have a program that HAS to use GetPixel, but in different positions, after reading one value and evaluating it, it has to change the x,y positions and re-evaluate the values of the other function.
  I have the current code:</p>
  
  <pre><code>while (true) {
          HDC hDC;
          hDC = GetDC(NULL);
         int cx = 793;
         int cy = 866;
  COLORREF color = GetPixel(hDC, cx, cy); //Use x=793 y=866
          ReleaseDC(NULL, hDC);
          RGBTRIPLE rgb;
          int red = GetRValue(color);
          int green = GetGValue(color);
          int blue = GetBValue(color);
          std::thread t1 (verde, red, green, blue); 
          t1.join();
          std::thread t2(amarelo, red, green, blue);//But then here I would like it to read
         //from let's say x=803 y=796
          t2.join();
   }
  </code></pre>
  
  <p>The problem is GetPixel should use X=793 AND Y=866 for the <code>verde</code> function and then use x=803 y=796 for the <code>amarelo</code> function</p>