A C++Programmer 0 Newbie Poster

I'm trying to make a program that will scan the screen for a certain color. i tried to use GetPixel(), but it is too slow. someone else recommended i use GetDIBits(). Can anyone explain or give an example source on how to scan the screen for a certain color with GetDIBits()?