]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Win32/System/HostComputeNetwork/mod.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / HostComputeNetwork / mod.rs
CommitLineData
9c376795
FG
1::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCloseEndpoint ( endpoint : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
2::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCloseGuestNetworkService ( guestnetworkservice : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
3::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCloseLoadBalancer ( loadbalancer : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
4::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCloseNamespace ( namespace : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
5::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCloseNetwork ( network : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
6::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCreateEndpoint ( network : *const ::core::ffi::c_void , id : *const :: windows_sys::core::GUID , settings : :: windows_sys::core::PCWSTR , endpoint : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
7::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCreateGuestNetworkService ( id : *const :: windows_sys::core::GUID , settings : :: windows_sys::core::PCWSTR , guestnetworkservice : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
8::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCreateLoadBalancer ( id : *const :: windows_sys::core::GUID , settings : :: windows_sys::core::PCWSTR , loadbalancer : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
9::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCreateNamespace ( id : *const :: windows_sys::core::GUID , settings : :: windows_sys::core::PCWSTR , namespace : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
10::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnCreateNetwork ( id : *const :: windows_sys::core::GUID , settings : :: windows_sys::core::PCWSTR , network : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
11::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnDeleteEndpoint ( id : *const :: windows_sys::core::GUID , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
12::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnDeleteGuestNetworkService ( id : *const :: windows_sys::core::GUID , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
13::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnDeleteLoadBalancer ( id : *const :: windows_sys::core::GUID , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
14::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnDeleteNamespace ( id : *const :: windows_sys::core::GUID , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
15::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnDeleteNetwork ( id : *const :: windows_sys::core::GUID , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
16::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnEnumerateEndpoints ( query : :: windows_sys::core::PCWSTR , endpoints : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
17::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnEnumerateGuestNetworkPortReservations ( returncount : *mut u32 , portentries : *mut *mut HCN_PORT_RANGE_ENTRY ) -> :: windows_sys::core::HRESULT );
18::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnEnumerateLoadBalancers ( query : :: windows_sys::core::PCWSTR , loadbalancer : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
19::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnEnumerateNamespaces ( query : :: windows_sys::core::PCWSTR , namespaces : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
20::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnEnumerateNetworks ( query : :: windows_sys::core::PCWSTR , networks : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
21::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnFreeGuestNetworkPortReservations ( portentries : *mut HCN_PORT_RANGE_ENTRY ) -> ( ) );
22::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnModifyEndpoint ( endpoint : *const ::core::ffi::c_void , settings : :: windows_sys::core::PCWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
23::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnModifyGuestNetworkService ( guestnetworkservice : *const ::core::ffi::c_void , settings : :: windows_sys::core::PCWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
24::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnModifyLoadBalancer ( loadbalancer : *const ::core::ffi::c_void , settings : :: windows_sys::core::PCWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
25::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnModifyNamespace ( namespace : *const ::core::ffi::c_void , settings : :: windows_sys::core::PCWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
26::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnModifyNetwork ( network : *const ::core::ffi::c_void , settings : :: windows_sys::core::PCWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
27::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnOpenEndpoint ( id : *const :: windows_sys::core::GUID , endpoint : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
28::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnOpenLoadBalancer ( id : *const :: windows_sys::core::GUID , loadbalancer : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
29::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnOpenNamespace ( id : *const :: windows_sys::core::GUID , namespace : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
30::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnOpenNetwork ( id : *const :: windows_sys::core::GUID , network : *mut *mut ::core::ffi::c_void , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
31::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnQueryEndpointProperties ( endpoint : *const ::core::ffi::c_void , query : :: windows_sys::core::PCWSTR , properties : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
32::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnQueryLoadBalancerProperties ( loadbalancer : *const ::core::ffi::c_void , query : :: windows_sys::core::PCWSTR , properties : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
33::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnQueryNamespaceProperties ( namespace : *const ::core::ffi::c_void , query : :: windows_sys::core::PCWSTR , properties : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
34::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnQueryNetworkProperties ( network : *const ::core::ffi::c_void , query : :: windows_sys::core::PCWSTR , properties : *mut :: windows_sys::core::PWSTR , errorrecord : *mut :: windows_sys::core::PWSTR ) -> :: windows_sys::core::HRESULT );
35::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnRegisterGuestNetworkServiceCallback ( guestnetworkservice : *const ::core::ffi::c_void , callback : HCN_NOTIFICATION_CALLBACK , context : *const ::core::ffi::c_void , callbackhandle : *mut *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
36::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnRegisterServiceCallback ( callback : HCN_NOTIFICATION_CALLBACK , context : *const ::core::ffi::c_void , callbackhandle : *mut *mut ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
37#[cfg(feature = "Win32_Foundation")]
38::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`, `\"Win32_Foundation\"`*"] fn HcnReleaseGuestNetworkServicePortReservationHandle ( portreservationhandle : super::super::Foundation:: HANDLE ) -> :: windows_sys::core::HRESULT );
39#[cfg(feature = "Win32_Foundation")]
40::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`, `\"Win32_Foundation\"`*"] fn HcnReserveGuestNetworkServicePort ( guestnetworkservice : *const ::core::ffi::c_void , protocol : HCN_PORT_PROTOCOL , access : HCN_PORT_ACCESS , port : u16 , portreservationhandle : *mut super::super::Foundation:: HANDLE ) -> :: windows_sys::core::HRESULT );
41#[cfg(feature = "Win32_Foundation")]
42::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`, `\"Win32_Foundation\"`*"] fn HcnReserveGuestNetworkServicePortRange ( guestnetworkservice : *const ::core::ffi::c_void , portcount : u16 , portrangereservation : *mut HCN_PORT_RANGE_RESERVATION , portreservationhandle : *mut super::super::Foundation:: HANDLE ) -> :: windows_sys::core::HRESULT );
43::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnUnregisterGuestNetworkServiceCallback ( callbackhandle : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
44::windows_sys::core::link ! ( "computenetwork.dll""system" #[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"] fn HcnUnregisterServiceCallback ( callbackhandle : *const ::core::ffi::c_void ) -> :: windows_sys::core::HRESULT );
04454e1e 45#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 46pub type HCN_NOTIFICATIONS = i32;
04454e1e 47#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 48pub const HcnNotificationInvalid: HCN_NOTIFICATIONS = 0i32;
04454e1e 49#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 50pub const HcnNotificationNetworkPreCreate: HCN_NOTIFICATIONS = 1i32;
04454e1e 51#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 52pub const HcnNotificationNetworkCreate: HCN_NOTIFICATIONS = 2i32;
04454e1e 53#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 54pub const HcnNotificationNetworkPreDelete: HCN_NOTIFICATIONS = 3i32;
04454e1e 55#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 56pub const HcnNotificationNetworkDelete: HCN_NOTIFICATIONS = 4i32;
04454e1e 57#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 58pub const HcnNotificationNamespaceCreate: HCN_NOTIFICATIONS = 5i32;
04454e1e 59#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 60pub const HcnNotificationNamespaceDelete: HCN_NOTIFICATIONS = 6i32;
04454e1e 61#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 62pub const HcnNotificationGuestNetworkServiceCreate: HCN_NOTIFICATIONS = 7i32;
04454e1e 63#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 64pub const HcnNotificationGuestNetworkServiceDelete: HCN_NOTIFICATIONS = 8i32;
04454e1e 65#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 66pub const HcnNotificationNetworkEndpointAttached: HCN_NOTIFICATIONS = 9i32;
04454e1e 67#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 68pub const HcnNotificationNetworkEndpointDetached: HCN_NOTIFICATIONS = 16i32;
04454e1e 69#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 70pub const HcnNotificationGuestNetworkServiceStateChanged: HCN_NOTIFICATIONS = 17i32;
04454e1e 71#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 72pub const HcnNotificationGuestNetworkServiceInterfaceStateChanged: HCN_NOTIFICATIONS = 18i32;
04454e1e 73#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 74pub const HcnNotificationServiceDisconnect: HCN_NOTIFICATIONS = 16777216i32;
04454e1e 75#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 76pub const HcnNotificationFlagsReserved: HCN_NOTIFICATIONS = -268435456i32;
04454e1e 77#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 78pub type HCN_PORT_ACCESS = i32;
04454e1e 79#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 80pub const HCN_PORT_ACCESS_EXCLUSIVE: HCN_PORT_ACCESS = 1i32;
04454e1e 81#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 82pub const HCN_PORT_ACCESS_SHARED: HCN_PORT_ACCESS = 2i32;
04454e1e 83#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 84pub type HCN_PORT_PROTOCOL = i32;
04454e1e 85#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 86pub const HCN_PORT_PROTOCOL_TCP: HCN_PORT_PROTOCOL = 1i32;
04454e1e 87#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085 88pub const HCN_PORT_PROTOCOL_UDP: HCN_PORT_PROTOCOL = 2i32;
04454e1e 89#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085
FG
90pub const HCN_PORT_PROTOCOL_BOTH: HCN_PORT_PROTOCOL = 3i32;
91#[repr(C)]
04454e1e 92#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085
FG
93pub struct HCN_PORT_RANGE_ENTRY {
94 pub OwningPartitionId: ::windows_sys::core::GUID,
95 pub TargetPartitionId: ::windows_sys::core::GUID,
96 pub Protocol: HCN_PORT_PROTOCOL,
97 pub Priority: u64,
98 pub ReservationType: u32,
99 pub SharingFlags: u32,
100 pub DeliveryMode: u32,
101 pub StartingPort: u16,
102 pub EndingPort: u16,
103}
104impl ::core::marker::Copy for HCN_PORT_RANGE_ENTRY {}
105impl ::core::clone::Clone for HCN_PORT_RANGE_ENTRY {
106 fn clone(&self) -> Self {
107 *self
108 }
109}
110#[repr(C)]
04454e1e 111#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
5e7ed085
FG
112pub struct HCN_PORT_RANGE_RESERVATION {
113 pub startingPort: u16,
114 pub endingPort: u16,
115}
116impl ::core::marker::Copy for HCN_PORT_RANGE_RESERVATION {}
117impl ::core::clone::Clone for HCN_PORT_RANGE_RESERVATION {
118 fn clone(&self) -> Self {
119 *self
120 }
121}
487cf647 122#[doc = "*Required features: `\"Win32_System_HostComputeNetwork\"`*"]
9c376795 123pub type HCN_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(notificationtype: u32, context: *const ::core::ffi::c_void, notificationstatus: ::windows_sys::core::HRESULT, notificationdata: ::windows_sys::core::PCWSTR) -> ()>;