I want to load an image (.bmp) file on a Win32 application, but I do not want to use the standard LoadBitmap/LoadImage from Windows API: I want it to load from a buffer that
Try CreateBitmap():
HBITMAP LoadBitmapFromBuffer(char *buffer, int width, int height) { return CreateBitmap(width, height, 1, 24, buffer); }