• Stars
    star
    746
  • Rank 60,823 (Top 2 %)
  • Language
    Rust
  • License
    MIT License
  • Created about 9 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DLL for accessing Windows 11/10 Virtual Desktop features from e.g. AutoHotkey

VirtualDesktopAccessor.dll

DLL for accessing Windows 11 (22H2 Os Build 22621.1105) Virtual Desktop features from e.g. AutoHotkey. MIT Licensed, see LICENSE © Jari Pennanen, 2015-2023

This repository also contains Rust library winvd for accessing the Virtual Desktop via Rust bindings.

AutoHotkey example here:

Download from releases:

Download the DLL from releases ⬇️

Reference of exported DLL functions

All functions return -1 in case of error.

fn GetCurrentDesktopNumber() -> i32
fn GetDesktopCount() -> i32
fn GetDesktopIdByNumber(number: i32) -> GUID // Untested
fn GetDesktopNumberById(desktop_id: GUID) -> i32 // Untested
fn GetWindowDesktopId(hwnd: HWND) -> GUID
fn GetWindowDesktopNumber(hwnd: HWND) -> i32
fn IsWindowOnCurrentVirtualDesktop(hwnd: HWND) -> i32
fn MoveWindowToDesktopNumber(hwnd: HWND, desktop_number: i32) -> i32
fn GoToDesktopNumber(desktop_number: i32) -> i32
fn SetDesktopName(desktop_number: i32, in_name_ptr: *const i8) -> i32  // Win11 only
fn GetDesktopName(desktop_number: i32, out_utf8_ptr: *mut u8, out_utf8_len: usize) -> i32 // Win11 only
fn RegisterPostMessageHook(listener_hwnd: HWND, message_offset: u32) -> i32
fn UnregisterPostMessageHook(listener_hwnd: HWND) -> i32
fn IsPinnedWindow(hwnd: HWND) -> i32
fn PinWindow(hwnd: HWND) -> i32
fn UnPinWindow(hwnd: HWND) -> i32
fn IsPinnedApp(hwnd: HWND) -> i32
fn PinApp(hwnd: HWND) -> i32
fn UnPinApp(hwnd: HWND) -> i32 
fn IsWindowOnDesktopNumber(hwnd: HWND, desktop_number: i32) -> i32
fn CreateDesktop() -> i32 // Win11 only
fn RemoveDesktop(remove_desktop_number: i32, fallback_desktop_number: i32) -> i32 // Win11 only

More Repositories

1

trayicon-rs

Tray Icon Rust
Rust
53
star
2

songdetails

Pure Python package called `songdetails`, licensed under FreeBSD License. Can update and retrieve song details such as artist, title, album, duration... Uses pytagger, and mpeg1audio, only supported file type is MP3 currently.
Python
47
star
3

keymapceditor

Preview and edit the QMK Firmware keymap.c files from a GUI
TypeScript
45
star
4

DisableFlashingTaskbarButtons

Disable flashing taskbar buttons feature from Windows 10 (64bit) explorer.exe
AutoHotkey
44
star
5

keymapceditor-vsc

KeymapCEditor - Visual Studio Code Extension
TypeScript
32
star
6

TaskQueue

Just a simple task queue in C#
C#
16
star
7

npsimple-win32

NPAPI (npsimple) example for Microsoft Visual Studio 2008
C
15
star
8

mpeg1audio

Pure Python MPEG Audio Layer 1, 2 and 3 meta information retrieval package "mpeg1audio".
Python
12
star
9

rust-wasm-and-c

Rust
12
star
10

freetype-wasm

FreeType compiled in WASM with emscripten
C++
10
star
11

rust-shared-wasm-experiments

The example WASM library show casing shared HashMap, and crossbeam's channel between workers.
JavaScript
10
star
12

everything-sys-rs

VoidTools' Everything library as Rust crate
C
7
star
13

pytagger

The seemingly-abandoned pytagger project as a Git repository.
Python
6
star
14

gpg-ed25519-to-cv25519

Convert GPG ed25519 to cv25519 encryption key
Rust
5
star
15

monitortoggler

Monitor toggler command line program for Windows (7/Vista/XP). Provided monitortoggler.exe is in *repository* simply because building is ass-faced in Windows... And I don't t feel like I'm making changes to this program much.
C++
5
star
16

RemoteThreader

Helps you to inject your dll in another process
C++
5
star
17

deno-solidjs

Compile SolidJS with Deno
TypeScript
4
star
18

AspNetApiMonolithSample

ASP.NET Monolith Api Sample -- not fully functional yet
C#
4
star
19

AltTabAccessor

Access ALT TAB related functions
Rust
4
star
20

dx12-learning

My DX12 learning stuff
Rust
4
star
21

thoughts

Just my public thoughts, think of it like a blog I never update
3
star
22

NppyPluginDll

General Python Plugins DLL for Notepad++
C
3
star
23

wasmyon

I'm experimenting with rayon, Rust and WASM here.
Rust
3
star
24

chrome-vertmax

Chrome extension that vertical maximizes new windows under Windows 7.
C
3
star
25

totper

Very simple CLI wrapper for TOTP
Rust
2
star
26

oksidi-sharer-solid

Oksidi-sharer web component in Solid JS
CSS
2
star
27

sdf-to-stl-ts

SDF to STL/Mesh (TypeScript)
TypeScript
2
star
28

GarminPerformanceTests

Testing Garmin IQ drawing primitives for performance
Monkey C
2
star
29

ensime-vsc

ENSIME support for Visual Studio Code
1
star
30

TestGraphQLWithFsharp

This is a bug repo
F#
1
star
31

CianticQmkKeymap

My keymap on QMK firmware
C
1
star
32

typescript-test-module-with-typings

TypeScript
1
star
33

oksidi-sharer-stencil

HTML
1
star
34

oksidi-sharer-svelte

Oksidi-sharer a web component experiment
HTML
1
star
35

finnish-docker-tutorial

Finnish Docker tutorial for those who has been living in a barrel for last five years
1
star
36

sphinkydoc

Sphinkydoc, Sphinx extension and script that is aimed to generate documentation.
Python
1
star
37

microservices-and-kubernetes-experiments

My personal Microservices & Kubernetes experiments
Shell
1
star
38

ciantic.github.com

CSS
1
star
39

wp-commenting-defaults

WP: Currently only disables Commenting and Ping Backs from New Page -form.
PHP
1
star
40

epubber

Epubber - it does something with epub files
TypeScript
1
star
41

TerraformHardening

Cities Skylines 2 mod - Adds a price to terraforming
C#
1
star