This is about the title.
The WinRT API is available for Windows desktop applications, so
https://software.intel.com/en-us/articles/using-winrt-apis-from-desktop-applications
(List of available APIs)
https://msdn.microsoft.com/en-us/library/windows/desktop/dn554295%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
After seeing , I thought about using MediaCapture class, but I think the Windows store app changed package.appxmanifest to allow the camera to be used.
How can I use the camera for desktop apps?
For C# and VB, MSDN's Japan Forum has a sample code for a desktop application using MediaCapture, and you can get a complete set of projects from github.
You can use the camera without permission like the store app in the sample.
C++ may replace the following:
© 2024 OneMinuteCode. All rights reserved.