Updated to work with Win11 Dev 23606. #62
+15
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the latest Win11 Dev release # 23606 the COM GUID changed as well as the methods in Win11 Dev were reverted back to maintain Win10 compatibility and the
_vtable
order was revered back to Win11 stable compatibility.This PR addresses #61
This isn't really a ready PR since it breaks backwards compatibility and doesn't add another
if
block for this differing Win11 version. Though it seems theif
block that sets the_vtable
order can be consolidated to a single else to match stable Win11. The methods for Win11 dev would need to be duplicated though and basically just point back at the Win10 methods. I updated the IVirtualDesktopNotification GUID too even though I don't know what it does, but it was different. I found the updated GUIDs from another project here:https://github.com/itzjakm/VirtualDesktopAccessor/blob/22635.2915/src/interfaces.rs
But at least with this PR what's necessary is clear as well as the new GUIDs. I haven't thoroughly tested all the functions, only what was necessary for my script which was:
VD.getCurrentDesktopNum()
,VD.MoveWindowToDesktopNum(active,n)
,VD.goToDesktopNum(n)