I get a 9 digit value for bmpSample lol.PHP Code:
HDC bitmapDC;
HBITMAP bitmapHandle;
COLORREF bmpSample;
bitmapHandle=(HBITMAP)LoadImage(0,"e:\\mytestsample.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
bitmapDC = GetDC((HWND)bitmapHandle);
bmpSample = GetPixel(bitmapDC, 23, 31);
cout << "aaa " << bmpSample << '\n';