DWORD nWidth = 32;DWORD nHeight = 32;PVOIL pBits = NULL;BITMAPINFO bi;bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);bi.bmiHeader.biWidth = nWidth;bi.bmiHeader.biHeight = nHeight;bi.bmiHeader.biPlanes = 1;bi.bmiHeader.biBitCount = 32;bi.bmiHeader.biCompression = BI_RGB;bi.bmiHeader.biSizeImage = nHeight * nWidth * 4;CreateDIBSection(NULL, &bi, DIB_RGB_COLORS, &pBits, NULL, NULL);