feat(wm): initial commit

One week of blissful, in-the-zone coding, applying all of the lessons
learnt from the development of yatta.
This commit is contained in:
LGUG2Z
2021-07-29 16:18:06 -07:00
commit 61cee458a1
32 changed files with 5593 additions and 0 deletions

13
bindings/Cargo.toml Normal file
View File

@@ -0,0 +1,13 @@
[package]
name = "bindings"
version = "0.1.0"
authors = ["Jade Iqbal"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
windows = "0.17.2"
[build-dependencies]
windows = "0.17.2"

29
bindings/build.rs Normal file
View File

@@ -0,0 +1,29 @@
fn main() {
windows::build!(
Windows::Win32::Foundation::{
POINT,
RECT,
BOOL,
PWSTR,
HWND,
LPARAM,
},
// error: `Windows.Win32.Graphics.Dwm.DWMWA_CLOAKED` not found in metadata
Windows::Win32::Graphics::Dwm::*,
// error: `Windows.Win32.Graphics.Gdi.MONITOR_DEFAULTTONEAREST` not found in metadata
Windows::Win32::Graphics::Gdi::*,
Windows::Win32::System::Threading::{
PROCESS_ACCESS_RIGHTS,
PROCESS_NAME_FORMAT,
OpenProcess,
QueryFullProcessImageNameW,
GetCurrentThreadId,
AttachThreadInput,
GetCurrentProcessId
},
Windows::Win32::UI::KeyboardAndMouseInput::SetFocus,
Windows::Win32::UI::Accessibility::{SetWinEventHook, HWINEVENTHOOK},
// error: `Windows.Win32.UI.WindowsAndMessaging.GWL_EXSTYLE` not found in metadata
Windows::Win32::UI::WindowsAndMessaging::*,
);
}

1
bindings/src/lib.rs Normal file
View File

@@ -0,0 +1 @@
::windows::include_bindings!();