PictureBox pic = new PictureBox(); string di = Convert.ToString(0); hHwnd = capCreateCaptureWindowA(ref di, 0x40000000, 0, 0, 640, 480, pic.Handle.ToInt32(), 0); return SendMessage(hHwnd, 0x400 + 10, 0, 0);