Avoid displaying the webcam selection dialog box

How can I avoid displaying a dialog box for selecting a webcam.

After about 18 hours, I got my webcam to run (I'm sure many other cameras will work) from my application in WPF.

No DirectShowNet, No WPFMediaKit, No WIA

I adapted the implementation code using avicap32. It works "excellent", but always displays the dialog box of the selected device, and I want to avoid this if possible.

+3
source share
2 answers

, , , . , . Win8 .

+2

, , .

SendMessage(_windowHandle, WM_CAP_CONNECT, _videoSourceIndex, 0)

, : - # WM_CAP_CONNECT:

+1

All Articles