How to know a video source (webcam) is available or not without creating capture window?
问题 It is quite tricky because I wanna to take the result as a sign for later process. If a window flashes, it would be weird to user. 回答1: (This is not an answer , just refreshing the question and adding some details:) Suppose you need to open a video capture driver (webcam) with code like this (delphi, but easy understandable): result:= SendMessage(hCapWnd, WM_CAP_DRIVER_CONNECT, FDriverNo, 0); It works fine, except when camera/webcam is busy (opened by another application, for example