Je pense que je n'ai pas bien saisi ce que je trouve sur cette page... voici la partie qui m'intéresse:
 
COLORREF getColorAtCursor(void) {
    POINT p;
    COLORREF color;
    HDC hDC;
    BOOL b;
 
    /* Get the device context for the screen */
    hDC = GetDC(NULL);
    if (hDC == NULL)
        return CLR_INVALID;
 
    /* Get the current cursor position */
    b = GetCursorPos(&p);
    if (!b)
        return CLR_INVALID;
 
    /* Retrieve the color at that position */
    color = GetPixel(hDC, p.x, p.y);
 
    /* Release the device context again */
    ReleaseDC(GetDesktopWindow(), hDC);
 
    return color;
}
 
J'ai rajouté ce code au début de mon programme mais le debugguer me renvoi le message "undefined reference to 'GetPixel@12'
J'ai pourtant bien rajouté le header #include <Windows.h>