I have a bug (I think its unintentional) I cannot build my dll file that registers itself as a shell extension for thumbnails and prevhost.exe because everything, whether or not the user has the gui opened or closed in the tray menu, remains interacting/attached. the only fix is ending the task. if you could make it stop interacting with thumbnail gen/with prevhost.exe making it only do so when the window is open at the minimum this will help me out a lot and maybe help out performance wise, thank you!
this is the stack for the thread while the gui is closed, the audiowaveformpreview is my thumbnail gen.
nvlddmkm.sys+0xb402ac
ntdll.dll!NtWaitForSingleObject+0x14
KERNELBASE.dll!WaitForSingleObjectEx+0xaf
!MFCreateMediaEvent+0x3619
0x0000000000000000
!DecodeSpectrum+0x920
!AudioWaveformPreview::GenerateWaveformBitmapGradient+0x1c1
!AudioWaveformPreview::RenderThumbnail+0x37e
!CPreviewHandler::GetThumbnail+0x76d
Windows.Storage.dll!ustrcmp+0x6d4
thumbcache.dll!DllGetClassObject+0x795b
thumbcache.dll+0x4613
thumbcache.dll+0x3b8f
thumbcache.dll+0x152a0
thumbcache.dll+0x13c2c
thumbcache.dll+0x13851
thumbcache.dll!DllGetClassObject+0xab7
Windows.Storage.dll!SHChangeNotifyDeregister+0x77d
Windows.Storage.dll!DllCanUnloadNow+0x3bd6
Windows.Storage.dll!SHGetSetFolderCustomSettings+0xc05
Windows.Storage.dll!ShouldUseStorageProviderViews+0x5c5
thumbcache.dll!DllGetClassObject+0x79c0
thumbcache.dll+0x4613
thumbcache.dll+0x3b8f
thumbcache.dll+0x152a0
thumbcache.dll+0x13c2c
thumbcache.dll+0x13851
thumbcache.dll!DllGetClassObject+0xab7
Windows.Storage.dll!SHChangeNotifyDeregister+0x77d
Windows.Storage.dll!DllCanUnloadNow+0x3bd6
Windows.Storage.dll!Ordinal2001+0x1028
Everything.exe+0x1af802
Everything.exe+0x1f2eee
Everything.exe+0x1f3035
Everything.exe+0x5acd4
Everything.exe+0x1a8106
Everything.exe+0x3af7e7
Everything.exe+0x3af8bf
KERNEL32.DLL!BaseThreadInitThunk+0x17
ntdll.dll!RtlUserThreadStart+0x2c