VirtualDesktop icon indicating copy to clipboard operation
VirtualDesktop copied to clipboard

WindowsDesktop.Interop.ComObjects.ApplicationViewCollection.GetViewForHwnd() returns null

Open mrandreastoth opened this issue 6 years ago • 1 comments

Using the Showcase, it seems every(?) call to WindowsDesktop.Interop.ComObjects.ApplicationViewCollection.GetViewForHwnd() returns null. I am using Visual Studio 2017 on Windows 10 Build 17686 64-bit (this is the very latest Windows Insider build in the Fast Ring at the time of writing).

Calls I can confirm crash are "this window" and "foreground window" with "pin/unpin" or "pin/unpin (app)" as well as "foreground window" with any calls that moves a window other than self (I used notepad).

mrandreastoth avatar Jun 09 '18 08:06 mrandreastoth

Btw, if you are using Windows Insider, the virtual desktop stuff might get broken. The key to fix is to look for the GUID from registry, fix for this is particularily simple:

Search for IApplicationViewCollection from registry, it gives you this:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{1841C6D7-4F9D-42C0-AF41-8747538F10E5}

Look at the GUID, update the GUID entry in https://github.com/Grabacr07/VirtualDesktop/blob/master/source/VirtualDesktop/app.config and you replace this: <string>IApplicationViewCollection,{2C08ADF0-A386-4B35-9250-0FE183476FCC} </string> with a new 1841C6D7-4F9D-42C0-AF41-8747538F10E5 and rebuild.

I'm not using this program, but I develop a similar DLL for accessing these features.

Ciantic avatar Oct 05 '18 18:10 Ciantic