title: Win32 C/C++ Load Image from memory buffer
body: <p>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 is already in memory. I can easily load a bitmap directly from a file and print it on the screen, but this issue is making me stuck.</p>
  
  <p>What I'm looking for is a function that works like this:</p>
  
  <pre><code>HBITMAP LoadBitmapFromBuffer(char* buffer, int width, int height);
  </code></pre>