The GetBitmapBits function copies the bitmap bits of a specified bitmap into a buffer.
Note The GetBitmapBits function is obsolete. This function is provided for compatibility with 16-bit versions of Windows. Win32-based applications should use the GetDIBits function.
LONG GetBitmapBits(
HBITMAP hbmp, // handle to bitmap
LONG cbBuffer, // number of bytes to copy
LPVOID lpvBits // pointer to buffer to receive bits
);
If the function succeeds, the return value is the number of bytes copied to the buffer.
If the function fails, the return value is zero.
Windows NT: To get extended error information, call GetLastError.
Bitmaps Overview, Bitmap Functions