WPF captures the camera using the Mediafoundation framework (source code)