Windows Runtime StorageLibraryChangeTracker not working

%3CLINGO-SUB%20id%3D%22lingo-sub-2081980%22%20slang%3D%22de-DE%22%3EWindows%20Runtime%20StorageLibraryChangeTracker%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081980%22%20slang%3D%22de-DE%22%3E%3CP%3EOn%20two%20Windows%2010%20Enterprise%20Multi%20Session%20VMs%20on%20Azure%20I%20am%20not%20getting%20any%20result%20using%20StorageLibraryChangeTracker.ReadChangesAsync()%20-%20with%20latest%2020H2%20image.%3C%2FP%3E%3CP%3EOn%20Windows%2010%20Pro%20and%20Windows%2010%20Enterprise%20this%20does%20work%20without%20any%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20is%20a%20Windows%20Runtime%20API%2C%20available%20since%20ages%2C%20not%20working%20on%20Windows%2010%20Enterprise%20Multi%20Session%3F%20As%20a%20developer%20this%20does%20not%20make%20any%20sense.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnzip%20the%20%3CEM%3Ex64_debug.zip%3C%2FEM%3E-file%20and%20run%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EAdd-AppxPackage%20-Register%20-Path%20AppxManifest.xml%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Einside%20a%20PowerShell%20window.%20Run%20the%20now%20installed%20%22alirgh%22%20app.%20Copy%20some%20files%20to%20the%20Documents-folder%2C%20observe%20that%20there%20is%20no%20output%20whatsoever.%20There%20should%20be%20a%20list%20of%20all%20changes%20registered%20through%20%3CEM%3EStorageLibraryChangeReader%3C%2FEM%3E%20printed.%20There%20is%20no%20indication%20that%20this%20should%20not%20work%20in%20the%20Microsoft%20documentation%20about%20this%20API%3A%3C%2FP%3E%3CP%3E*%20%5B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fuwp%2Fapi%2Fwindows.storage.storagelibrarychangetracker%5D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fuwp%2Fapi%2Fwindows.storage.storagelibrarychangetracker%5D%3C%2FA%3E%3C%2FP%3E%3CP%3E*%20%5B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fuwp%2Fapi%2Fwindows.storage.storagelibrarychangereader%5D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fuwp%2Fapi%2Fwindows.storage.storagelibrarychangereader%5D%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Visitor

On two Windows 10 Enterprise Multi Session VMs on Azure I am not getting any result using StorageLibraryChangeTracker.ReadChangesAsync() - with latest 20H2 image.

On Windows 10 Pro and Windows 10 Enterprise this does work without any issues.

 

Why is a Windows Runtime API, available since ages, not working on Windows 10 Enterprise Multi Session? As a developer this does not make any sense.

 

Unzip the x64_debug.zip-file and run

Add-AppxPackage -Register -Path AppxManifest.xml

inside a PowerShell window. Run the now installed "alirgh"-App. Copy some files to the Documents-folder, observe that there is no output whatsoever. There should be a list of all changes being registered through StorageLibraryChangeReader printed. There is no indication that this should not work in the Microsoft documentation about this API:

* [https://docs.microsoft.com/uwp/api/windows.storage.storagelibrarychangetracker]

* [https://docs.microsoft.com/uwp/api/windows.storage.storagelibrarychangereader]

 

0 Replies