mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-24 09:38:32 +02:00
chore(deps): bump windows crates from 0.44 to 0.48
This commit is contained in:
14
Cargo.lock
generated
14
Cargo.lock
generated
@@ -1581,20 +1581,20 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows"
|
name = "windows"
|
||||||
version = "0.44.0"
|
version = "0.48.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b"
|
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-implement",
|
"windows-implement",
|
||||||
"windows-interface",
|
"windows-interface",
|
||||||
"windows-targets 0.42.2",
|
"windows-targets 0.48.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-implement"
|
name = "windows-implement"
|
||||||
version = "0.44.0"
|
version = "0.48.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6ce87ca8e3417b02dc2a8a22769306658670ec92d78f1bd420d6310a67c245c6"
|
checksum = "5e2ee588991b9e7e6c8338edf3333fbe4da35dc72092643958ebb43f0ab2c49c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -1603,9 +1603,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "windows-interface"
|
name = "windows-interface"
|
||||||
version = "0.44.0"
|
version = "0.48.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "853f69a591ecd4f810d29f17e902d40e349fb05b0b11fff63b08b826bfe39c7f"
|
checksum = "e6fb8df20c9bcaa8ad6ab513f7b40104840c8867d5751126e4df3b08388d0cc7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ strum = { version = "0.24", features = ["derive"] }
|
|||||||
schemars = "0.8"
|
schemars = "0.8"
|
||||||
|
|
||||||
[dependencies.windows]
|
[dependencies.windows]
|
||||||
version = "0.44"
|
version = "0.48"
|
||||||
features = [
|
features = [
|
||||||
"Win32_Foundation",
|
"Win32_Foundation",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ uds_windows = "1"
|
|||||||
which = "4"
|
which = "4"
|
||||||
winput = "0.2"
|
winput = "0.2"
|
||||||
winreg = "0.50"
|
winreg = "0.50"
|
||||||
windows-interface = { version = "0.44" }
|
windows-interface = { version = "0.48" }
|
||||||
windows-implement = { version = "0.44" }
|
windows-implement = { version = "0.48" }
|
||||||
[dependencies.windows]
|
[dependencies.windows]
|
||||||
version = "0.44"
|
version = "0.48"
|
||||||
features = [
|
features = [
|
||||||
"implement",
|
"implement",
|
||||||
"Win32_System_Com",
|
"Win32_System_Com",
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ use interfaces::IServiceProvider;
|
|||||||
|
|
||||||
use std::ffi::c_void;
|
use std::ffi::c_void;
|
||||||
|
|
||||||
|
use windows::core::ComInterface;
|
||||||
use windows::core::Interface;
|
use windows::core::Interface;
|
||||||
use windows::core::Vtable;
|
|
||||||
use windows::Win32::Foundation::HWND;
|
use windows::Win32::Foundation::HWND;
|
||||||
use windows::Win32::System::Com::CoCreateInstance;
|
use windows::Win32::System::Com::CoCreateInstance;
|
||||||
use windows::Win32::System::Com::CoInitializeEx;
|
use windows::Win32::System::Com::CoInitializeEx;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use windows::core::PWSTR;
|
|||||||
use windows::Win32::Foundation::BOOL;
|
use windows::Win32::Foundation::BOOL;
|
||||||
use windows::Win32::Foundation::COLORREF;
|
use windows::Win32::Foundation::COLORREF;
|
||||||
use windows::Win32::Foundation::HANDLE;
|
use windows::Win32::Foundation::HANDLE;
|
||||||
use windows::Win32::Foundation::HINSTANCE;
|
use windows::Win32::Foundation::HMODULE;
|
||||||
use windows::Win32::Foundation::HWND;
|
use windows::Win32::Foundation::HWND;
|
||||||
use windows::Win32::Foundation::LPARAM;
|
use windows::Win32::Foundation::LPARAM;
|
||||||
use windows::Win32::Foundation::POINT;
|
use windows::Win32::Foundation::POINT;
|
||||||
@@ -671,7 +671,7 @@ impl WindowsApi {
|
|||||||
pub fn system_parameters_info_w(
|
pub fn system_parameters_info_w(
|
||||||
action: SYSTEM_PARAMETERS_INFO_ACTION,
|
action: SYSTEM_PARAMETERS_INFO_ACTION,
|
||||||
ui_param: u32,
|
ui_param: u32,
|
||||||
pv_param: *const c_void,
|
pv_param: *mut c_void,
|
||||||
update_flags: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS,
|
update_flags: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
unsafe { SystemParametersInfoW(action, ui_param, Option::from(pv_param), update_flags) }
|
unsafe { SystemParametersInfoW(action, ui_param, Option::from(pv_param), update_flags) }
|
||||||
@@ -681,12 +681,12 @@ impl WindowsApi {
|
|||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub fn focus_follows_mouse() -> Result<bool> {
|
pub fn focus_follows_mouse() -> Result<bool> {
|
||||||
let is_enabled: BOOL = unsafe { std::mem::zeroed() };
|
let mut is_enabled: BOOL = unsafe { std::mem::zeroed() };
|
||||||
|
|
||||||
Self::system_parameters_info_w(
|
Self::system_parameters_info_w(
|
||||||
SPI_GETACTIVEWINDOWTRACKING,
|
SPI_GETACTIVEWINDOWTRACKING,
|
||||||
0,
|
0,
|
||||||
std::ptr::addr_of!(is_enabled).cast(),
|
std::ptr::addr_of_mut!(is_enabled).cast(),
|
||||||
SPIF_SENDCHANGE,
|
SPIF_SENDCHANGE,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
@@ -698,7 +698,7 @@ impl WindowsApi {
|
|||||||
Self::system_parameters_info_w(
|
Self::system_parameters_info_w(
|
||||||
SPI_SETACTIVEWINDOWTRACKING,
|
SPI_SETACTIVEWINDOWTRACKING,
|
||||||
0,
|
0,
|
||||||
1 as *const c_void,
|
1 as *mut c_void,
|
||||||
SPIF_SENDCHANGE,
|
SPIF_SENDCHANGE,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -708,12 +708,12 @@ impl WindowsApi {
|
|||||||
Self::system_parameters_info_w(
|
Self::system_parameters_info_w(
|
||||||
SPI_SETACTIVEWINDOWTRACKING,
|
SPI_SETACTIVEWINDOWTRACKING,
|
||||||
0,
|
0,
|
||||||
std::ptr::null::<c_void>(),
|
std::ptr::null_mut::<c_void>(),
|
||||||
SPIF_SENDCHANGE,
|
SPIF_SENDCHANGE,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn module_handle_w() -> Result<HINSTANCE> {
|
pub fn module_handle_w() -> Result<HMODULE> {
|
||||||
unsafe { GetModuleHandleW(None) }.process()
|
unsafe { GetModuleHandleW(None) }.process()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -750,7 +750,7 @@ impl WindowsApi {
|
|||||||
.process()
|
.process()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_border_window(name: PCSTR, instance: HINSTANCE) -> Result<isize> {
|
pub fn create_border_window(name: PCSTR, instance: HMODULE) -> Result<isize> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let hwnd = CreateWindowExA(
|
let hwnd = CreateWindowExA(
|
||||||
WS_EX_TOOLWINDOW | WS_EX_LAYERED,
|
WS_EX_TOOLWINDOW | WS_EX_LAYERED,
|
||||||
@@ -782,7 +782,7 @@ impl WindowsApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_hidden_window(name: PCSTR, instance: HINSTANCE) -> Result<isize> {
|
pub fn create_hidden_window(name: PCSTR, instance: HMODULE) -> Result<isize> {
|
||||||
unsafe {
|
unsafe {
|
||||||
CreateWindowExA(
|
CreateWindowExA(
|
||||||
WS_EX_NOACTIVATE,
|
WS_EX_NOACTIVATE,
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ use windows::Win32::Graphics::Gdi::HDC;
|
|||||||
use windows::Win32::Graphics::Gdi::HMONITOR;
|
use windows::Win32::Graphics::Gdi::HMONITOR;
|
||||||
use windows::Win32::Graphics::Gdi::PAINTSTRUCT;
|
use windows::Win32::Graphics::Gdi::PAINTSTRUCT;
|
||||||
use windows::Win32::Graphics::Gdi::PS_SOLID;
|
use windows::Win32::Graphics::Gdi::PS_SOLID;
|
||||||
use windows::Win32::System::SystemServices::DBT_DEVNODES_CHANGED;
|
|
||||||
use windows::Win32::UI::Accessibility::HWINEVENTHOOK;
|
use windows::Win32::UI::Accessibility::HWINEVENTHOOK;
|
||||||
use windows::Win32::UI::WindowsAndMessaging::DefWindowProcW;
|
use windows::Win32::UI::WindowsAndMessaging::DefWindowProcW;
|
||||||
use windows::Win32::UI::WindowsAndMessaging::PostQuitMessage;
|
use windows::Win32::UI::WindowsAndMessaging::PostQuitMessage;
|
||||||
|
use windows::Win32::UI::WindowsAndMessaging::DBT_DEVNODES_CHANGED;
|
||||||
use windows::Win32::UI::WindowsAndMessaging::SPI_ICONVERTICALSPACING;
|
use windows::Win32::UI::WindowsAndMessaging::SPI_ICONVERTICALSPACING;
|
||||||
use windows::Win32::UI::WindowsAndMessaging::SPI_SETWORKAREA;
|
use windows::Win32::UI::WindowsAndMessaging::SPI_SETWORKAREA;
|
||||||
use windows::Win32::UI::WindowsAndMessaging::WM_DESTROY;
|
use windows::Win32::UI::WindowsAndMessaging::WM_DESTROY;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ sysinfo = "0.28"
|
|||||||
uds_windows = "1"
|
uds_windows = "1"
|
||||||
|
|
||||||
[dependencies.windows]
|
[dependencies.windows]
|
||||||
version = "0.44"
|
version = "0.48"
|
||||||
features = [
|
features = [
|
||||||
"Win32_Foundation",
|
"Win32_Foundation",
|
||||||
"Win32_UI_WindowsAndMessaging"
|
"Win32_UI_WindowsAndMessaging"
|
||||||
|
|||||||
Reference in New Issue
Block a user