Example #1
0
        public CaptureDevice()
        {
            InitializeComponent();

            m_rdn = new RegisterDeviceNotifications(this.Handle, KSCATEGORY_CAPTURE);
            LoadDevicesList();
        }
Example #2
0
        public WinMain()
        {
            InitializeComponent();

            m_rdn = new RegisterDeviceNotifications(this.Handle, KSCATEGORY_CAPTURE);

            // Create the object that manages video preview.
            m_pPreview = new CPreview(picbCapture.Handle, this.Handle);
        }