Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrandreastoth opened this issue Jun 9, 2018 · 1 comment

Comments

@mrandreastoth
Copy link

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).

@Ciantic
Copy link

Ciantic commented Oct 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants