This is program that I made for one of my customers. You can capture an image from your computer camera and save it in desired folder.
You need dlls (enclosed) and setup.ini file in format:
path=C:\Users\Amadej\Desktop\capture.jpg // path to save, otherwise SaveFileDialog is shown
saveOnCancel=false //(optional parameter, default false)