- Load the bitmap of your choice into memory one way or another.
- Use GetObject on the memory to convert to a BITMAP object.
- Use CreateCompatibleDC with GetDIBits to obtain the BITMAPINFO data of the bitmap.
Once you have done that you'll have access to the bitmaps pixel data from GetDIBits. The BITMAPINFO struct should be filled out properly with the bitmap information before calling GetDIBits with it or you will land up crashing due to access violations and such.
Be sure to cleanup the handles/objects you create as well.