IltmmCapture::get_VideoWindowHandle Example for C++

void GetCaptureVideoWindowHandle(IltmmCapture *pCapture)
{
   long lWndHandle;
   HRESULT hr = pCapture->get_VideoWindowHandle(&lWndHandle);

   if (SUCCEEDED(hr))
   {
      // do something with the window handle
   }
}