I want to launch the Windows Photos app from C++ for a list of image files. Problem with Photos app is that, if it is launched using ShellExecute (for a single file) it disables the next and previous buttons, even if the folder contains other images. I have tried using [...] read more
I'm trying to open an image file with the Windows 10 Photos app (which is a 'modern' app) from desktop C++ using the following code (error checks omitted for simplicity): DWORD pid; CComPtr<IApplicationActivationManager> paam; CoCreateInstance(CLSID_ApplicationActivationManager, NULL, CLSCTX_LOCAL_SERVER, IID_PPV_ARGS(&paam)); CoAllowSetForegroundWindow(paam, NULL); paam->ActivateForFile(pwszAppUserModelId, psia, L"open", &pid); pwszAppUserModelId is the app user model [...] read more