Grabacr07 / VirtualDesktop

C# wrapper for the Virtual Desktop API on Windows 11.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IVirtualDesktopManagerInternal instance not returned; get null instead

cspotcode opened this issue · comments

When attempting to get instance of IVirtualDesktopManagerInternal, I get null. (verified in the debugger)

https://github.com/Grabacr07/VirtualDesktop/blob/master/source/VirtualDesktop/Interop/VirtualDesktopInteropHelper.cs#L26

I'm running Windows 10 Pro Insider Preview, Build 14372.rs1_release.160620-2342. This error didn't occur until I installed the Insider Preview, so hopefully it will resolve itself when the "Anniversary Update" is released in August.

Looks like the MIDL_INTERFACE (AF8DA486-95BB-4460-B3B7-6E7A6B2962B5) for the IVirtualDesktopManagerInternal has changed with latest Insider, I looked with hex editor the file twinui.dll, from the old I can find it (search for 6E7A6B2962B5), but in new one it must have changed.

I haven't figured out how to determine what is the new GUID.

P.S. It won't resolve itself, this new GUID must be discovered, and changed in the code.

I think the author has addressed this in the develop branch.

Check out the changes here: 7fc13e0

I pulled them into my project and it seems to have fixed the problem.

I wonder how @Grabacr07 found out the new GUID, "f31574d6-b682-4cdc-bd56-1827860abec6", it would be interesting knowledge.

Sorry for not replying earlier.

It is so simple.
I found the new IID by searching in the Registry Editor.

ss160807023137ls