When I convert a DIB to a HBITMAP using CreateDIBitmap, it works fine if the DIB has no compression associated with it.

However if the DIB has compression (YUY2), then CreateDIBitmap returns NULL and GetLastError() returns 0.

Any ideas on how to get CreateDIBitmap to work with the YUY2 compressed DIB?