I am not talking about using a specialized camera which needs to use a specialized LabVIEW toolkit, instead, it might just be some Microsoft Windows built-in calls. Just like what "Microsoft Camera" App does.
The easiest way is to use IMAQdx which is part of the vision acquisition toolkit. (Warning: this requires a separate run time license if you want to run in an executable on another machine, ~£400 from memory)
This link lists to compatible camera protocols: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6COSA0&l=en-GB
Do you have access to this module?
Edit: Further thoughts....If you don't have access to this module or your camera isn't compatible, you may be able to get dll's from the camera manufacturers website or use an open source sdk, see this thread