Ciantic / VirtualDesktopAccessor

DLL for accessing Windows 11/10 Virtual Desktop features from e.g. AutoHotkey
MIT License
782 stars 93 forks source link

is Windows 10 still supported with the crate? #65

Closed maxomatic458 closed 1 year ago

maxomatic458 commented 1 year ago

I am on Windows 10 Home 22H2 19045.3086 and get_desktop_count() returns this for me: ComError(HRESULT(0x80004002)).

this does work with version 0.20 for me, but there i experience this panic when spam-switching virtual desktops:

thread '' panicked at 'Underflow of reference count', C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\winvd-0.0.20\src\changelistener.rs:92:1

Ciantic commented 1 year ago

Windows 10 is not supported in the Rust crate, some old versions might work as you have figured out already.

maxomatic458 commented 1 year ago

Ok good to know

I also fixed my problem with 0.20, I added a min delay of 50ms between each call of get_desktop_count and that fixed the panic.