title: How to create IBuffer from HBITMAP in C++?
body: <p>I have code, that making screenshot, and saving it to HBITMAP</p>
  
  <pre><code>GetClientRect(hwnd, &amp;rc);
  HDC hdcScreen = GetDC(NULL);
  HDC hdc = CreateCompatibleDC(hdcScreen);
  int width = rc.right - rc.left;
  int height = rc.bottom - rc.top;
  HBITMAP hbmp = CreateCompatibleBitmap(hdcScreen,width, height);
  SelectObject(hdc, hbmp);
  PrintWindow(hwnd, hdc, PW_CLIENTONLY);  
  </code></pre>
  
  <p>Then, i want to create new <strong>Buffer</strong> (windows.storage.streams.buffer) class instance from my <strong>hbmp</strong> object</p>
  
  <pre><code>Buffer obj = new Buffer(hbmp); // HOW TO DO SOMETHING LIKE THIS ???
  SoftwareBitmap^ softwareBitmap = SoftwareBitmap::CreateCopyFromBuffer(obj ,
  BitmapPixelFormat::Bgra8, width, height);
  </code></pre>
  
  <p>The main goal - save screenshot of window to SoftwareBitmap object</p>