From 1b6a04ca5504955c571d1c97504fb45ea0befee4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 8 Jan 2024 01:21:28 +0400 Subject: Initial vendor packages Signed-off-by: Valentin Popov --- .../Windows/Win32/Devices/SerialCommunication/mod.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/SerialCommunication/mod.rs (limited to 'vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/SerialCommunication') diff --git a/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/SerialCommunication/mod.rs b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/SerialCommunication/mod.rs new file mode 100644 index 0000000..7d54a0e --- /dev/null +++ b/vendor/windows-sys-0.45.0/src/Windows/Win32/Devices/SerialCommunication/mod.rs @@ -0,0 +1,17 @@ +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBClaimNextFreePort ( hcomdb : HCOMDB , comnumber : *mut u32 ) -> i32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`, `\"Win32_Foundation\"`*"] fn ComDBClaimPort ( hcomdb : HCOMDB , comnumber : u32 , forceclaim : super::super::Foundation:: BOOL , forced : *mut super::super::Foundation:: BOOL ) -> i32 ); +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBClose ( hcomdb : HCOMDB ) -> i32 ); +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBGetCurrentPortUsage ( hcomdb : HCOMDB , buffer : *mut u8 , buffersize : u32 , reporttype : u32 , maxportsreported : *mut u32 ) -> i32 ); +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBOpen ( phcomdb : *mut isize ) -> i32 ); +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBReleasePort ( hcomdb : HCOMDB , comnumber : u32 ) -> i32 ); +::windows_sys::core::link ! ( "msports.dll""system" #[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] fn ComDBResizeDatabase ( hcomdb : HCOMDB , newsize : u32 ) -> i32 ); +#[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] +pub const CDB_REPORT_BITS: u32 = 0u32; +#[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] +pub const CDB_REPORT_BYTES: u32 = 1u32; +#[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] +pub const COMDB_MAX_PORTS_ARBITRATED: u32 = 4096u32; +#[doc = "*Required features: `\"Win32_Devices_SerialCommunication\"`*"] +pub const COMDB_MIN_PORTS_ARBITRATED: u32 = 256u32; +pub type HCOMDB = isize; -- cgit v1.2.3