From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../Win32/NetworkManagement/NetShell/mod.rs | 52 ++++++++-------------- 1 file changed, 19 insertions(+), 33 deletions(-) (limited to 'vendor/windows-sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs') diff --git a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs index dce979375..fa512c6b5 100644 --- a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/NetShell/mod.rs @@ -1,31 +1,17 @@ -#[cfg_attr(windows, link(name = "windows"))] -extern "cdecl" { - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PrintError(hmodule: super::super::Foundation::HANDLE, dwerrid: u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] - pub fn PrintMessage(pwszformat: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PrintMessageFromModule(hmodule: super::super::Foundation::HANDLE, dwmsgid: u32) -> u32; -} -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn MatchEnumTag(hmodule: super::super::Foundation::HANDLE, pwcarg: ::windows_sys::core::PCWSTR, dwnumarg: u32, penumtable: *const TOKEN_VALUE, pdwvalue: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn MatchToken(pwszusertoken: ::windows_sys::core::PCWSTR, pwszcmdtoken: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn PreprocessCommand(hmodule: super::super::Foundation::HANDLE, ppwcarguments: *mut ::windows_sys::core::PWSTR, dwcurrentindex: u32, dwargcount: u32, ptttags: *mut TAG_TYPE, dwtagcount: u32, dwminargs: u32, dwmaxargs: u32, pdwtagtype: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RegisterContext(pchildcontext: *const NS_CONTEXT_ATTRIBUTES) -> u32; - #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] - pub fn RegisterHelper(pguidparentcontext: *const ::windows_sys::core::GUID, pfnregistersubcontext: *const NS_HELPER_ATTRIBUTES) -> u32; -} +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn MatchEnumTag ( hmodule : super::super::Foundation:: HANDLE , pwcarg : :: windows_sys::core::PCWSTR , dwnumarg : u32 , penumtable : *const TOKEN_VALUE , pdwvalue : *mut u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn MatchToken ( pwszusertoken : :: windows_sys::core::PCWSTR , pwszcmdtoken : :: windows_sys::core::PCWSTR ) -> super::super::Foundation:: BOOL ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn PreprocessCommand ( hmodule : super::super::Foundation:: HANDLE , ppwcarguments : *mut :: windows_sys::core::PWSTR , dwcurrentindex : u32 , dwargcount : u32 , ptttags : *mut TAG_TYPE , dwtagcount : u32 , dwminargs : u32 , dwmaxargs : u32 , pdwtagtype : *mut u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""cdecl" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn PrintError ( hmodule : super::super::Foundation:: HANDLE , dwerrid : u32 ) -> u32 ); +::windows_sys::core::link ! ( "netsh.dll""cdecl" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] fn PrintMessage ( pwszformat : :: windows_sys::core::PCWSTR ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""cdecl" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn PrintMessageFromModule ( hmodule : super::super::Foundation:: HANDLE , dwmsgid : u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "netsh.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`, `\"Win32_Foundation\"`*"] fn RegisterContext ( pchildcontext : *const NS_CONTEXT_ATTRIBUTES ) -> u32 ); +::windows_sys::core::link ! ( "netsh.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] fn RegisterHelper ( pguidparentcontext : *const :: windows_sys::core::GUID , pfnregistersubcontext : *const NS_HELPER_ATTRIBUTES ) -> u32 ); #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub const DEFAULT_CONTEXT_PRIORITY: u32 = 100u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] @@ -71,13 +57,13 @@ pub const ERROR_TAG_ALREADY_PRESENT: u32 = 15008u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub const ERROR_TRANSPORT_NOT_PRESENT: u32 = 15012u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -pub const GET_RESOURCE_STRING_FN_NAME: &str = "GetResourceString"; +pub const GET_RESOURCE_STRING_FN_NAME: ::windows_sys::core::PCSTR = ::windows_sys::s!("GetResourceString"); #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub const MAX_NAME_LEN: u32 = 48u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -pub const NETSH_ARG_DELIMITER: &str = "="; +pub const NETSH_ARG_DELIMITER: ::windows_sys::core::PCWSTR = ::windows_sys::w!("="); #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -pub const NETSH_CMD_DELIMITER: &str = " "; +pub const NETSH_CMD_DELIMITER: ::windows_sys::core::PCWSTR = ::windows_sys::w!(" "); #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub const NETSH_ERROR_BASE: u32 = 15000u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] @@ -89,7 +75,7 @@ pub const NETSH_MAX_TOKEN_LENGTH: u32 = 64u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub const NETSH_VERSION_50: u32 = 20480u32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -pub const NS_GET_EVENT_IDS_FN_NAME: &str = "GetEventIds"; +pub const NS_GET_EVENT_IDS_FN_NAME: ::windows_sys::core::PCSTR = ::windows_sys::s!("GetEventIds"); #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub type NS_CMD_FLAGS = i32; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] @@ -311,7 +297,7 @@ pub type PNS_CONTEXT_COMMIT_FN = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -pub type PNS_CONTEXT_DUMP_FN = ::core::option::Option u32>; +pub type PNS_CONTEXT_DUMP_FN = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] pub type PNS_DLL_INIT_FN = ::core::option::Option u32>; #[doc = "*Required features: `\"Win32_NetworkManagement_NetShell\"`*"] -- cgit v1.2.3