VirtualDesktop icon indicating copy to clipboard operation
VirtualDesktop copied to clipboard

I think this might not work with Win11 Dev Insider build 23606

Open phazei opened this issue 1 year ago • 15 comments

I don't use this project, but I use another that used this project as reference. So I tried to update that project with the newer Win11 23H2 GUID's and method prototypes you were using but that didn't work. Then I found a 3rd project that had a similar issue someone recently reported and it turned out the newer Win 11 insider dev build uses a newer GUID that I don't think I saw you use here in this project. I tried it out with my code and it did indeed seem to be the issue. So I thought I'd point it out so you don't need to go hunting for the new GUID when the issue turns up. You can find the new GUID in my pr for the first project: https://github.com/FuPeiJiang/VD.ahk/pull/62

phazei avatar Dec 31 '23 07:12 phazei

Hello @phazei, thank you for the information. As this is a private project and I don't use an Insider version of Windows, I often don't manage to keep up with the many fundamental changes from Microsoft.

I ask for your understanding.

Greetings

Markus

MScholtes avatar Jan 15 '24 19:01 MScholtes

Can confirm. VirtualDesktop11-23H2.exe no longer works on 23H2 after installing the january update KB5034204.

Changing UID "A3175F2D-239C-4BD2-8AA0-EEBA8B0B138E" to "4970BA3D-FD4E-4647-BEA3-D89076EF4B9C" solved the issue:

--- VirtualDesktop11-23H2.cs    2024-01-24 11:44:46.045431100 +0100
+++ VirtualDesktop11-23H2-KB5034204.cs  2024-01-24 11:49:26.584646200 +0100
@@ -161,7 +161,7 @@

        [ComImport]
        [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
-       [Guid("A3175F2D-239C-4BD2-8AA0-EEBA8B0B138E")]
+       [Guid("4970BA3D-FD4E-4647-BEA3-D89076EF4B9C")]
        internal interface IVirtualDesktopManagerInternal
        {
                int GetCount();

willuhn avatar Jan 24 '24 10:01 willuhn

Hello,

does this apply only to the Insider Dev Channel? What about the Canary Channel, Beta Channel or Release Preview Channel and the productive version?

Greetings

Markus

MScholtes avatar Jan 24 '24 17:01 MScholtes

Productive. I don't use any beta/preview/insider versions. It's the regular 23h2 with the january update from today.

willuhn avatar Jan 24 '24 17:01 willuhn

Ok, this is a very import information. I will check this.

Greetings

Markus

MScholtes avatar Jan 24 '24 17:01 MScholtes

Confirmed not working for me today after last nights update image

iamsteelone avatar Jan 25 '24 11:01 iamsteelone

Hey @MScholtes,

The GUID of the IVirtualDesktopManagerInternal interface has been changed in the latest Windows update (22631.3085).

This is the current, working GUID for the interface: 53F5CA0B-158F-4124-900C-057158060B27

You can also find the full dump here: https://github.com/slnz00/VirtualDesktopDumper/blob/master/dumps/Win11-23H2-22631.3085.txt

Other than the GUID change, a new argument has also been introduced to the SwitchRemoteDesktop method. However, it shouldn't cause any issues as this method isn't used anywhere.

slnz00 avatar Jan 25 '24 20:01 slnz00

Hello out there,

I can commit the change with Windows 11 and the preview update to Win 11 23H2 (raises build from 3007 to 3085). The suggested solution by @slnz00 works. However, I will wait until the next mandatory update before making any adjustments, otherwise it will no longer work with Windows 11 without this update.

I'm a bit confused about the GUID "4970BA3D-FD4E-4647-BEA3-D89076EF4B9C" @willuhn has reported. And what about Windows 11 22H2? Does the change works with Insider Dev? Does Windows Insider Dev fails since version 23606? And does someone has information about canary?

Greetings Markus

MScholtes avatar Jan 28 '24 16:01 MScholtes

@MScholtes

There are two symbols associated with this GUID: IID_IVirtualDesktopManagerInternal and IID_IVirtualDesktopManagerInternal2. The latter was introduced around 22H2 22621.2215, while the former stopped working at that time. @willuhn reported the current GUID stored under the older symbol (IID_IVirtualDesktopManagerInternal). It might also work, I haven't tested it.

slnz00 avatar Jan 28 '24 17:01 slnz00

OK, I uploaded a test version, which includes the "53F5CA0B-158F-4124-900C-057158060B27" change.

It is called VirtualDesktop11-3085.cs and VirtualDesktop11-3085.exe. It would be very helpful if soneone with an Insider version of Windows would test this too (please include build numbers in replies).

Greetings

Markus

MScholtes avatar Jan 29 '24 13:01 MScholtes

Good Morning

I pulled the latest update this morning but I'm still getting the errors (Win Ver 23H2 22631.3085, running VirtualDesktop11-3085.exe) image image

iamsteelone avatar Jan 30 '24 08:01 iamsteelone

Hello @iamsteelone,

are you sure you are running Windows 11 23H2 22631.3085? In all my tests VirtualDesktop11-3085.exe worked.

What commands are you executing? Does "VirtualDesktop11-3085.exe LIST" work, what is the current situation?

Greetings Markus

MScholtes avatar Jan 31 '24 18:01 MScholtes

Turned out a good old fashioned “turning it off and on again” was needed. All sorted now

From: MScholtes @.> Sent: Wednesday, January 31, 2024 6:32 PM To: MScholtes/VirtualDesktop @.> Cc: Paul Bailey @.>; Mention @.> Subject: Re: [MScholtes/VirtualDesktop] I think this might not work with Win11 Dev Insider build 23606 (Issue #78)

Hello @iamsteelone https://github.com/iamsteelone ,

are you sure you are running Windows 11 23H2 22631.3085? In all my tests VirtualDesktop11-3085.exe worked.

What commands are you executing? Does "VirtualDesktop11-3085.exe LIST" work, what is the current situation?

Greetings Markus

— Reply to this email directly, view it on GitHub https://github.com/MScholtes/VirtualDesktop/issues/78#issuecomment-1919699357 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHADJYUOZXTFDKU6ZK2UP43YRKEY7AVCNFSM6AAAAABBICFZTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJZGY4TSMZVG4 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AHADJYVSHD42QFMDW7KPGHTYRKEY7A5CNFSM6AAAAABBICFZTKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTSNREZ2.gif Message ID: @.*** @.***> >

iamsteelone avatar Feb 01 '24 11:02 iamsteelone

Hello,

I released new versions today fixing the February monthly security update. I'm sorry I have got no feedback for Windows 11 22H2. Don't know whether it works or not.

Greetings

Markus

MScholtes avatar Feb 14 '24 09:02 MScholtes

PS C:\Users\jose> M:\software\VirtualDesktop-master\VirtualDesktop.exe "-Switch:Desktop 2"

Unhandled Exception: System.TypeInitializationException: The type initializer for 'VirtualDesktop.DesktopManager' threw an exception. ---> System.InvalidCastException: Specified cast is not valid. at VirtualDesktop.IServiceProvider10.QueryService(Guid& service, Guid& riid) at VirtualDesktop.DesktopManager..cctor() --- End of inner exception stack trace --- at VirtualDesktop.Desktop.SearchDesktop(String partialName) at VDeskTool.Program.Main(String[] args)

This is failing on Version 10.0.22631 Build 22631 Windows 11

I fixed by downloading the windows 11 version (VirtualDesktop11.exe)

robertmalicke avatar Feb 28 '24 22:02 robertmalicke

Issues solved (maybe new issues coming with 24H2)

MScholtes avatar Jun 16 '24 14:06 MScholtes