This example shows how the WPBitmap class returns the bitmap information header.
SOM_Scope PBYTE bmp_wpQueryBitmapInfoHeader(WPBitmap *somSelf) { PBITMAPFILEHEADER2 pbfh2; ULONG ulBitmapDataSize; pbfh2 = (PBITMAPFILEHEADER2)_wpQueryBitmapData(somSelf,&ulBitmapDataSize); return (ulBitmapDataSize ? (PBYTE)&(pbfh2->bmp2) : NULL); }