public static extern int GetDIBits(Gdi32.SafeDCHandle hdc, IntPtr hbmp, int uStartScan, int cScanLines, IntPtr lpvBits, ref Gdi32.BITMAPINFO lpbi, DIBColorMode uUsage);
public static extern IntPtr CreateDIBSection(Gdi32.SafeDCHandle hdc, ref Gdi32.BITMAPINFO pbmi, DIBColorMode iUsage, out IntPtr ppvBits, IntPtr hSection, int dwOffset);