diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
commit | 5363f350887b1e5b5dd21a86f88c8af9d7fea6da (patch) | |
tree | 35ca005eb6e0e9a1ba3bb5dbc033209ad445dc17 /vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall | |
parent | Adding debian version 1.66.0+dfsg1-1. (diff) | |
download | rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.tar.xz rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall')
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs | 412 |
1 files changed, 0 insertions, 412 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs deleted file mode 100644 index dda3df272..000000000 --- a/vendor/windows-sys-0.28.0/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ /dev/null @@ -1,412 +0,0 @@ -#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] -#[link(name = "windows")] -extern "system" { - #[cfg(feature = "Win32_Foundation")] - pub fn NetworkIsolationDiagnoseConnectFailureAndGetInfo(wszservername: super::super::Foundation::PWSTR, netisoerror: *mut NETISO_ERROR_TYPE) -> u32; - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn NetworkIsolationEnumAppContainers(flags: u32, pdwnumpublicappcs: *mut u32, pppublicappcs: *mut *mut INET_FIREWALL_APP_CONTAINER) -> u32; - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn NetworkIsolationFreeAppContainers(ppublicappcs: *const INET_FIREWALL_APP_CONTAINER) -> u32; - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn NetworkIsolationGetAppContainerConfig(pdwnumpublicappcs: *mut u32, appcontainersids: *mut *mut super::super::Security::SID_AND_ATTRIBUTES) -> u32; - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn NetworkIsolationRegisterForAppContainerChanges(flags: u32, callback: ::core::option::Option<PAC_CHANGES_CALLBACK_FN>, context: *const ::core::ffi::c_void, registrationobject: *mut super::super::Foundation::HANDLE) -> u32; - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] - pub fn NetworkIsolationSetAppContainerConfig(dwnumpublicappcs: u32, appcontainersids: *const super::super::Security::SID_AND_ATTRIBUTES) -> u32; - #[cfg(feature = "Win32_Foundation")] - pub fn NetworkIsolationSetupAppContainerBinaries(applicationcontainersid: super::super::Foundation::PSID, packagefullname: super::super::Foundation::PWSTR, packagefolder: super::super::Foundation::PWSTR, displayname: super::super::Foundation::PWSTR, bbinariesfullycomputed: super::super::Foundation::BOOL, binaries: *const super::super::Foundation::PWSTR, binariescount: u32) -> ::windows_sys::core::HRESULT; - #[cfg(feature = "Win32_Foundation")] - pub fn NetworkIsolationUnregisterForAppContainerChanges(registrationobject: super::super::Foundation::HANDLE) -> u32; -} -pub type ICS_TARGETTYPE = i32; -pub const ICSTT_NAME: ICS_TARGETTYPE = 0i32; -pub const ICSTT_IPADDRESS: ICS_TARGETTYPE = 1i32; -pub type IDynamicPortMapping = *mut ::core::ffi::c_void; -pub type IDynamicPortMappingCollection = *mut ::core::ffi::c_void; -pub type IEnumNetConnection = *mut ::core::ffi::c_void; -pub type IEnumNetSharingEveryConnection = *mut ::core::ffi::c_void; -pub type IEnumNetSharingPortMapping = *mut ::core::ffi::c_void; -pub type IEnumNetSharingPrivateConnection = *mut ::core::ffi::c_void; -pub type IEnumNetSharingPublicConnection = *mut ::core::ffi::c_void; -pub type INATEventManager = *mut ::core::ffi::c_void; -pub type INATExternalIPAddressCallback = *mut ::core::ffi::c_void; -pub type INATNumberOfEntriesCallback = *mut ::core::ffi::c_void; -#[repr(C)] -#[cfg(feature = "Win32_Foundation")] -pub struct INET_FIREWALL_AC_BINARIES { - pub count: u32, - pub binaries: *mut super::super::Foundation::PWSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for INET_FIREWALL_AC_BINARIES {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for INET_FIREWALL_AC_BINARIES { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct INET_FIREWALL_AC_CAPABILITIES { - pub count: u32, - pub capabilities: *mut super::super::Security::SID_AND_ATTRIBUTES, -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for INET_FIREWALL_AC_CAPABILITIES {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for INET_FIREWALL_AC_CAPABILITIES { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct INET_FIREWALL_AC_CHANGE { - pub changeType: INET_FIREWALL_AC_CHANGE_TYPE, - pub createType: INET_FIREWALL_AC_CREATION_TYPE, - pub appContainerSid: *mut super::super::Security::SID, - pub userSid: *mut super::super::Security::SID, - pub displayName: super::super::Foundation::PWSTR, - pub Anonymous: INET_FIREWALL_AC_CHANGE_0, -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for INET_FIREWALL_AC_CHANGE {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for INET_FIREWALL_AC_CHANGE { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub union INET_FIREWALL_AC_CHANGE_0 { - pub capabilities: INET_FIREWALL_AC_CAPABILITIES, - pub binaries: INET_FIREWALL_AC_BINARIES, -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for INET_FIREWALL_AC_CHANGE_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for INET_FIREWALL_AC_CHANGE_0 { - fn clone(&self) -> Self { - *self - } -} -pub type INET_FIREWALL_AC_CHANGE_TYPE = i32; -pub const INET_FIREWALL_AC_CHANGE_INVALID: INET_FIREWALL_AC_CHANGE_TYPE = 0i32; -pub const INET_FIREWALL_AC_CHANGE_CREATE: INET_FIREWALL_AC_CHANGE_TYPE = 1i32; -pub const INET_FIREWALL_AC_CHANGE_DELETE: INET_FIREWALL_AC_CHANGE_TYPE = 2i32; -pub const INET_FIREWALL_AC_CHANGE_MAX: INET_FIREWALL_AC_CHANGE_TYPE = 3i32; -pub type INET_FIREWALL_AC_CREATION_TYPE = i32; -pub const INET_FIREWALL_AC_NONE: INET_FIREWALL_AC_CREATION_TYPE = 0i32; -pub const INET_FIREWALL_AC_PACKAGE_ID_ONLY: INET_FIREWALL_AC_CREATION_TYPE = 1i32; -pub const INET_FIREWALL_AC_BINARY: INET_FIREWALL_AC_CREATION_TYPE = 2i32; -pub const INET_FIREWALL_AC_MAX: INET_FIREWALL_AC_CREATION_TYPE = 4i32; -#[repr(C)] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub struct INET_FIREWALL_APP_CONTAINER { - pub appContainerSid: *mut super::super::Security::SID, - pub userSid: *mut super::super::Security::SID, - pub appContainerName: super::super::Foundation::PWSTR, - pub displayName: super::super::Foundation::PWSTR, - pub description: super::super::Foundation::PWSTR, - pub capabilities: INET_FIREWALL_AC_CAPABILITIES, - pub binaries: INET_FIREWALL_AC_BINARIES, - pub workingDirectory: super::super::Foundation::PWSTR, - pub packageFullName: super::super::Foundation::PWSTR, -} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::marker::Copy for INET_FIREWALL_APP_CONTAINER {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -impl ::core::clone::Clone for INET_FIREWALL_APP_CONTAINER { - fn clone(&self) -> Self { - *self - } -} -pub type INetConnection = *mut ::core::ffi::c_void; -pub type INetConnectionConnectUi = *mut ::core::ffi::c_void; -pub type INetConnectionManager = *mut ::core::ffi::c_void; -pub type INetConnectionProps = *mut ::core::ffi::c_void; -pub type INetFwAuthorizedApplication = *mut ::core::ffi::c_void; -pub type INetFwAuthorizedApplications = *mut ::core::ffi::c_void; -pub type INetFwIcmpSettings = *mut ::core::ffi::c_void; -pub type INetFwMgr = *mut ::core::ffi::c_void; -pub type INetFwOpenPort = *mut ::core::ffi::c_void; -pub type INetFwOpenPorts = *mut ::core::ffi::c_void; -pub type INetFwPolicy = *mut ::core::ffi::c_void; -pub type INetFwPolicy2 = *mut ::core::ffi::c_void; -pub type INetFwProduct = *mut ::core::ffi::c_void; -pub type INetFwProducts = *mut ::core::ffi::c_void; -pub type INetFwProfile = *mut ::core::ffi::c_void; -pub type INetFwRemoteAdminSettings = *mut ::core::ffi::c_void; -pub type INetFwRule = *mut ::core::ffi::c_void; -pub type INetFwRule2 = *mut ::core::ffi::c_void; -pub type INetFwRule3 = *mut ::core::ffi::c_void; -pub type INetFwRules = *mut ::core::ffi::c_void; -pub type INetFwService = *mut ::core::ffi::c_void; -pub type INetFwServiceRestriction = *mut ::core::ffi::c_void; -pub type INetFwServices = *mut ::core::ffi::c_void; -pub type INetSharingConfiguration = *mut ::core::ffi::c_void; -pub type INetSharingEveryConnectionCollection = *mut ::core::ffi::c_void; -pub type INetSharingManager = *mut ::core::ffi::c_void; -pub type INetSharingPortMapping = *mut ::core::ffi::c_void; -pub type INetSharingPortMappingCollection = *mut ::core::ffi::c_void; -pub type INetSharingPortMappingProps = *mut ::core::ffi::c_void; -pub type INetSharingPrivateConnectionCollection = *mut ::core::ffi::c_void; -pub type INetSharingPublicConnectionCollection = *mut ::core::ffi::c_void; -pub type IStaticPortMapping = *mut ::core::ffi::c_void; -pub type IStaticPortMappingCollection = *mut ::core::ffi::c_void; -pub type IUPnPNAT = *mut ::core::ffi::c_void; -pub type NETCONMGR_ENUM_FLAGS = i32; -pub const NCME_DEFAULT: NETCONMGR_ENUM_FLAGS = 0i32; -pub const NCME_HIDDEN: NETCONMGR_ENUM_FLAGS = 1i32; -pub type NETCONUI_CONNECT_FLAGS = i32; -pub const NCUC_DEFAULT: NETCONUI_CONNECT_FLAGS = 0i32; -pub const NCUC_NO_UI: NETCONUI_CONNECT_FLAGS = 1i32; -pub const NCUC_ENABLE_DISABLE: NETCONUI_CONNECT_FLAGS = 2i32; -pub type NETCON_CHARACTERISTIC_FLAGS = i32; -pub const NCCF_NONE: NETCON_CHARACTERISTIC_FLAGS = 0i32; -pub const NCCF_ALL_USERS: NETCON_CHARACTERISTIC_FLAGS = 1i32; -pub const NCCF_ALLOW_DUPLICATION: NETCON_CHARACTERISTIC_FLAGS = 2i32; -pub const NCCF_ALLOW_REMOVAL: NETCON_CHARACTERISTIC_FLAGS = 4i32; -pub const NCCF_ALLOW_RENAME: NETCON_CHARACTERISTIC_FLAGS = 8i32; -pub const NCCF_INCOMING_ONLY: NETCON_CHARACTERISTIC_FLAGS = 32i32; -pub const NCCF_OUTGOING_ONLY: NETCON_CHARACTERISTIC_FLAGS = 64i32; -pub const NCCF_BRANDED: NETCON_CHARACTERISTIC_FLAGS = 128i32; -pub const NCCF_SHARED: NETCON_CHARACTERISTIC_FLAGS = 256i32; -pub const NCCF_BRIDGED: NETCON_CHARACTERISTIC_FLAGS = 512i32; -pub const NCCF_FIREWALLED: NETCON_CHARACTERISTIC_FLAGS = 1024i32; -pub const NCCF_DEFAULT: NETCON_CHARACTERISTIC_FLAGS = 2048i32; -pub const NCCF_HOMENET_CAPABLE: NETCON_CHARACTERISTIC_FLAGS = 4096i32; -pub const NCCF_SHARED_PRIVATE: NETCON_CHARACTERISTIC_FLAGS = 8192i32; -pub const NCCF_QUARANTINED: NETCON_CHARACTERISTIC_FLAGS = 16384i32; -pub const NCCF_RESERVED: NETCON_CHARACTERISTIC_FLAGS = 32768i32; -pub const NCCF_HOSTED_NETWORK: NETCON_CHARACTERISTIC_FLAGS = 65536i32; -pub const NCCF_VIRTUAL_STATION: NETCON_CHARACTERISTIC_FLAGS = 131072i32; -pub const NCCF_WIFI_DIRECT: NETCON_CHARACTERISTIC_FLAGS = 262144i32; -pub const NCCF_BLUETOOTH_MASK: NETCON_CHARACTERISTIC_FLAGS = 983040i32; -pub const NCCF_LAN_MASK: NETCON_CHARACTERISTIC_FLAGS = 15728640i32; -pub const NETCON_MAX_NAME_LEN: u32 = 256u32; -pub type NETCON_MEDIATYPE = i32; -pub const NCM_NONE: NETCON_MEDIATYPE = 0i32; -pub const NCM_DIRECT: NETCON_MEDIATYPE = 1i32; -pub const NCM_ISDN: NETCON_MEDIATYPE = 2i32; -pub const NCM_LAN: NETCON_MEDIATYPE = 3i32; -pub const NCM_PHONE: NETCON_MEDIATYPE = 4i32; -pub const NCM_TUNNEL: NETCON_MEDIATYPE = 5i32; -pub const NCM_PPPOE: NETCON_MEDIATYPE = 6i32; -pub const NCM_BRIDGE: NETCON_MEDIATYPE = 7i32; -pub const NCM_SHAREDACCESSHOST_LAN: NETCON_MEDIATYPE = 8i32; -pub const NCM_SHAREDACCESSHOST_RAS: NETCON_MEDIATYPE = 9i32; -#[repr(C)] -#[cfg(feature = "Win32_Foundation")] -pub struct NETCON_PROPERTIES { - pub guidId: ::windows_sys::core::GUID, - pub pszwName: super::super::Foundation::PWSTR, - pub pszwDeviceName: super::super::Foundation::PWSTR, - pub Status: NETCON_STATUS, - pub MediaType: NETCON_MEDIATYPE, - pub dwCharacter: u32, - pub clsidThisObject: ::windows_sys::core::GUID, - pub clsidUiObject: ::windows_sys::core::GUID, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for NETCON_PROPERTIES {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for NETCON_PROPERTIES { - fn clone(&self) -> Self { - *self - } -} -pub type NETCON_STATUS = i32; -pub const NCS_DISCONNECTED: NETCON_STATUS = 0i32; -pub const NCS_CONNECTING: NETCON_STATUS = 1i32; -pub const NCS_CONNECTED: NETCON_STATUS = 2i32; -pub const NCS_DISCONNECTING: NETCON_STATUS = 3i32; -pub const NCS_HARDWARE_NOT_PRESENT: NETCON_STATUS = 4i32; -pub const NCS_HARDWARE_DISABLED: NETCON_STATUS = 5i32; -pub const NCS_HARDWARE_MALFUNCTION: NETCON_STATUS = 6i32; -pub const NCS_MEDIA_DISCONNECTED: NETCON_STATUS = 7i32; -pub const NCS_AUTHENTICATING: NETCON_STATUS = 8i32; -pub const NCS_AUTHENTICATION_SUCCEEDED: NETCON_STATUS = 9i32; -pub const NCS_AUTHENTICATION_FAILED: NETCON_STATUS = 10i32; -pub const NCS_INVALID_ADDRESS: NETCON_STATUS = 11i32; -pub const NCS_CREDENTIALS_REQUIRED: NETCON_STATUS = 12i32; -pub const NCS_ACTION_REQUIRED: NETCON_STATUS = 13i32; -pub const NCS_ACTION_REQUIRED_RETRY: NETCON_STATUS = 14i32; -pub const NCS_CONNECT_FAILED: NETCON_STATUS = 15i32; -pub type NETCON_TYPE = i32; -pub const NCT_DIRECT_CONNECT: NETCON_TYPE = 0i32; -pub const NCT_INBOUND: NETCON_TYPE = 1i32; -pub const NCT_INTERNET: NETCON_TYPE = 2i32; -pub const NCT_LAN: NETCON_TYPE = 3i32; -pub const NCT_PHONE: NETCON_TYPE = 4i32; -pub const NCT_TUNNEL: NETCON_TYPE = 5i32; -pub const NCT_BRIDGE: NETCON_TYPE = 6i32; -pub type NETISO_ERROR_TYPE = i32; -pub const NETISO_ERROR_TYPE_NONE: NETISO_ERROR_TYPE = 0i32; -pub const NETISO_ERROR_TYPE_PRIVATE_NETWORK: NETISO_ERROR_TYPE = 1i32; -pub const NETISO_ERROR_TYPE_INTERNET_CLIENT: NETISO_ERROR_TYPE = 2i32; -pub const NETISO_ERROR_TYPE_INTERNET_CLIENT_SERVER: NETISO_ERROR_TYPE = 3i32; -pub const NETISO_ERROR_TYPE_MAX: NETISO_ERROR_TYPE = 4i32; -pub type NETISO_FLAG = i32; -pub const NETISO_FLAG_FORCE_COMPUTE_BINARIES: NETISO_FLAG = 1i32; -pub const NETISO_FLAG_MAX: NETISO_FLAG = 2i32; -pub const NETISO_GEID_FOR_NEUTRAL_AWARE: u32 = 2u32; -pub const NETISO_GEID_FOR_WDAG: u32 = 1u32; -pub type NET_FW_ACTION = i32; -pub const NET_FW_ACTION_BLOCK: NET_FW_ACTION = 0i32; -pub const NET_FW_ACTION_ALLOW: NET_FW_ACTION = 1i32; -pub const NET_FW_ACTION_MAX: NET_FW_ACTION = 2i32; -pub type NET_FW_AUTHENTICATE_TYPE = i32; -pub const NET_FW_AUTHENTICATE_NONE: NET_FW_AUTHENTICATE_TYPE = 0i32; -pub const NET_FW_AUTHENTICATE_NO_ENCAPSULATION: NET_FW_AUTHENTICATE_TYPE = 1i32; -pub const NET_FW_AUTHENTICATE_WITH_INTEGRITY: NET_FW_AUTHENTICATE_TYPE = 2i32; -pub const NET_FW_AUTHENTICATE_AND_NEGOTIATE_ENCRYPTION: NET_FW_AUTHENTICATE_TYPE = 3i32; -pub const NET_FW_AUTHENTICATE_AND_ENCRYPT: NET_FW_AUTHENTICATE_TYPE = 4i32; -pub type NET_FW_EDGE_TRAVERSAL_TYPE = i32; -pub const NET_FW_EDGE_TRAVERSAL_TYPE_DENY: NET_FW_EDGE_TRAVERSAL_TYPE = 0i32; -pub const NET_FW_EDGE_TRAVERSAL_TYPE_ALLOW: NET_FW_EDGE_TRAVERSAL_TYPE = 1i32; -pub const NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_APP: NET_FW_EDGE_TRAVERSAL_TYPE = 2i32; -pub const NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_USER: NET_FW_EDGE_TRAVERSAL_TYPE = 3i32; -pub type NET_FW_IP_PROTOCOL = i32; -pub const NET_FW_IP_PROTOCOL_TCP: NET_FW_IP_PROTOCOL = 6i32; -pub const NET_FW_IP_PROTOCOL_UDP: NET_FW_IP_PROTOCOL = 17i32; -pub const NET_FW_IP_PROTOCOL_ANY: NET_FW_IP_PROTOCOL = 256i32; -pub type NET_FW_IP_VERSION = i32; -pub const NET_FW_IP_VERSION_V4: NET_FW_IP_VERSION = 0i32; -pub const NET_FW_IP_VERSION_V6: NET_FW_IP_VERSION = 1i32; -pub const NET_FW_IP_VERSION_ANY: NET_FW_IP_VERSION = 2i32; -pub const NET_FW_IP_VERSION_MAX: NET_FW_IP_VERSION = 3i32; -pub type NET_FW_MODIFY_STATE = i32; -pub const NET_FW_MODIFY_STATE_OK: NET_FW_MODIFY_STATE = 0i32; -pub const NET_FW_MODIFY_STATE_GP_OVERRIDE: NET_FW_MODIFY_STATE = 1i32; -pub const NET_FW_MODIFY_STATE_INBOUND_BLOCKED: NET_FW_MODIFY_STATE = 2i32; -pub type NET_FW_POLICY_TYPE = i32; -pub const NET_FW_POLICY_GROUP: NET_FW_POLICY_TYPE = 0i32; -pub const NET_FW_POLICY_LOCAL: NET_FW_POLICY_TYPE = 1i32; -pub const NET_FW_POLICY_EFFECTIVE: NET_FW_POLICY_TYPE = 2i32; -pub const NET_FW_POLICY_TYPE_MAX: NET_FW_POLICY_TYPE = 3i32; -pub type NET_FW_PROFILE_TYPE = i32; -pub const NET_FW_PROFILE_DOMAIN: NET_FW_PROFILE_TYPE = 0i32; -pub const NET_FW_PROFILE_STANDARD: NET_FW_PROFILE_TYPE = 1i32; -pub const NET_FW_PROFILE_CURRENT: NET_FW_PROFILE_TYPE = 2i32; -pub const NET_FW_PROFILE_TYPE_MAX: NET_FW_PROFILE_TYPE = 3i32; -pub type NET_FW_PROFILE_TYPE2 = i32; -pub const NET_FW_PROFILE2_DOMAIN: NET_FW_PROFILE_TYPE2 = 1i32; -pub const NET_FW_PROFILE2_PRIVATE: NET_FW_PROFILE_TYPE2 = 2i32; -pub const NET_FW_PROFILE2_PUBLIC: NET_FW_PROFILE_TYPE2 = 4i32; -pub const NET_FW_PROFILE2_ALL: NET_FW_PROFILE_TYPE2 = 2147483647i32; -pub type NET_FW_RULE_CATEGORY = i32; -pub const NET_FW_RULE_CATEGORY_BOOT: NET_FW_RULE_CATEGORY = 0i32; -pub const NET_FW_RULE_CATEGORY_STEALTH: NET_FW_RULE_CATEGORY = 1i32; -pub const NET_FW_RULE_CATEGORY_FIREWALL: NET_FW_RULE_CATEGORY = 2i32; -pub const NET_FW_RULE_CATEGORY_CONSEC: NET_FW_RULE_CATEGORY = 3i32; -pub const NET_FW_RULE_CATEGORY_MAX: NET_FW_RULE_CATEGORY = 4i32; -pub type NET_FW_RULE_DIRECTION = i32; -pub const NET_FW_RULE_DIR_IN: NET_FW_RULE_DIRECTION = 1i32; -pub const NET_FW_RULE_DIR_OUT: NET_FW_RULE_DIRECTION = 2i32; -pub const NET_FW_RULE_DIR_MAX: NET_FW_RULE_DIRECTION = 3i32; -pub type NET_FW_SCOPE = i32; -pub const NET_FW_SCOPE_ALL: NET_FW_SCOPE = 0i32; -pub const NET_FW_SCOPE_LOCAL_SUBNET: NET_FW_SCOPE = 1i32; -pub const NET_FW_SCOPE_CUSTOM: NET_FW_SCOPE = 2i32; -pub const NET_FW_SCOPE_MAX: NET_FW_SCOPE = 3i32; -pub type NET_FW_SERVICE_TYPE = i32; -pub const NET_FW_SERVICE_FILE_AND_PRINT: NET_FW_SERVICE_TYPE = 0i32; -pub const NET_FW_SERVICE_UPNP: NET_FW_SERVICE_TYPE = 1i32; -pub const NET_FW_SERVICE_REMOTE_DESKTOP: NET_FW_SERVICE_TYPE = 2i32; -pub const NET_FW_SERVICE_NONE: NET_FW_SERVICE_TYPE = 3i32; -pub const NET_FW_SERVICE_TYPE_MAX: NET_FW_SERVICE_TYPE = 4i32; -pub const NetFwAuthorizedApplication: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3969402547, data2: 10082, data3: 19051, data4: [162, 20, 106, 203, 96, 52, 98, 210] }; -pub const NetFwMgr: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 810346818, data2: 28217, data3: 16600, data4: [148, 58, 185, 19, 196, 12, 156, 212] }; -pub const NetFwOpenPort: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 212157894, data2: 14253, data3: 19052, data4: [191, 146, 159, 118, 16, 6, 126, 245] }; -pub const NetFwPolicy2: ::windows_sys::core::GUID = ::windows_sys::core::GUID { - data1: 3803433343, - data2: 27361, - data3: 16812, - data4: [129, 122, 246, 249, 33, 102, 215, 221], -}; -pub const NetFwProduct: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 2641649368, data2: 50452, data3: 19741, data4: [191, 66, 117, 31, 237, 45, 90, 199] }; -pub const NetFwProducts: ::windows_sys::core::GUID = ::windows_sys::core::GUID { - data1: 3424192411, - data2: 33394, - data3: 19827, - data4: [187, 112, 205, 181, 51, 82, 123, 97], -}; -pub const NetFwRule: ::windows_sys::core::GUID = ::windows_sys::core::GUID { - data1: 744211518, - data2: 13161, - data3: 19507, - data4: [171, 12, 190, 148, 105, 103, 122, 244], -}; -pub const NetSharingManager: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1550041517, data2: 14678, data3: 20472, data4: [132, 134, 64, 3, 71, 88, 49, 91] }; -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] -pub type PAC_CHANGES_CALLBACK_FN = unsafe extern "system" fn(context: *const ::core::ffi::c_void, pchange: *const INET_FIREWALL_AC_CHANGE); -#[cfg(feature = "Win32_Foundation")] -pub type PFN_FWADDDYNAMICKEYWORDADDRESS0 = unsafe extern "system" fn(dynamickeywordaddress: *const _tag_FW_DYNAMIC_KEYWORD_ADDRESS0) -> u32; -pub type PFN_FWDELETEDYNAMICKEYWORDADDRESS0 = unsafe extern "system" fn(dynamickeywordaddressid: ::windows_sys::core::GUID) -> u32; -#[cfg(feature = "Win32_Foundation")] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSBYID0 = unsafe extern "system" fn(dynamickeywordaddressid: ::windows_sys::core::GUID, dynamickeywordaddressdata: *mut *mut _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32; -#[cfg(feature = "Win32_Foundation")] -pub type PFN_FWENUMDYNAMICKEYWORDADDRESSESBYTYPE0 = unsafe extern "system" fn(flags: u32, dynamickeywordaddressdata: *mut *mut _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32; -#[cfg(feature = "Win32_Foundation")] -pub type PFN_FWFREEDYNAMICKEYWORDADDRESSDATA0 = unsafe extern "system" fn(dynamickeywordaddressdata: *const _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0) -> u32; -#[cfg(feature = "Win32_Foundation")] -pub type PFN_FWUPDATEDYNAMICKEYWORDADDRESS0 = unsafe extern "system" fn(dynamickeywordaddressid: ::windows_sys::core::GUID, updatedaddresses: super::super::Foundation::PWSTR, append: super::super::Foundation::BOOL) -> u32; -#[cfg(feature = "Win32_Foundation")] -pub type PNETISO_EDP_ID_CALLBACK_FN = unsafe extern "system" fn(context: *mut ::core::ffi::c_void, wszenterpriseid: super::super::Foundation::PWSTR, dwerr: u32); -pub type SHARINGCONNECTIONTYPE = i32; -pub const ICSSHARINGTYPE_PUBLIC: SHARINGCONNECTIONTYPE = 0i32; -pub const ICSSHARINGTYPE_PRIVATE: SHARINGCONNECTIONTYPE = 1i32; -pub type SHARINGCONNECTION_ENUM_FLAGS = i32; -pub const ICSSC_DEFAULT: SHARINGCONNECTION_ENUM_FLAGS = 0i32; -pub const ICSSC_ENABLED: SHARINGCONNECTION_ENUM_FLAGS = 1i32; -pub const S_OBJECT_NO_LONGER_VALID: ::windows_sys::core::HRESULT = 2i32; -pub const UPnPNAT: ::windows_sys::core::GUID = ::windows_sys::core::GUID { - data1: 2921201834, - data2: 16341, - data3: 16444, - data4: [138, 39, 43, 189, 195, 12, 208, 225], -}; -#[repr(C)] -#[cfg(feature = "Win32_Foundation")] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - pub id: ::windows_sys::core::GUID, - pub keyword: super::super::Foundation::PWSTR, - pub flags: u32, - pub addresses: super::super::Foundation::PWSTR, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS0 { - fn clone(&self) -> Self { - *self - } -} -#[repr(C)] -#[cfg(feature = "Win32_Foundation")] -pub struct _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - pub dynamicKeywordAddress: _tag_FW_DYNAMIC_KEYWORD_ADDRESS0, - pub next: *mut _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0, - pub schemaVersion: u16, - pub originType: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE, -} -#[cfg(feature = "Win32_Foundation")] -impl ::core::marker::Copy for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 {} -#[cfg(feature = "Win32_Foundation")] -impl ::core::clone::Clone for _tag_FW_DYNAMIC_KEYWORD_ADDRESS_DATA0 { - fn clone(&self) -> Self { - *self - } -} -pub type _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = i32; -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 1i32; -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_NON_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 2i32; -pub const FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS_ALL: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_ENUM_FLAGS = 3i32; -pub type _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = i32; -pub const FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS_AUTO_RESOLVE: _tag_FW_DYNAMIC_KEYWORD_ADDRESS_FLAGS = 1i32; -pub type _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = i32; -pub const FW_DYNAMIC_KEYWORD_ORIGIN_INVALID: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 0i32; -pub const FW_DYNAMIC_KEYWORD_ORIGIN_LOCAL: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 1i32; -pub const FW_DYNAMIC_KEYWORD_ORIGIN_MDM: _tag_FW_DYNAMIC_KEYWORD_ORIGIN_TYPE = 2i32; |