Ok, so you need to CreatCompatibleBitmap(), and then use SetDIBits(), using the address of your pixels, and then use the handle from CreateCompatibleBitmap() to do the actual BitBlt() operation.

--
Mats