From d9e9492adfd5ab36f25012592fe7d2f78e88627f Mon Sep 17 00:00:00 2001 From: rohanhcumca Date: Mon, 6 Jan 2025 23:37:00 +0530 Subject: [PATCH 1/3] Implemented health api (#116) Implemented report_partition_health and report_replica_health api's. Internally calling ReportPartitionHealth and ReportReplicaHealth respectively. --------- Co-authored-by: Rohan Kumar --- crates/libs/core/src/runtime/stateful_proxy.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/libs/core/src/runtime/stateful_proxy.rs b/crates/libs/core/src/runtime/stateful_proxy.rs index 57dcb02c..8d28f410 100644 --- a/crates/libs/core/src/runtime/stateful_proxy.rs +++ b/crates/libs/core/src/runtime/stateful_proxy.rs @@ -20,7 +20,7 @@ use crate::{ strings::WStringWrap, sync::{fabric_begin_end_proxy2, CancellationToken}, types::{ - FaultType, LoadMetric, LoadMetricListRef, MoveCost, ReplicaRole, + FaultType, HealthInformation, LoadMetric, LoadMetricListRef, MoveCost, ReplicaRole, ServicePartitionAccessStatus, ServicePartitionInformation, }, }; @@ -380,16 +380,16 @@ impl StatefulServicePartition { /// by batching reports per a configured duration (Default: 30 seconds). If the report has high priority, /// you can specify send options to send it immediately. - /// TODO: not yet implemented /// Reports current partition health. - pub fn report_partition_health(&self) -> crate::Result<()> { - Err(FabricErrorCode::E_NOTIMPL.into()) + pub fn report_partition_health(&self, healthinfo: &HealthInformation) -> crate::Result<()> { + let healthinfo_ref = &healthinfo.into(); + unsafe { self.com_impl.ReportPartitionHealth(healthinfo_ref) } } - /// TODO: not yet implemented /// Reports health on the current stateful service replica of the partition. - pub fn report_replica_health(&self) -> crate::Result<()> { - Err(FabricErrorCode::E_NOTIMPL.into()) + pub fn report_replica_health(&self, healthinfo: &HealthInformation) -> crate::Result<()> { + let healthinfo_ref = &healthinfo.into(); + unsafe { self.com_impl.ReportReplicaHealth(healthinfo_ref) } } } From a8b1e241dcb1e891d9bf0fd83316171d9380d46d Mon Sep 17 00:00:00 2001 From: youyuanwu <48816116+youyuanwu@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:44:34 -0800 Subject: [PATCH 2/3] Reorganize com crate to prepare bindgen upgrade (#117) windows-bindgen 0.59 is released and supports crate generation mode. This PR changes the existing code to match the new crate layout to keep git history. This PR does not change any functionalities of mssf. --- CMakeLists.txt | 6 +++++- .../ServiceFabric/FabricClient/mod.rs} | 0 .../ServiceFabric/FabricCommon/mod.rs} | 0 .../ServiceFabric/FabricRuntime/mod.rs} | 0 .../ServiceFabric/FabricTypes/mod.rs} | 0 .../libs/com/src/{ => Microsoft}/ServiceFabric/mod.rs | 0 crates/libs/com/src/Microsoft/mod.rs | 1 + crates/libs/com/src/lib.rs | 4 ++-- crates/libs/core/src/error/errorcode.rs | 4 ++-- crates/tools/api/src/main.rs | 10 +++++----- 10 files changed, 15 insertions(+), 10 deletions(-) rename crates/libs/com/src/{ServiceFabric/FabricClient.rs => Microsoft/ServiceFabric/FabricClient/mod.rs} (100%) rename crates/libs/com/src/{ServiceFabric/FabricCommon.rs => Microsoft/ServiceFabric/FabricCommon/mod.rs} (100%) rename crates/libs/com/src/{ServiceFabric/FabricRuntime.rs => Microsoft/ServiceFabric/FabricRuntime/mod.rs} (100%) rename crates/libs/com/src/{ServiceFabric/FabricTypes.rs => Microsoft/ServiceFabric/FabricTypes/mod.rs} (100%) rename crates/libs/com/src/{ => Microsoft}/ServiceFabric/mod.rs (100%) create mode 100644 crates/libs/com/src/Microsoft/mod.rs diff --git a/CMakeLists.txt b/CMakeLists.txt index a82d8054..d0af626a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,11 @@ add_custom_target(run_rust_sample_client # clean generated code add_custom_target(force_clean - COMMAND ${CMAKE_COMMAND} -E rm -rf crates/libs/com/src/Microsoft + # temporary code to remove only generated code. Will be cleaned up when new bindgen is used. + COMMAND ${CMAKE_COMMAND} -E rm -rf crates/libs/com/src/Microsoft/ServiceFabric/FabricClient + COMMAND ${CMAKE_COMMAND} -E rm -rf crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon + COMMAND ${CMAKE_COMMAND} -E rm -rf crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime + COMMAND ${CMAKE_COMMAND} -E rm -rf crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/crates/libs/com/src/ServiceFabric/FabricClient.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs similarity index 100% rename from crates/libs/com/src/ServiceFabric/FabricClient.rs rename to crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs diff --git a/crates/libs/com/src/ServiceFabric/FabricCommon.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs similarity index 100% rename from crates/libs/com/src/ServiceFabric/FabricCommon.rs rename to crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs diff --git a/crates/libs/com/src/ServiceFabric/FabricRuntime.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs similarity index 100% rename from crates/libs/com/src/ServiceFabric/FabricRuntime.rs rename to crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs diff --git a/crates/libs/com/src/ServiceFabric/FabricTypes.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs similarity index 100% rename from crates/libs/com/src/ServiceFabric/FabricTypes.rs rename to crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs diff --git a/crates/libs/com/src/ServiceFabric/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/mod.rs similarity index 100% rename from crates/libs/com/src/ServiceFabric/mod.rs rename to crates/libs/com/src/Microsoft/ServiceFabric/mod.rs diff --git a/crates/libs/com/src/Microsoft/mod.rs b/crates/libs/com/src/Microsoft/mod.rs new file mode 100644 index 00000000..59abc16c --- /dev/null +++ b/crates/libs/com/src/Microsoft/mod.rs @@ -0,0 +1 @@ +pub mod ServiceFabric; diff --git a/crates/libs/com/src/lib.rs b/crates/libs/com/src/lib.rs index baa07419..5d411b66 100644 --- a/crates/libs/com/src/lib.rs +++ b/crates/libs/com/src/lib.rs @@ -6,10 +6,10 @@ #![doc(html_no_source)] // extern crate windows; #![allow(non_snake_case)] -pub mod ServiceFabric; +pub mod Microsoft; // expose mod directly -pub use ServiceFabric::*; +pub use Microsoft::ServiceFabric::*; // Special usage for mssf_pal. // See mssf_pal documentations for why this is used this way. diff --git a/crates/libs/core/src/error/errorcode.rs b/crates/libs/core/src/error/errorcode.rs index 3b741619..0cad8019 100644 --- a/crates/libs/core/src/error/errorcode.rs +++ b/crates/libs/core/src/error/errorcode.rs @@ -57,7 +57,7 @@ macro_rules! define_fabric_error_code{ // defines SF error codes. $( - $code = mssf_com::ServiceFabric::FabricTypes::$code .0, + $code = mssf_com::FabricTypes::$code .0, )* } @@ -71,7 +71,7 @@ macro_rules! define_fabric_error_code{ )* // SF code converts. $( - mssf_com::ServiceFabric::FabricTypes::$code => Ok(Self::$code), + mssf_com::FabricTypes::$code => Ok(Self::$code), )* _ => Err("Unknown FABRIC_ERROR_CODE") } diff --git a/crates/tools/api/src/main.rs b/crates/tools/api/src/main.rs index 1c8ab845..83fb8d37 100644 --- a/crates/tools/api/src/main.rs +++ b/crates/tools/api/src/main.rs @@ -12,10 +12,10 @@ use windows_bindgen::{bindgen, Result}; fn main() -> Result<()> { let winmd = "./build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd"; // create output dir if not exist - fs::create_dir_all("crates/libs/com/src/ServiceFabric/").unwrap(); + fs::create_dir_all("crates/libs/com/src/Microsoft/ServiceFabric/").unwrap(); // Generate FabricTypes { - let out_file = "crates/libs/com/src/ServiceFabric/FabricTypes.rs"; + let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs"; let log = bindgen([ "--in", winmd, @@ -35,7 +35,7 @@ fn main() -> Result<()> { } // Generate FabricCommon { - let out_file = "crates/libs/com/src/ServiceFabric/FabricCommon.rs"; + let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs"; let log = bindgen([ "--in", winmd, @@ -62,7 +62,7 @@ fn main() -> Result<()> { } // Generate FabricRuntime { - let out_file = "crates/libs/com/src/ServiceFabric/FabricRuntime.rs"; + let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs"; let log = bindgen([ "--in", winmd, @@ -103,7 +103,7 @@ fn main() -> Result<()> { // Generate FabricClient { - let out_file = "crates/libs/com/src/ServiceFabric/FabricClient.rs"; + let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs"; let log = bindgen([ "--in", winmd, From 991886c02cf6e51690974bf64e553015979da002 Mon Sep 17 00:00:00 2001 From: youyuanwu <48816116+youyuanwu@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:00:01 -0800 Subject: [PATCH 3/3] Upgrade windows deps to 0.59 (#118) Regenerated code using windows-bindgen=0.59. BOOLEAN type is removed by windows-bindgen, and there is no bool conversion anymore. Removed BOOLEAN type from mssf-pal. Code gen uses the windows-bindgen --package mode, where no hacks are needed to manipulate namespaces anymore. --- Cargo.lock | 166 +- Cargo.toml | 5 +- crates/libs/com/Cargo.toml | 9 +- .../ServiceFabric/FabricClient/mod.rs | 48641 +++++++++------- .../ServiceFabric/FabricCommon/mod.rs | 495 +- .../ServiceFabric/FabricRuntime/mod.rs | 19906 ++++--- .../ServiceFabric/FabricTypes/mod.rs | 8627 +-- .../com/src/Microsoft/ServiceFabric/mod.rs | 9 +- crates/libs/com/src/Microsoft/mod.rs | 3 + crates/libs/com/src/lib.rs | 10 +- crates/libs/core/Cargo.toml | 5 +- crates/libs/core/src/client/connection.rs | 4 +- crates/libs/core/src/client/notification.rs | 2 +- crates/libs/core/src/lib.rs | 2 - crates/libs/core/src/runtime/config.rs | 11 +- .../core/src/runtime/package_change/config.rs | 16 +- .../libs/core/src/runtime/stateful_bridge.rs | 74 +- .../libs/core/src/runtime/stateless_bridge.rs | 10 +- crates/libs/core/src/sync/bridge_context.rs | 16 +- crates/libs/core/src/sync/cancel.rs | 30 +- crates/libs/core/src/sync/mod.rs | 13 +- crates/libs/core/src/sync/wait.rs | 10 +- crates/libs/core/src/types/client/node.rs | 2 +- crates/libs/core/src/types/runtime/health.rs | 8 +- .../libs/core/src/types/runtime/stateful.rs | 6 +- crates/libs/core/src/types/runtime/store.rs | 2 +- crates/libs/pal/Cargo.toml | 2 +- crates/libs/pal/src/Win32.rs | 25 +- crates/libs/pal/src/lib.rs | 8 +- crates/samples/echomain-stateful/src/app.rs | 78 +- crates/tools/api/Cargo.toml | 2 +- crates/tools/api/src/main.rs | 130 +- 32 files changed, 40289 insertions(+), 38038 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9cc8dc18..cff47fac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,7 +35,7 @@ dependencies = [ "miniz_oxide", "object", "rustc-demangle", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -138,12 +138,6 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - [[package]] name = "kvstore" version = "0.1.0" @@ -175,7 +169,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -325,7 +319,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -386,9 +380,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ "bitflags", ] @@ -399,12 +393,6 @@ version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - [[package]] name = "samples_client" version = "0.0.1" @@ -477,18 +465,6 @@ dependencies = [ "syn", ] -[[package]] -name = "serde_json" -version = "1.0.127" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - [[package]] name = "sharded-slab" version = "0.1.7" @@ -661,46 +637,41 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "windows" -version = "0.58.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +checksum = "7f919aee0a93304be7f62e8e5027811bbba96bcb1de84d6618be56e43f8a32a1" dependencies = [ "windows-core", - "windows-targets", + "windows-targets 0.53.0", ] [[package]] name = "windows-bindgen" -version = "0.58.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cd28d93c692351f3a6e5615567c56756e330bee1c99c6bdd57bfc5ab15f589" +checksum = "9b7fb600834d7e868f6e5bb748a86101427330fafbf9485c331b9d5f562d54a5" dependencies = [ - "proc-macro2", "rayon", - "serde", - "serde_json", - "syn", - "windows-metadata", ] [[package]] name = "windows-core" -version = "0.58.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +checksum = "810ce18ed2112484b0d4e15d022e5f598113e220c53e373fb31e67e21670c1ce" dependencies = [ "windows-implement", "windows-interface", "windows-result", "windows-strings", - "windows-targets", + "windows-targets 0.53.0", ] [[package]] name = "windows-implement" -version = "0.58.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +checksum = "83577b051e2f49a058c308f17f273b570a6a758386fc291b5f6a934dd84e48c1" dependencies = [ "proc-macro2", "quote", @@ -709,38 +680,31 @@ dependencies = [ [[package]] name = "windows-interface" -version = "0.58.0" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +checksum = "cb26fd936d991781ea39e87c3a27285081e3c0da5ca0fcbc02d368cc6f52ff01" dependencies = [ "proc-macro2", "quote", "syn", ] -[[package]] -name = "windows-metadata" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e837f3c3012cfe9e7086302a93f441a7999439be1ad4c530d55d2f6d2921809" - [[package]] name = "windows-result" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +checksum = "d08106ce80268c4067c0571ca55a9b4e9516518eaa1a1fe9b37ca403ae1d1a34" dependencies = [ - "windows-targets", + "windows-targets 0.53.0", ] [[package]] name = "windows-strings" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +checksum = "b888f919960b42ea4e11c2f408fadb55f78a9f236d5eef084103c8ce52893491" dependencies = [ - "windows-result", - "windows-targets", + "windows-targets 0.53.0", ] [[package]] @@ -749,7 +713,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -758,7 +722,7 @@ version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -767,14 +731,30 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" +dependencies = [ + "windows_aarch64_gnullvm 0.53.0", + "windows_aarch64_msvc 0.53.0", + "windows_i686_gnu 0.53.0", + "windows_i686_gnullvm 0.53.0", + "windows_i686_msvc 0.53.0", + "windows_x86_64_gnu 0.53.0", + "windows_x86_64_gnullvm 0.53.0", + "windows_x86_64_msvc 0.53.0", ] [[package]] @@ -783,44 +763,92 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" + [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" + [[package]] name = "windows_i686_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" +[[package]] +name = "windows_i686_gnu" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" + [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" + [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" +[[package]] +name = "windows_i686_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" + [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" + [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" + [[package]] name = "windows_x86_64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" diff --git a/Cargo.toml b/Cargo.toml index c255bc50..4d0f2896 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,9 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [" tokio-util = "0.7" ctrlc = { version = "3.0", features = ["termination"] } tokio = { version = "1", features = ["full"] } -windows = {version = "0.58", features = ["implement"]} -windows-core = "0.58" +windows = {version = "0.59", features = ["implement"]} +windows-core = "0.59" +windows-bindgen = "0.59" trait-variant = "0.1" serde = "*" serde_derive = "*" diff --git a/crates/libs/com/Cargo.toml b/crates/libs/com/Cargo.toml index c504fa03..e5eb6aac 100644 --- a/crates/libs/com/Cargo.toml +++ b/crates/libs/com/Cargo.toml @@ -25,4 +25,11 @@ version = "0.0.17" [features] default = ["bundled_libs"] -bundled_libs = [] \ No newline at end of file +bundled_libs = [] +Foundation = [] +# generated features +ServiceFabric = ["Foundation"] +ServiceFabric_FabricClient = ["ServiceFabric"] +ServiceFabric_FabricCommon = ["ServiceFabric"] +ServiceFabric_FabricRuntime = ["ServiceFabric"] +ServiceFabric_FabricTypes = ["ServiceFabric"] diff --git a/crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs index 378de98f..ce693a1e 100644 --- a/crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs +++ b/crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs @@ -1,164 +1,215 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 -#![allow( - non_snake_case, - non_upper_case_globals, - non_camel_case_types, - dead_code, - clippy::all -)] +pub const FabricClient: windows_core::GUID = + windows_core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); windows_core::imp::define_interface!( IFabricApplicationHealthResult, IFabricApplicationHealthResult_Vtbl, 0x41612fab_e615_4a48_98e7_4abcc93b6049 ); -impl core::ops::Deref for IFabricApplicationHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricApplicationHealthResult, windows_core::IUnknown); impl IFabricApplicationHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn get_ApplicationHealth( &self, ) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH { - (windows_core::Interface::vtable(self).get_ApplicationHealth)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationHealth)( + windows_core::Interface::as_raw(self), + ) + } } } -unsafe impl Send for IFabricApplicationHealthResult {} -unsafe impl Sync for IFabricApplicationHealthResult {} #[repr(C)] pub struct IFabricApplicationHealthResult_Vtbl { pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] pub get_ApplicationHealth: unsafe extern "system" fn( *mut core::ffi::c_void, ) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricApplicationHealthResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationHealth(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricApplicationHealthResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ApplicationHealth< + Identity: IFabricApplicationHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationHealthResult_Impl::get_ApplicationHealth(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationHealth: get_ApplicationHealth::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } } +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricApplicationHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricApplicationHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricApplicationHealthResult {} windows_core::imp::define_interface!( IFabricApplicationManagementClient, IFabricApplicationManagementClient_Vtbl, 0x7c219ae9_e58d_431f_8b30_92a40281faac ); -impl core::ops::Deref for IFabricApplicationManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricApplicationManagementClient, windows_core::IUnknown); impl IFabricApplicationManagementClient { - pub unsafe fn BeginProvisionApplicationType( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, - callback: P1, + callback: P2, ) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginProvisionApplicationType)( - windows_core::Interface::as_raw(self), - applicationbuildpath.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginProvisionApplicationType)( + windows_core::Interface::as_raw(self), + applicationbuildpath.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndProvisionApplicationType)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndProvisionApplicationType)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginCreateApplication( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateApplication( &self, description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateApplication)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateApplication)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndCreateApplication(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateApplication)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndCreateApplication)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginUpgradeApplication( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpgradeApplication)( - windows_core::Interface::as_raw(self), - upgradedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpgradeApplication)( + windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndUpgradeApplication(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUpgradeApplication)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndUpgradeApplication)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginGetApplicationUpgradeProgress( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, - applicationname: P0, + applicationname: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: P1, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, - P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationUpgradeProgress)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationUpgradeProgress)( + windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, @@ -166,34 +217,40 @@ impl IFabricApplicationManagementClient { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationUpgradeProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationUpgradeProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, - callback: P1, + callback: P2, ) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain)( - windows_core::Interface::as_raw(self), - progress.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain)( + windows_core::Interface::as_raw(self), + progress.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, @@ -201,81 +258,96 @@ impl IFabricApplicationManagementClient { where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginDeleteApplication( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteApplication( &self, - applicationname: P0, + applicationname: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: P1, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, - P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteApplication)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteApplication)( + windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndDeleteApplication(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndDeleteApplication)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndDeleteApplication)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginUnprovisionApplicationType( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, - callback: P2, + callback: P3, ) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, - P2: windows_core::Param, + P3: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUnprovisionApplicationType)( - windows_core::Interface::as_raw(self), - applicationtypename.param().abi(), - applicationtypeversion.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUnprovisionApplicationType)( + windows_core::Interface::as_raw(self), + applicationtypename.param().abi(), + applicationtypeversion.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndUnprovisionApplicationType(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnprovisionApplicationType)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndUnprovisionApplicationType)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationManagementClient {} -unsafe impl Sync for IFabricApplicationManagementClient {} #[repr(C)] pub struct IFabricApplicationManagementClient_Vtbl { pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginProvisionApplicationType: unsafe extern "system" fn( *mut core::ffi::c_void, windows_core::PCWSTR, @@ -283,10 +355,19 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginProvisionApplicationType: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndProvisionApplicationType: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndProvisionApplicationType: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] pub BeginCreateApplication: unsafe extern "system" fn( *mut core::ffi::c_void, *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, @@ -294,10 +375,22 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateApplication: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndCreateApplication: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateApplication: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] pub BeginUpgradeApplication: unsafe extern "system" fn( *mut core::ffi::c_void, *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, @@ -305,10 +398,22 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpgradeApplication: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndUpgradeApplication: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpgradeApplication: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] pub BeginGetApplicationUpgradeProgress: unsafe extern "system" fn( *mut core::ffi::c_void, super::FabricTypes::FABRIC_URI, @@ -316,11 +421,20 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationUpgradeProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndGetApplicationUpgradeProgress: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationUpgradeProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginMoveNextApplicationUpgradeDomain: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, @@ -329,11 +443,20 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginMoveNextApplicationUpgradeDomain: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndMoveNextApplicationUpgradeDomain: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMoveNextApplicationUpgradeDomain: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] pub BeginDeleteApplication: unsafe extern "system" fn( *mut core::ffi::c_void, super::FabricTypes::FABRIC_URI, @@ -341,10 +464,19 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteApplication: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndDeleteApplication: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteApplication: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginUnprovisionApplicationType: unsafe extern "system" fn( *mut core::ffi::c_void, windows_core::PCWSTR, @@ -353,2731 +485,4059 @@ pub struct IFabricApplicationManagementClient_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginUnprovisionApplicationType: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndUnprovisionApplicationType: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUnprovisionApplicationType: usize, } -windows_core::imp::define_interface!( - IFabricApplicationManagementClient10, - IFabricApplicationManagementClient10_Vtbl, - 0x67001225_d106_41ae_8bd4_5a0a119c5c01 -); -impl core::ops::Deref for IFabricApplicationManagementClient10 { - type Target = IFabricApplicationManagementClient9; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient10, - windows_core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7, - IFabricApplicationManagementClient8, - IFabricApplicationManagementClient9 -); -impl IFabricApplicationManagementClient10 { - pub unsafe fn BeginProvisionApplicationType3( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient_Impl: windows_core::IUnknownImpl { + fn BeginProvisionApplicationType( &self, - description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + applicationbuildpath: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginProvisionApplicationType3)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndProvisionApplicationType3(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndProvisionApplicationType3)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricApplicationManagementClient10 {} -unsafe impl Sync for IFabricApplicationManagementClient10 {} -#[repr(C)] -pub struct IFabricApplicationManagementClient10_Vtbl { - pub base__: IFabricApplicationManagementClient9_Vtbl, - pub BeginProvisionApplicationType3: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndProvisionApplicationType3: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient2_Vtbl, - 0xf873516f_9bfe_47e5_93b9_3667aaf19324 -); -impl core::ops::Deref for IFabricApplicationManagementClient2 { - type Target = IFabricApplicationManagementClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient2, - windows_core::IUnknown, - IFabricApplicationManagementClient -); -impl IFabricApplicationManagementClient2 { - pub unsafe fn BeginGetApplicationManifest( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndProvisionApplicationType( &self, - applicationtypename: P0, - applicationtypeversion: P1, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginCreateApplication( + &self, + description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationManifest)( - windows_core::Interface::as_raw(self), - applicationtypename.param().abi(), - applicationtypeversion.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationManifest( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndCreateApplication( &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationManifest)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginUpgradeApplication( &self, - applicationname: P0, - nextupgradedomain: P1, + upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain2)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - nextupgradedomain.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUpgradeApplication( &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricApplicationManagementClient2 {} -unsafe impl Sync for IFabricApplicationManagementClient2 {} -#[repr(C)] -pub struct IFabricApplicationManagementClient2_Vtbl { - pub base__: IFabricApplicationManagementClient_Vtbl, - pub BeginGetApplicationManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetApplicationUpgradeProgress( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: windows_core::Ref<'_, IFabricApplicationUpgradeProgressResult2>, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMoveNextApplicationUpgradeDomain( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginDeleteApplication( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndDeleteApplication( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginUnprovisionApplicationType( + &self, + applicationtypename: &windows_core::PCWSTR, + applicationtypeversion: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUnprovisionApplicationType( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginProvisionApplicationType< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationbuildpath: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginProvisionApplicationType( + this, + core::mem::transmute(&applicationbuildpath), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndProvisionApplicationType< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndProvisionApplicationType( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginCreateApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginCreateApplication( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndCreateApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndCreateApplication( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginUpgradeApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginUpgradeApplication( + this, + core::mem::transmute_copy(&upgradedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpgradeApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndUpgradeApplication( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginGetApplicationUpgradeProgress< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginGetApplicationUpgradeProgress( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetApplicationUpgradeProgress< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::EndGetApplicationUpgradeProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + progress: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginMoveNextApplicationUpgradeDomain( + this, + core::mem::transmute_copy(&progress), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndMoveNextApplicationUpgradeDomain( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginDeleteApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginDeleteApplication( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndDeleteApplication< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndDeleteApplication( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginUnprovisionApplicationType< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationtypename: windows_core::PCWSTR, + applicationtypeversion: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient_Impl::BeginUnprovisionApplicationType( + this, + core::mem::transmute(&applicationtypename), + core::mem::transmute(&applicationtypeversion), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUnprovisionApplicationType< + Identity: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient_Impl::EndUnprovisionApplicationType( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginProvisionApplicationType: BeginProvisionApplicationType::, + EndProvisionApplicationType: EndProvisionApplicationType::, + BeginCreateApplication: BeginCreateApplication::, + EndCreateApplication: EndCreateApplication::, + BeginUpgradeApplication: BeginUpgradeApplication::, + EndUpgradeApplication: EndUpgradeApplication::, + BeginGetApplicationUpgradeProgress: BeginGetApplicationUpgradeProgress::< + Identity, + OFFSET, + >, + EndGetApplicationUpgradeProgress: EndGetApplicationUpgradeProgress::, + BeginMoveNextApplicationUpgradeDomain: BeginMoveNextApplicationUpgradeDomain::< + Identity, + OFFSET, + >, + EndMoveNextApplicationUpgradeDomain: EndMoveNextApplicationUpgradeDomain::< + Identity, + OFFSET, + >, + BeginDeleteApplication: BeginDeleteApplication::, + EndDeleteApplication: EndDeleteApplication::, + BeginUnprovisionApplicationType: BeginUnprovisionApplicationType::, + EndUnprovisionApplicationType: EndUnprovisionApplicationType::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient {} windows_core::imp::define_interface!( - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient3_Vtbl, - 0x108c7735_97e1_4af8_8c2d_9080b1b29d33 + IFabricApplicationManagementClient10, + IFabricApplicationManagementClient10_Vtbl, + 0x67001225_d106_41ae_8bd4_5a0a119c5c01 ); -impl core::ops::Deref for IFabricApplicationManagementClient3 { - type Target = IFabricApplicationManagementClient2; +impl core::ops::Deref for IFabricApplicationManagementClient10 { + type Target = IFabricApplicationManagementClient9; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient3, + IFabricApplicationManagementClient10, windows_core::IUnknown, IFabricApplicationManagementClient, - IFabricApplicationManagementClient2 + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7, + IFabricApplicationManagementClient8, + IFabricApplicationManagementClient9 ); -impl IFabricApplicationManagementClient3 { - pub unsafe fn BeginUpdateApplicationUpgrade( +impl IFabricApplicationManagementClient10 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginProvisionApplicationType3( &self, - description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateApplicationUpgrade)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginProvisionApplicationType3)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndProvisionApplicationType3(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUpdateApplicationUpgrade)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage( - &self, - restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( - windows_core::Interface::as_raw(self), - restartcodepackagedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRestartDeployedCodePackage(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - (windows_core::Interface::vtable(self).CopyApplicationPackage)( - windows_core::Interface::as_raw(self), - imagestoreconnectionstring.param().abi(), - applicationpackagepath.param().abi(), - applicationpackagepathinimagestore.param().abi(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).RemoveApplicationPackage)( - windows_core::Interface::as_raw(self), - imagestoreconnectionstring.param().abi(), - applicationpackagepathinimagestore.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndProvisionApplicationType3)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationManagementClient3 {} -unsafe impl Sync for IFabricApplicationManagementClient3 {} #[repr(C)] -pub struct IFabricApplicationManagementClient3_Vtbl { - pub base__: IFabricApplicationManagementClient2_Vtbl, - pub BeginUpdateApplicationUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateApplicationUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient10_Vtbl { + pub base__: IFabricApplicationManagementClient9_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginProvisionApplicationType3: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndRestartDeployedCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub CopyApplicationPackage: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginProvisionApplicationType3: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndProvisionApplicationType3: unsafe extern "system" fn( *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub RemoveApplicationPackage: unsafe extern "system" fn( *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndProvisionApplicationType3: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient10_Impl: + IFabricApplicationManagementClient9_Impl +{ + fn BeginProvisionApplicationType3( + &self, + description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndProvisionApplicationType3( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient10_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginProvisionApplicationType3< + Identity: IFabricApplicationManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description : *const super::FabricTypes:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient10_Impl::BeginProvisionApplicationType3( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndProvisionApplicationType3< + Identity: IFabricApplicationManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient10_Impl::EndProvisionApplicationType3( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient9_Vtbl::new::(), + BeginProvisionApplicationType3: BeginProvisionApplicationType3::, + EndProvisionApplicationType3: EndProvisionApplicationType3::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient10 {} windows_core::imp::define_interface!( - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient4_Vtbl, - 0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446 + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient2_Vtbl, + 0xf873516f_9bfe_47e5_93b9_3667aaf19324 ); -impl core::ops::Deref for IFabricApplicationManagementClient4 { - type Target = IFabricApplicationManagementClient3; +impl core::ops::Deref for IFabricApplicationManagementClient2 { + type Target = IFabricApplicationManagementClient; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient4, - windows_core::IUnknown, - IFabricApplicationManagementClient, IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3 + windows_core::IUnknown, + IFabricApplicationManagementClient ); -impl IFabricApplicationManagementClient4 { - pub unsafe fn BeginDeployServicePackageToNode( +impl IFabricApplicationManagementClient2 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, timeoutmilliseconds: u32, - callback: P4, + callback: P3, ) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - P4: windows_core::Param, + P3: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeployServicePackageToNode)( - windows_core::Interface::as_raw(self), - applicationtypename.param().abi(), - applicationtypeversion.param().abi(), - servicemanifestname.param().abi(), - sharingpolicy, - nodename.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationManifest)( + windows_core::Interface::as_raw(self), + applicationtypename.param().abi(), + applicationtypeversion.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndDeployServicePackageToNode(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> windows_core::Result where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndDeployServicePackageToNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricApplicationManagementClient4 {} -unsafe impl Sync for IFabricApplicationManagementClient4 {} -#[repr(C)] -pub struct IFabricApplicationManagementClient4_Vtbl { - pub base__: IFabricApplicationManagementClient3_Vtbl, - pub BeginDeployServicePackageToNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeployServicePackageToNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient5_Vtbl, - 0xd7490e43_2217_4158_93e1_9ce4dd6f724a -); -impl core::ops::Deref for IFabricApplicationManagementClient5 { - type Target = IFabricApplicationManagementClient4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationManifest)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient5, - windows_core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4 -); -impl IFabricApplicationManagementClient5 { - pub unsafe fn BeginRollbackApplicationUpgrade( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, - applicationname: P0, + applicationname: super::FabricTypes::FABRIC_URI, + nextupgradedomain: P1, timeoutmilliseconds: u32, - callback: P1, + callback: P3, ) -> windows_core::Result where - P0: windows_core::Param, - P1: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRollbackApplicationUpgrade)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain2)( + windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRollbackApplicationUpgrade(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRollbackApplicationUpgrade)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationManagementClient5 {} -unsafe impl Sync for IFabricApplicationManagementClient5 {} #[repr(C)] -pub struct IFabricApplicationManagementClient5_Vtbl { - pub base__: IFabricApplicationManagementClient4_Vtbl, - pub BeginRollbackApplicationUpgrade: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient2_Vtbl { + pub base__: IFabricApplicationManagementClient_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetApplicationManifest: unsafe extern "system" fn( *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndRollbackApplicationUpgrade: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetApplicationManifest: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationManifest: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationManifest: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginMoveNextApplicationUpgradeDomain2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMoveNextApplicationUpgradeDomain2: usize, } -windows_core::imp::define_interface!( - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient6_Vtbl, - 0xb01e63ee_1ea4_4181_95c7_983b32e16848 +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient2_Impl: + IFabricApplicationManagementClient_Impl +{ + fn BeginGetApplicationManifest( + &self, + applicationtypename: &windows_core::PCWSTR, + applicationtypeversion: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetApplicationManifest( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + nextupgradedomain: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient2_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginGetApplicationManifest< + Identity: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationtypename: windows_core::PCWSTR, + applicationtypeversion: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient2_Impl::BeginGetApplicationManifest( + this, + core::mem::transmute(&applicationtypename), + core::mem::transmute(&applicationtypeversion), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetApplicationManifest< + Identity: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient2_Impl::EndGetApplicationManifest( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2< + Identity: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationname: super::FabricTypes::FABRIC_URI, + nextupgradedomain: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient2_Impl:: BeginMoveNextApplicationUpgradeDomain2 ( this , core::mem::transmute_copy ( & applicationname ) , core::mem::transmute ( & nextupgradedomain ) , core::mem::transmute_copy ( & timeoutmilliseconds ) , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { context . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + } + } + unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2< + Identity: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient2_Impl::EndMoveNextApplicationUpgradeDomain2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient_Vtbl::new::(), + BeginGetApplicationManifest: BeginGetApplicationManifest::, + EndGetApplicationManifest: EndGetApplicationManifest::, + BeginMoveNextApplicationUpgradeDomain2: BeginMoveNextApplicationUpgradeDomain2::< + Identity, + OFFSET, + >, + EndMoveNextApplicationUpgradeDomain2: EndMoveNextApplicationUpgradeDomain2::< + Identity, + OFFSET, + >, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient2 {} +windows_core::imp::define_interface!( + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient3_Vtbl, + 0x108c7735_97e1_4af8_8c2d_9080b1b29d33 ); -impl core::ops::Deref for IFabricApplicationManagementClient6 { - type Target = IFabricApplicationManagementClient5; +impl core::ops::Deref for IFabricApplicationManagementClient3 { + type Target = IFabricApplicationManagementClient2; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient6, + IFabricApplicationManagementClient3, windows_core::IUnknown, IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5 + IFabricApplicationManagementClient2 ); -impl IFabricApplicationManagementClient6 { - pub unsafe fn BeginUpdateApplication( +impl IFabricApplicationManagementClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateApplicationUpgrade( &self, - applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateApplication)( - windows_core::Interface::as_raw(self), - applicationupdatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateApplicationUpgrade)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndUpdateApplication(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUpdateApplication)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricApplicationManagementClient6 {} -unsafe impl Sync for IFabricApplicationManagementClient6 {} -#[repr(C)] -pub struct IFabricApplicationManagementClient6_Vtbl { - pub base__: IFabricApplicationManagementClient5_Vtbl, - pub BeginUpdateApplication: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateApplication: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricApplicationManagementClient7, - IFabricApplicationManagementClient7_Vtbl, - 0x26844276_25b1_4f8c_adbe_b1b3a3083c17 -); -impl core::ops::Deref for IFabricApplicationManagementClient7 { - type Target = IFabricApplicationManagementClient6; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + (windows_core::Interface::vtable(self).EndUpdateApplicationUpgrade)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient7, - windows_core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6 -); -impl IFabricApplicationManagementClient7 { - pub unsafe fn BeginDeleteApplication2( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestartDeployedCodePackage( &self, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, + restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteApplication2)( - windows_core::Interface::as_raw(self), - deletedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndDeleteApplication2(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestartDeployedCodePackage(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndDeleteApplication2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricApplicationManagementClient7 {} -unsafe impl Sync for IFabricApplicationManagementClient7 {} -#[repr(C)] -pub struct IFabricApplicationManagementClient7_Vtbl { - pub base__: IFabricApplicationManagementClient6_Vtbl, - pub BeginDeleteApplication2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteApplication2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricApplicationManagementClient8, - IFabricApplicationManagementClient8_Vtbl, - 0x97b38e85_7329_47ff_a8d2_b7cbf1603689 -); -impl core::ops::Deref for IFabricApplicationManagementClient8 { - type Target = IFabricApplicationManagementClient7; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + (windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient8, - windows_core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7 -); -impl IFabricApplicationManagementClient8 { - pub unsafe fn BeginProvisionApplicationType2( + pub unsafe fn CopyApplicationPackage( &self, - description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginProvisionApplicationType2)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).CopyApplicationPackage)( + windows_core::Interface::as_raw(self), + imagestoreconnectionstring.param().abi(), + applicationpackagepath.param().abi(), + applicationpackagepathinimagestore.param().abi(), + ) + .ok() + } } - pub unsafe fn EndProvisionApplicationType2(&self, context: P0) -> windows_core::Result<()> + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, + P1: windows_core::Param, { - (windows_core::Interface::vtable(self).EndProvisionApplicationType2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).RemoveApplicationPackage)( + windows_core::Interface::as_raw(self), + imagestoreconnectionstring.param().abi(), + applicationpackagepathinimagestore.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationManagementClient8 {} -unsafe impl Sync for IFabricApplicationManagementClient8 {} #[repr(C)] -pub struct IFabricApplicationManagementClient8_Vtbl { - pub base__: IFabricApplicationManagementClient7_Vtbl, - pub BeginProvisionApplicationType2: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient3_Vtbl { + pub base__: IFabricApplicationManagementClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateApplicationUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndProvisionApplicationType2: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateApplicationUpgrade: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateApplicationUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricApplicationManagementClient9, - IFabricApplicationManagementClient9_Vtbl, - 0x26617b63_1350_4d7f_830c_2200978d31bb + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateApplicationUpgrade: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestartDeployedCodePackage: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestartDeployedCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestartDeployedCodePackage: usize, + pub CopyApplicationPackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, + pub RemoveApplicationPackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient3_Impl: + IFabricApplicationManagementClient2_Impl +{ + fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUpdateApplicationUpgrade( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRestartDeployedCodePackage( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: &windows_core::PCWSTR, + applicationpackagepath: &windows_core::PCWSTR, + applicationpackagepathinimagestore: &windows_core::PCWSTR, + ) -> windows_core::Result<()>; + fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: &windows_core::PCWSTR, + applicationpackagepathinimagestore: &windows_core::PCWSTR, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient3_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginUpdateApplicationUpgrade< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient3_Impl::BeginUpdateApplicationUpgrade( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpdateApplicationUpgrade< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient3_Impl::EndUpdateApplicationUpgrade( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginRestartDeployedCodePackage< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient3_Impl::BeginRestartDeployedCodePackage( + this, + core::mem::transmute_copy(&restartcodepackagedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRestartDeployedCodePackage< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient3_Impl::EndRestartDeployedCodePackage( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn CopyApplicationPackage< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + imagestoreconnectionstring: windows_core::PCWSTR, + applicationpackagepath: windows_core::PCWSTR, + applicationpackagepathinimagestore: windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient3_Impl::CopyApplicationPackage( + this, + core::mem::transmute(&imagestoreconnectionstring), + core::mem::transmute(&applicationpackagepath), + core::mem::transmute(&applicationpackagepathinimagestore), + ) + .into() + } + } + unsafe extern "system" fn RemoveApplicationPackage< + Identity: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + imagestoreconnectionstring: windows_core::PCWSTR, + applicationpackagepathinimagestore: windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient3_Impl::RemoveApplicationPackage( + this, + core::mem::transmute(&imagestoreconnectionstring), + core::mem::transmute(&applicationpackagepathinimagestore), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient2_Vtbl::new::(), + BeginUpdateApplicationUpgrade: BeginUpdateApplicationUpgrade::, + EndUpdateApplicationUpgrade: EndUpdateApplicationUpgrade::, + BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::, + EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, + CopyApplicationPackage: CopyApplicationPackage::, + RemoveApplicationPackage: RemoveApplicationPackage::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient3 {} +windows_core::imp::define_interface!( + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient4_Vtbl, + 0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446 ); -impl core::ops::Deref for IFabricApplicationManagementClient9 { - type Target = IFabricApplicationManagementClient8; +impl core::ops::Deref for IFabricApplicationManagementClient4 { + type Target = IFabricApplicationManagementClient3; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationManagementClient9, + IFabricApplicationManagementClient4, windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7, - IFabricApplicationManagementClient8 + IFabricApplicationManagementClient3 ); -impl IFabricApplicationManagementClient9 { - pub unsafe fn BeginUnprovisionApplicationType2( +impl IFabricApplicationManagementClient4 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeployServicePackageToNode( &self, - description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P4, timeoutmilliseconds: u32, - callback: P0, + callback: P6, ) -> windows_core::Result where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUnprovisionApplicationType2)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P4: windows_core::Param, + P6: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeployServicePackageToNode)( + windows_core::Interface::as_raw(self), + applicationtypename.param().abi(), + applicationtypeversion.param().abi(), + servicemanifestname.param().abi(), + sharingpolicy, + nodename.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndUnprovisionApplicationType2(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeployServicePackageToNode(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnprovisionApplicationType2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndDeployServicePackageToNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationManagementClient9 {} -unsafe impl Sync for IFabricApplicationManagementClient9 {} #[repr(C)] -pub struct IFabricApplicationManagementClient9_Vtbl { - pub base__: IFabricApplicationManagementClient8_Vtbl, - pub BeginUnprovisionApplicationType2: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient4_Vtbl { + pub base__: IFabricApplicationManagementClient3_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeployServicePackageToNode: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndUnprovisionApplicationType2: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeployServicePackageToNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeployServicePackageToNode: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeployServicePackageToNode: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient4_Impl: + IFabricApplicationManagementClient3_Impl +{ + fn BeginDeployServicePackageToNode( + &self, + applicationtypename: &windows_core::PCWSTR, + applicationtypeversion: &windows_core::PCWSTR, + servicemanifestname: &windows_core::PCWSTR, + sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndDeployServicePackageToNode( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient4_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginDeployServicePackageToNode< + Identity: IFabricApplicationManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationtypename: windows_core::PCWSTR, + applicationtypeversion: windows_core::PCWSTR, + servicemanifestname: windows_core::PCWSTR, + sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient4_Impl::BeginDeployServicePackageToNode( + this, + core::mem::transmute(&applicationtypename), + core::mem::transmute(&applicationtypeversion), + core::mem::transmute(&servicemanifestname), + core::mem::transmute_copy(&sharingpolicy), + core::mem::transmute(&nodename), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndDeployServicePackageToNode< + Identity: IFabricApplicationManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient4_Impl::EndDeployServicePackageToNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient3_Vtbl::new::(), + BeginDeployServicePackageToNode: BeginDeployServicePackageToNode::, + EndDeployServicePackageToNode: EndDeployServicePackageToNode::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient4 {} windows_core::imp::define_interface!( - IFabricApplicationUpgradeProgressResult, - IFabricApplicationUpgradeProgressResult_Vtbl, - 0x1e4670f8_ede5_48ab_881f_c45a0f38413a + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient5_Vtbl, + 0xd7490e43_2217_4158_93e1_9ce4dd6f724a ); -impl core::ops::Deref for IFabricApplicationUpgradeProgressResult { - type Target = windows_core::IUnknown; +impl core::ops::Deref for IFabricApplicationManagementClient5 { + type Target = IFabricApplicationManagementClient4; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult, - windows_core::IUnknown + IFabricApplicationManagementClient5, + windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4 ); -impl IFabricApplicationUpgradeProgressResult { - pub unsafe fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI { - (windows_core::Interface::vtable(self).get_ApplicationName)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_ApplicationTypeName)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_TargetApplicationTypeVersion)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE { - (windows_core::Interface::vtable(self).get_UpgradeState)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn GetUpgradeDomains( +impl IFabricApplicationManagementClient5 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRollbackApplicationUpgrade( &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpgradeDomains)( - windows_core::Interface::as_raw(self), - itemcount, - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRollbackApplicationUpgrade)( + windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn GetChangedUpgradeDomains( - &self, - previousprogress: P0, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRollbackApplicationUpgrade(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( - windows_core::Interface::as_raw(self), - previousprogress.param().abi(), - itemcount, - &mut result__, - ) - .map(|| result__) + unsafe { + (windows_core::Interface::vtable(self).EndRollbackApplicationUpgrade)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationUpgradeProgressResult {} -unsafe impl Sync for IFabricApplicationUpgradeProgressResult {} #[repr(C)] -pub struct IFabricApplicationUpgradeProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ApplicationName: - unsafe extern "system" fn(*mut core::ffi::c_void) -> super::FabricTypes::FABRIC_URI, - pub get_ApplicationTypeName: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub get_TargetApplicationTypeVersion: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub get_UpgradeState: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE, - pub GetUpgradeDomains: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient5_Vtbl { + pub base__: IFabricApplicationManagementClient4_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRollbackApplicationUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub GetChangedUpgradeDomains: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRollbackApplicationUpgrade: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRollbackApplicationUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRollbackApplicationUpgrade: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient5_Impl: + IFabricApplicationManagementClient4_Impl +{ + fn BeginRollbackApplicationUpgrade( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRollbackApplicationUpgrade( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient5_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginRollbackApplicationUpgrade< + Identity: IFabricApplicationManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationname: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient5_Impl::BeginRollbackApplicationUpgrade( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRollbackApplicationUpgrade< + Identity: IFabricApplicationManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient5_Impl::EndRollbackApplicationUpgrade( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient4_Vtbl::new::(), + BeginRollbackApplicationUpgrade: BeginRollbackApplicationUpgrade::, + EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient5 {} windows_core::imp::define_interface!( - IFabricApplicationUpgradeProgressResult2, - IFabricApplicationUpgradeProgressResult2_Vtbl, - 0x62707ee5_b625_4489_aa4d_2e54b06ea248 + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient6_Vtbl, + 0xb01e63ee_1ea4_4181_95c7_983b32e16848 ); -impl core::ops::Deref for IFabricApplicationUpgradeProgressResult2 { - type Target = IFabricApplicationUpgradeProgressResult; +impl core::ops::Deref for IFabricApplicationManagementClient6 { + type Target = IFabricApplicationManagementClient5; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult2, + IFabricApplicationManagementClient6, windows_core::IUnknown, - IFabricApplicationUpgradeProgressResult + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5 ); -impl IFabricApplicationUpgradeProgressResult2 { - pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { - (windows_core::Interface::vtable(self).get_RollingUpgradeMode)( - windows_core::Interface::as_raw(self), - ) +impl IFabricApplicationManagementClient6 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateApplication)( + windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_NextUpgradeDomain)( - windows_core::Interface::as_raw(self), - ) + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateApplication(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpdateApplication)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricApplicationUpgradeProgressResult2 {} -unsafe impl Sync for IFabricApplicationUpgradeProgressResult2 {} #[repr(C)] -pub struct IFabricApplicationUpgradeProgressResult2_Vtbl { - pub base__: IFabricApplicationUpgradeProgressResult_Vtbl, - pub get_RollingUpgradeMode: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE, - pub get_NextUpgradeDomain: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +pub struct IFabricApplicationManagementClient6_Vtbl { + pub base__: IFabricApplicationManagementClient5_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateApplication: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateApplication: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateApplication: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateApplication: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient6_Impl: + IFabricApplicationManagementClient5_Impl +{ + fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUpdateApplication( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient6_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginUpdateApplication< + Identity: IFabricApplicationManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient6_Impl::BeginUpdateApplication( + this, + core::mem::transmute_copy(&applicationupdatedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpdateApplication< + Identity: IFabricApplicationManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient6_Impl::EndUpdateApplication( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient5_Vtbl::new::(), + BeginUpdateApplication: BeginUpdateApplication::, + EndUpdateApplication: EndUpdateApplication::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient6 {} windows_core::imp::define_interface!( - IFabricApplicationUpgradeProgressResult3, - IFabricApplicationUpgradeProgressResult3_Vtbl, - 0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2 + IFabricApplicationManagementClient7, + IFabricApplicationManagementClient7_Vtbl, + 0x26844276_25b1_4f8c_adbe_b1b3a3083c17 ); -impl core::ops::Deref for IFabricApplicationUpgradeProgressResult3 { - type Target = IFabricApplicationUpgradeProgressResult2; +impl core::ops::Deref for IFabricApplicationManagementClient7 { + type Target = IFabricApplicationManagementClient6; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult3, + IFabricApplicationManagementClient7, windows_core::IUnknown, - IFabricApplicationUpgradeProgressResult, - IFabricApplicationUpgradeProgressResult2 + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6 ); -impl IFabricApplicationUpgradeProgressResult3 { - pub unsafe fn get_UpgradeProgress( +impl IFabricApplicationManagementClient7 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteApplication2( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS { - (windows_core::Interface::vtable(self).get_UpgradeProgress)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricApplicationUpgradeProgressResult3 {} -unsafe impl Sync for IFabricApplicationUpgradeProgressResult3 {} -#[repr(C)] -pub struct IFabricApplicationUpgradeProgressResult3_Vtbl { - pub base__: IFabricApplicationUpgradeProgressResult2_Vtbl, - pub get_UpgradeProgress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricChaosDescriptionResult, - IFabricChaosDescriptionResult_Vtbl, - 0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b -); -impl core::ops::Deref for IFabricChaosDescriptionResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteApplication2)( + windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -windows_core::imp::interface_hierarchy!(IFabricChaosDescriptionResult, windows_core::IUnknown); -impl IFabricChaosDescriptionResult { - pub unsafe fn get_ChaosDescriptionResult( - &self, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION { - (windows_core::Interface::vtable(self).get_ChaosDescriptionResult)( - windows_core::Interface::as_raw(self), - ) + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteApplication2(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteApplication2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricChaosDescriptionResult {} -unsafe impl Sync for IFabricChaosDescriptionResult {} #[repr(C)] -pub struct IFabricChaosDescriptionResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ChaosDescriptionResult: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION, -} -windows_core::imp::define_interface!( - IFabricChaosEventsSegmentResult, - IFabricChaosEventsSegmentResult_Vtbl, - 0xde148299_c48a_4540_877b_5b1daa518d76 -); -impl core::ops::Deref for IFabricChaosEventsSegmentResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } +pub struct IFabricApplicationManagementClient7_Vtbl { + pub base__: IFabricApplicationManagementClient6_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteApplication2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteApplication2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteApplication2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteApplication2: usize, } -windows_core::imp::interface_hierarchy!(IFabricChaosEventsSegmentResult, windows_core::IUnknown); -impl IFabricChaosEventsSegmentResult { - pub unsafe fn get_ChaosEventsSegmentResult( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient7_Impl: + IFabricApplicationManagementClient6_Impl +{ + fn BeginDeleteApplication2( &self, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT { - (windows_core::Interface::vtable(self).get_ChaosEventsSegmentResult)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricChaosEventsSegmentResult {} -unsafe impl Sync for IFabricChaosEventsSegmentResult {} -#[repr(C)] -pub struct IFabricChaosEventsSegmentResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ChaosEventsSegmentResult: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT, -} -windows_core::imp::define_interface!( - IFabricChaosReportResult, - IFabricChaosReportResult_Vtbl, - 0x8952e931_b2b3_470a_b982_6b415f30dbc0 -); -impl core::ops::Deref for IFabricChaosReportResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricChaosReportResult, windows_core::IUnknown); -impl IFabricChaosReportResult { - pub unsafe fn get_ChaosReportResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT { - (windows_core::Interface::vtable(self).get_ChaosReportResult)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricChaosReportResult {} -unsafe impl Sync for IFabricChaosReportResult {} -#[repr(C)] -pub struct IFabricChaosReportResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ChaosReportResult: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndDeleteApplication2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; } -windows_core::imp::define_interface!( - IFabricChaosScheduleDescriptionResult, - IFabricChaosScheduleDescriptionResult_Vtbl, - 0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84 -); -impl core::ops::Deref for IFabricChaosScheduleDescriptionResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient7_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginDeleteApplication2< + Identity: IFabricApplicationManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient7_Impl::BeginDeleteApplication2( + this, + core::mem::transmute_copy(&deletedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndDeleteApplication2< + Identity: IFabricApplicationManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient7_Impl::EndDeleteApplication2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient6_Vtbl::new::(), + BeginDeleteApplication2: BeginDeleteApplication2::, + EndDeleteApplication2: EndDeleteApplication2::, + } } -} -windows_core::imp::interface_hierarchy!( - IFabricChaosScheduleDescriptionResult, - windows_core::IUnknown -); -impl IFabricChaosScheduleDescriptionResult { - pub unsafe fn get_ChaosScheduleDescriptionResult( - &self, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - (windows_core::Interface::vtable(self).get_ChaosScheduleDescriptionResult)( - windows_core::Interface::as_raw(self), - ) + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -unsafe impl Send for IFabricChaosScheduleDescriptionResult {} -unsafe impl Sync for IFabricChaosScheduleDescriptionResult {} -#[repr(C)] -pub struct IFabricChaosScheduleDescriptionResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ChaosScheduleDescriptionResult: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION, -} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient7 {} windows_core::imp::define_interface!( - IFabricClientConnectionEventHandler, - IFabricClientConnectionEventHandler_Vtbl, - 0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d + IFabricApplicationManagementClient8, + IFabricApplicationManagementClient8_Vtbl, + 0x97b38e85_7329_47ff_a8d2_b7cbf1603689 ); -impl core::ops::Deref for IFabricClientConnectionEventHandler { - type Target = windows_core::IUnknown; +impl core::ops::Deref for IFabricApplicationManagementClient8 { + type Target = IFabricApplicationManagementClient7; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClientConnectionEventHandler, - windows_core::IUnknown + IFabricApplicationManagementClient8, + windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7 ); -impl IFabricClientConnectionEventHandler { - pub unsafe fn OnConnected( +impl IFabricApplicationManagementClient8 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginProvisionApplicationType2( &self, - __midl__ifabricclientconnectioneventhandler0000: P0, - ) -> windows_core::Result<()> + description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).OnConnected)( - windows_core::Interface::as_raw(self), - __midl__ifabricclientconnectioneventhandler0000 - .param() - .abi(), - ) - .ok() + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginProvisionApplicationType2)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn OnDisconnected( - &self, - __midl__ifabricclientconnectioneventhandler0001: P0, - ) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndProvisionApplicationType2(&self, context: P0) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).OnDisconnected)( - windows_core::Interface::as_raw(self), - __midl__ifabricclientconnectioneventhandler0001 - .param() - .abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndProvisionApplicationType2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricClientConnectionEventHandler {} -unsafe impl Sync for IFabricClientConnectionEventHandler {} #[repr(C)] -pub struct IFabricClientConnectionEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnConnected: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient8_Vtbl { + pub base__: IFabricApplicationManagementClient7_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginProvisionApplicationType2: unsafe extern "system" fn( *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + u32, *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub OnDisconnected: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginProvisionApplicationType2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndProvisionApplicationType2: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndProvisionApplicationType2: usize, } -windows_core::imp::define_interface!( - IFabricClientConnectionEventHandler2, - IFabricClientConnectionEventHandler2_Vtbl, - 0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897 -); -impl core::ops::Deref for IFabricClientConnectionEventHandler2 { - type Target = IFabricClientConnectionEventHandler; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricClientConnectionEventHandler2, - windows_core::IUnknown, - IFabricClientConnectionEventHandler -); -impl IFabricClientConnectionEventHandler2 { - pub unsafe fn OnClaimsRetrieval( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient8_Impl: + IFabricApplicationManagementClient7_Impl +{ + fn BeginProvisionApplicationType2( &self, - metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).OnClaimsRetrieval)( - windows_core::Interface::as_raw(self), - metadata, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricClientConnectionEventHandler2 {} -unsafe impl Sync for IFabricClientConnectionEventHandler2 {} -#[repr(C)] -pub struct IFabricClientConnectionEventHandler2_Vtbl { - pub base__: IFabricClientConnectionEventHandler_Vtbl, - pub OnClaimsRetrieval: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricClientSettings, - IFabricClientSettings_Vtbl, - 0xb0e7dee0_cf64_11e0_9572_0800200c9a66 -); -impl core::ops::Deref for IFabricClientSettings { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricClientSettings, windows_core::IUnknown); -impl IFabricClientSettings { - pub unsafe fn SetSecurityCredentials( + description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndProvisionApplicationType2( &self, - securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSecurityCredentials)( - windows_core::Interface::as_raw(self), - securitycredentials, - ) - .ok() + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient8_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginProvisionApplicationType2< + Identity: IFabricApplicationManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient8_Impl::BeginProvisionApplicationType2( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndProvisionApplicationType2< + Identity: IFabricApplicationManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient8_Impl::EndProvisionApplicationType2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient7_Vtbl::new::(), + BeginProvisionApplicationType2: BeginProvisionApplicationType2::, + EndProvisionApplicationType2: EndProvisionApplicationType2::, + } } - pub unsafe fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetKeepAlive)( - windows_core::Interface::as_raw(self), - keepaliveintervalinseconds, - ) - .ok() + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -unsafe impl Send for IFabricClientSettings {} -unsafe impl Sync for IFabricClientSettings {} -#[repr(C)] -pub struct IFabricClientSettings_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub SetSecurityCredentials: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, - ) -> windows_core::HRESULT, - pub SetKeepAlive: - unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, -} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient8 {} windows_core::imp::define_interface!( - IFabricClientSettings2, - IFabricClientSettings2_Vtbl, - 0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425 + IFabricApplicationManagementClient9, + IFabricApplicationManagementClient9_Vtbl, + 0x26617b63_1350_4d7f_830c_2200978d31bb ); -impl core::ops::Deref for IFabricClientSettings2 { - type Target = IFabricClientSettings; +impl core::ops::Deref for IFabricApplicationManagementClient9 { + type Target = IFabricApplicationManagementClient8; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClientSettings2, + IFabricApplicationManagementClient9, windows_core::IUnknown, - IFabricClientSettings -); -impl IFabricClientSettings2 { - pub unsafe fn GetSettings(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSettings)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn SetSettings( - &self, - fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).SetSettings)( - windows_core::Interface::as_raw(self), - fabricclientsettings, - ) - .ok() - } -} -unsafe impl Send for IFabricClientSettings2 {} -unsafe impl Sync for IFabricClientSettings2 {} -#[repr(C)] -pub struct IFabricClientSettings2_Vtbl { - pub base__: IFabricClientSettings_Vtbl, - pub GetSettings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub SetSettings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricClientSettingsResult, - IFabricClientSettingsResult_Vtbl, - 0x3b825afd_cb31_4589_961e_e3778aa23a60 -); -impl core::ops::Deref for IFabricClientSettingsResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricClientSettingsResult, windows_core::IUnknown); -impl IFabricClientSettingsResult { - pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS { - (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricClientSettingsResult {} -unsafe impl Sync for IFabricClientSettingsResult {} -#[repr(C)] -pub struct IFabricClientSettingsResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Settings: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS, -} -windows_core::imp::define_interface!( - IFabricClusterHealthResult, - IFabricClusterHealthResult_Vtbl, - 0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3 -); -impl core::ops::Deref for IFabricClusterHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricClusterHealthResult, windows_core::IUnknown); -impl IFabricClusterHealthResult { - pub unsafe fn get_ClusterHealth(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH { - (windows_core::Interface::vtable(self).get_ClusterHealth)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricClusterHealthResult {} -unsafe impl Sync for IFabricClusterHealthResult {} -#[repr(C)] -pub struct IFabricClusterHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ClusterHealth: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH, -} -windows_core::imp::define_interface!( - IFabricClusterManagementClient, - IFabricClusterManagementClient_Vtbl, - 0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7, + IFabricApplicationManagementClient8 ); -impl core::ops::Deref for IFabricClusterManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricClusterManagementClient, windows_core::IUnknown); -impl IFabricClusterManagementClient { - pub unsafe fn BeginNodeStateRemoved( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginNodeStateRemoved)( - windows_core::Interface::as_raw(self), - nodename.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndNodeStateRemoved)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions( +impl IFabricApplicationManagementClient9 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUnprovisionApplicationType2( &self, + description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRecoverPartitions)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUnprovisionApplicationType2)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRecoverPartitions(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUnprovisionApplicationType2(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRecoverPartitions)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndUnprovisionApplicationType2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricClusterManagementClient {} -unsafe impl Sync for IFabricClusterManagementClient {} #[repr(C)] -pub struct IFabricClusterManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginNodeStateRemoved: unsafe extern "system" fn( +pub struct IFabricApplicationManagementClient9_Vtbl { + pub base__: IFabricApplicationManagementClient8_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUnprovisionApplicationType2: unsafe extern "system" fn( *mut core::ffi::c_void, - windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndNodeStateRemoved: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRecoverPartitions: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRecoverPartitions: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUnprovisionApplicationType2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUnprovisionApplicationType2: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUnprovisionApplicationType2: usize, } -windows_core::imp::define_interface!( - IFabricClusterManagementClient10, - IFabricClusterManagementClient10_Vtbl, - 0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20 -); -impl core::ops::Deref for IFabricClusterManagementClient10 { - type Target = IFabricClusterManagementClient9; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricApplicationManagementClient9_Impl: + IFabricApplicationManagementClient8_Impl +{ + fn BeginUnprovisionApplicationType2( + &self, + description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUnprovisionApplicationType2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricApplicationManagementClient9_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginUnprovisionApplicationType2< + Identity: IFabricApplicationManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationManagementClient9_Impl::BeginUnprovisionApplicationType2( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUnprovisionApplicationType2< + Identity: IFabricApplicationManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationManagementClient9_Impl::EndUnprovisionApplicationType2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricApplicationManagementClient8_Vtbl::new::(), + BeginUnprovisionApplicationType2: BeginUnprovisionApplicationType2::, + EndUnprovisionApplicationType2: EndUnprovisionApplicationType2::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricApplicationManagementClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricApplicationManagementClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricApplicationManagementClient9 {} +windows_core::imp::define_interface!( + IFabricApplicationUpgradeProgressResult, + IFabricApplicationUpgradeProgressResult_Vtbl, + 0x1e4670f8_ede5_48ab_881f_c45a0f38413a +); windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient10, - windows_core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6, - IFabricClusterManagementClient7, - IFabricClusterManagementClient8, - IFabricClusterManagementClient9 + IFabricApplicationUpgradeProgressResult, + windows_core::IUnknown ); -impl IFabricClusterManagementClient10 { - pub unsafe fn BeginGetClusterConfiguration2( +impl IFabricApplicationUpgradeProgressResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationName)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationTypeName)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_TargetApplicationTypeVersion)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE { + unsafe { + (windows_core::Interface::vtable(self).get_UpgradeState)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetUpgradeDomains( &self, - apiversion: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterConfiguration2)( - windows_core::Interface::as_raw(self), - apiversion.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetUpgradeDomains)( + windows_core::Interface::as_raw(self), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } } - pub unsafe fn EndGetClusterConfiguration2( + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetChangedUpgradeDomains( &self, - context: P0, - ) -> windows_core::Result + previousprogress: P0, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> where - P0: windows_core::Param, + P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterConfiguration2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + windows_core::Interface::as_raw(self), + previousprogress.param().abi(), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } } } -unsafe impl Send for IFabricClusterManagementClient10 {} -unsafe impl Sync for IFabricClusterManagementClient10 {} #[repr(C)] -pub struct IFabricClusterManagementClient10_Vtbl { - pub base__: IFabricClusterManagementClient9_Vtbl, - pub BeginGetClusterConfiguration2: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - u32, +pub struct IFabricApplicationUpgradeProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ApplicationName: + unsafe extern "system" fn(*mut core::ffi::c_void) -> super::FabricTypes::FABRIC_URI, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationName: usize, + pub get_ApplicationTypeName: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + pub get_TargetApplicationTypeVersion: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_UpgradeState: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_UpgradeState: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetUpgradeDomains: unsafe extern "system" fn( *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, ) -> windows_core::HRESULT, - pub EndGetClusterConfiguration2: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetUpgradeDomains: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetChangedUpgradeDomains: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetChangedUpgradeDomains: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricApplicationUpgradeProgressResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI; + fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR; + fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR; + fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE; + fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; + fn GetChangedUpgradeDomains( + &self, + previousprogress: windows_core::Ref<'_, IFabricApplicationUpgradeProgressResult>, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricApplicationUpgradeProgressResult_Vtbl { + pub const fn new< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ApplicationName< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_URI { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationName(this) + } + } + unsafe extern "system" fn get_ApplicationTypeName< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationTypeName(this) + } + } + unsafe extern "system" fn get_TargetApplicationTypeVersion< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult_Impl::get_TargetApplicationTypeVersion(this) + } + } + unsafe extern "system" fn get_UpgradeState< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult_Impl::get_UpgradeState(this) + } + } + unsafe extern "system" fn GetUpgradeDomains< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationUpgradeProgressResult_Impl::GetUpgradeDomains( + this, + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetChangedUpgradeDomains< + Identity: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + previousprogress: *mut core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricApplicationUpgradeProgressResult_Impl::GetChangedUpgradeDomains( + this, + core::mem::transmute_copy(&previousprogress), + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationName: get_ApplicationName::, + get_ApplicationTypeName: get_ApplicationTypeName::, + get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::, + get_UpgradeState: get_UpgradeState::, + GetUpgradeDomains: GetUpgradeDomains::, + GetChangedUpgradeDomains: GetChangedUpgradeDomains::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } } +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricApplicationUpgradeProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricApplicationUpgradeProgressResult {} windows_core::imp::define_interface!( - IFabricClusterManagementClient2, - IFabricClusterManagementClient2_Vtbl, - 0xf9493e16_6a49_4d79_8695_5a6826b504c5 + IFabricApplicationUpgradeProgressResult2, + IFabricApplicationUpgradeProgressResult2_Vtbl, + 0x62707ee5_b625_4489_aa4d_2e54b06ea248 ); -impl core::ops::Deref for IFabricClusterManagementClient2 { - type Target = IFabricClusterManagementClient; +impl core::ops::Deref for IFabricApplicationUpgradeProgressResult2 { + type Target = IFabricApplicationUpgradeProgressResult; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient2, + IFabricApplicationUpgradeProgressResult2, windows_core::IUnknown, - IFabricClusterManagementClient + IFabricApplicationUpgradeProgressResult ); -impl IFabricClusterManagementClient2 { - pub unsafe fn BeginDeactivateNode( - &self, - nodename: P0, - intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeactivateNode)( - windows_core::Interface::as_raw(self), - nodename.param().abi(), - intent, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeactivateNode(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeactivateNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +impl IFabricApplicationUpgradeProgressResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { + unsafe { + (windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn BeginActivateNode( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginActivateNode)( - windows_core::Interface::as_raw(self), - nodename.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_NextUpgradeDomain)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn EndActivateNode(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndActivateNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +} +#[repr(C)] +pub struct IFabricApplicationUpgradeProgressResult2_Vtbl { + pub base__: IFabricApplicationUpgradeProgressResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_RollingUpgradeMode: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_RollingUpgradeMode: usize, + pub get_NextUpgradeDomain: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricApplicationUpgradeProgressResult2_Impl: + IFabricApplicationUpgradeProgressResult_Impl +{ + fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE; + fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricApplicationUpgradeProgressResult2_Vtbl { + pub const fn new< + Identity: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_RollingUpgradeMode< + Identity: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this) + } + } + unsafe extern "system" fn get_NextUpgradeDomain< + Identity: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this) + } + } + Self { + base__: IFabricApplicationUpgradeProgressResult_Vtbl::new::(), + get_RollingUpgradeMode: get_RollingUpgradeMode::, + get_NextUpgradeDomain: get_NextUpgradeDomain::, + } } - pub unsafe fn BeginProvisionFabric( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginProvisionFabric)( - windows_core::Interface::as_raw(self), - codefilepath.param().abi(), - clustermanifestfilepath.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } - pub unsafe fn EndProvisionFabric(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndProvisionFabric)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricApplicationUpgradeProgressResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricApplicationUpgradeProgressResult2 {} +windows_core::imp::define_interface!( + IFabricApplicationUpgradeProgressResult3, + IFabricApplicationUpgradeProgressResult3_Vtbl, + 0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2 +); +impl core::ops::Deref for IFabricApplicationUpgradeProgressResult3 { + type Target = IFabricApplicationUpgradeProgressResult2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } } - pub unsafe fn BeginUpgradeFabric( +} +windows_core::imp::interface_hierarchy!( + IFabricApplicationUpgradeProgressResult3, + windows_core::IUnknown, + IFabricApplicationUpgradeProgressResult, + IFabricApplicationUpgradeProgressResult2 +); +impl IFabricApplicationUpgradeProgressResult3 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_UpgradeProgress( &self, - upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpgradeFabric)( - windows_core::Interface::as_raw(self), - upgradedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpgradeFabric(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpgradeFabric)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_UpgradeProgress)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn BeginGetFabricUpgradeProgress( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetFabricUpgradeProgress)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, +} +#[repr(C)] +pub struct IFabricApplicationUpgradeProgressResult3_Vtbl { + pub base__: IFabricApplicationUpgradeProgressResult2_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_UpgradeProgress: + unsafe extern "system" fn( + *mut core::ffi::c_void, ) - .and_then(|| windows_core::Type::from_abi(result__)) + -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_UpgradeProgress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricApplicationUpgradeProgressResult3_Impl: + IFabricApplicationUpgradeProgressResult2_Impl +{ + fn get_UpgradeProgress(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricApplicationUpgradeProgressResult3_Vtbl { + pub const fn new< + Identity: IFabricApplicationUpgradeProgressResult3_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_UpgradeProgress< + Identity: IFabricApplicationUpgradeProgressResult3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricApplicationUpgradeProgressResult3_Impl::get_UpgradeProgress(this) + } + } + Self { + base__: IFabricApplicationUpgradeProgressResult2_Vtbl::new::(), + get_UpgradeProgress: get_UpgradeProgress::, + } } - pub unsafe fn EndGetFabricUpgradeProgress( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetFabricUpgradeProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } - pub unsafe fn BeginMoveNextFabricUpgradeDomain( +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricApplicationUpgradeProgressResult3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricApplicationUpgradeProgressResult3 {} +windows_core::imp::define_interface!( + IFabricChaosDescriptionResult, + IFabricChaosDescriptionResult_Vtbl, + 0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b +); +windows_core::imp::interface_hierarchy!(IFabricChaosDescriptionResult, windows_core::IUnknown); +impl IFabricChaosDescriptionResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ChaosDescriptionResult( &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain)( - windows_core::Interface::as_raw(self), - progress.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_ChaosDescriptionResult)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn EndMoveNextFabricUpgradeDomain(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +} +#[repr(C)] +pub struct IFabricChaosDescriptionResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ChaosDescriptionResult: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ChaosDescriptionResult: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricChaosDescriptionResult_Impl: windows_core::IUnknownImpl { + fn get_ChaosDescriptionResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricChaosDescriptionResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ChaosDescriptionResult< + Identity: IFabricChaosDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricChaosDescriptionResult_Impl::get_ChaosDescriptionResult(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ChaosDescriptionResult: get_ChaosDescriptionResult::, + } } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain2)( - windows_core::Interface::as_raw(self), - nextupgradedomain.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } - pub unsafe fn EndMoveNextFabricUpgradeDomain2( +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricChaosDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricChaosDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricChaosDescriptionResult {} +windows_core::imp::define_interface!( + IFabricChaosEventsSegmentResult, + IFabricChaosEventsSegmentResult_Vtbl, + 0xde148299_c48a_4540_877b_5b1daa518d76 +); +windows_core::imp::interface_hierarchy!(IFabricChaosEventsSegmentResult, windows_core::IUnknown); +impl IFabricChaosEventsSegmentResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ChaosEventsSegmentResult( &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT { + unsafe { + (windows_core::Interface::vtable(self).get_ChaosEventsSegmentResult)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn BeginUnprovisionFabric( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, +} +#[repr(C)] +pub struct IFabricChaosEventsSegmentResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ChaosEventsSegmentResult: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ChaosEventsSegmentResult: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricChaosEventsSegmentResult_Impl: windows_core::IUnknownImpl { + fn get_ChaosEventsSegmentResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricChaosEventsSegmentResult_Vtbl { + pub const fn new() -> Self { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUnprovisionFabric)( - windows_core::Interface::as_raw(self), - codeversion.param().abi(), - configversion.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe extern "system" fn get_ChaosEventsSegmentResult< + Identity: IFabricChaosEventsSegmentResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricChaosEventsSegmentResult_Impl::get_ChaosEventsSegmentResult(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::, + } } - pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUnprovisionFabric)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } - pub unsafe fn BeginGetClusterManifest( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterManifest)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricChaosEventsSegmentResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricChaosEventsSegmentResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricChaosEventsSegmentResult {} +windows_core::imp::define_interface!( + IFabricChaosReportResult, + IFabricChaosReportResult_Vtbl, + 0x8952e931_b2b3_470a_b982_6b415f30dbc0 +); +windows_core::imp::interface_hierarchy!(IFabricChaosReportResult, windows_core::IUnknown); +impl IFabricChaosReportResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ChaosReportResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT { + unsafe { + (windows_core::Interface::vtable(self).get_ChaosReportResult)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn EndGetClusterManifest( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterManifest)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) +} +#[repr(C)] +pub struct IFabricChaosReportResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ChaosReportResult: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ChaosReportResult: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricChaosReportResult_Impl: windows_core::IUnknownImpl { + fn get_ChaosReportResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricChaosReportResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ChaosReportResult< + Identity: IFabricChaosReportResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricChaosReportResult_Impl::get_ChaosReportResult(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ChaosReportResult: get_ChaosReportResult::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } - pub unsafe fn BeginRecoverPartition( +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricChaosReportResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricChaosReportResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricChaosReportResult {} +windows_core::imp::define_interface!( + IFabricChaosScheduleDescriptionResult, + IFabricChaosScheduleDescriptionResult_Vtbl, + 0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84 +); +windows_core::imp::interface_hierarchy!( + IFabricChaosScheduleDescriptionResult, + windows_core::IUnknown +); +impl IFabricChaosScheduleDescriptionResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ChaosScheduleDescriptionResult( &self, - partitionid: windows_core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRecoverPartition)( - windows_core::Interface::as_raw(self), - core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_ChaosScheduleDescriptionResult)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn EndRecoverPartition(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRecoverPartition)( - windows_core::Interface::as_raw(self), - context.param().abi(), +} +#[repr(C)] +pub struct IFabricChaosScheduleDescriptionResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ChaosScheduleDescriptionResult: + unsafe extern "system" fn( + *mut core::ffi::c_void, ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions( + -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ChaosScheduleDescriptionResult: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricChaosScheduleDescriptionResult_Impl: windows_core::IUnknownImpl { + fn get_ChaosScheduleDescriptionResult( &self, - servicename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRecoverServicePartitions)( - windows_core::Interface::as_raw(self), - servicename.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricChaosScheduleDescriptionResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ChaosScheduleDescriptionResult< + Identity: IFabricChaosScheduleDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricChaosScheduleDescriptionResult_Impl::get_ChaosScheduleDescriptionResult(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::< + Identity, + OFFSET, + >, + } } - pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRecoverServicePartitions)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } - pub unsafe fn BeginRecoverSystemPartitions( +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricChaosScheduleDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricChaosScheduleDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricChaosScheduleDescriptionResult {} +windows_core::imp::define_interface!( + IFabricClientConnectionEventHandler, + IFabricClientConnectionEventHandler_Vtbl, + 0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d +); +windows_core::imp::interface_hierarchy!( + IFabricClientConnectionEventHandler, + windows_core::IUnknown +); +impl IFabricClientConnectionEventHandler { + pub unsafe fn OnConnected( &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result + __midl__ifabricclientconnectioneventhandler0000: P0, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRecoverSystemPartitions)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).OnConnected)( + windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0000 + .param() + .abi(), + ) + .ok() + } } - pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> windows_core::Result<()> + pub unsafe fn OnDisconnected( + &self, + __midl__ifabricclientconnectioneventhandler0001: P0, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRecoverSystemPartitions)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).OnDisconnected)( + windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0001 + .param() + .abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricClusterManagementClient2 {} -unsafe impl Sync for IFabricClusterManagementClient2 {} #[repr(C)] -pub struct IFabricClusterManagementClient2_Vtbl { - pub base__: IFabricClusterManagementClient_Vtbl, - pub BeginDeactivateNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeactivateNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginActivateNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndActivateNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginProvisionFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndProvisionFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginUpgradeFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpgradeFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetFabricUpgradeProgress: unsafe extern "system" fn( +pub struct IFabricClientConnectionEventHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnConnected: unsafe extern "system" fn( *mut core::ffi::c_void, - u32, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetFabricUpgradeProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginMoveNextFabricUpgradeDomain: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndMoveNextFabricUpgradeDomain: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginUnprovisionFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUnprovisionFabric: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetClusterManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRecoverPartition: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRecoverPartition: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRecoverServicePartitions: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRecoverServicePartitions: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRecoverSystemPartitions: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRecoverSystemPartitions: unsafe extern "system" fn( + pub OnDisconnected: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, } +pub trait IFabricClientConnectionEventHandler_Impl: windows_core::IUnknownImpl { + fn OnConnected( + &self, + __midl__ifabricclientconnectioneventhandler0000: windows_core::Ref< + '_, + IFabricGatewayInformationResult, + >, + ) -> windows_core::Result<()>; + fn OnDisconnected( + &self, + __midl__ifabricclientconnectioneventhandler0001: windows_core::Ref< + '_, + IFabricGatewayInformationResult, + >, + ) -> windows_core::Result<()>; +} +impl IFabricClientConnectionEventHandler_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn OnConnected< + Identity: IFabricClientConnectionEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0000: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientConnectionEventHandler_Impl::OnConnected( + this, + core::mem::transmute_copy(&__midl__ifabricclientconnectioneventhandler0000), + ) + .into() + } + } + unsafe extern "system" fn OnDisconnected< + Identity: IFabricClientConnectionEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0001: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientConnectionEventHandler_Impl::OnDisconnected( + this, + core::mem::transmute_copy(&__midl__ifabricclientconnectioneventhandler0001), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + OnConnected: OnConnected::, + OnDisconnected: OnDisconnected::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricClientConnectionEventHandler {} +unsafe impl Send for IFabricClientConnectionEventHandler {} +unsafe impl Sync for IFabricClientConnectionEventHandler {} windows_core::imp::define_interface!( - IFabricClusterManagementClient3, - IFabricClusterManagementClient3_Vtbl, - 0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c + IFabricClientConnectionEventHandler2, + IFabricClientConnectionEventHandler2_Vtbl, + 0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897 ); -impl core::ops::Deref for IFabricClusterManagementClient3 { - type Target = IFabricClusterManagementClient2; +impl core::ops::Deref for IFabricClientConnectionEventHandler2 { + type Target = IFabricClientConnectionEventHandler; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient3, + IFabricClientConnectionEventHandler2, windows_core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2 + IFabricClientConnectionEventHandler ); -impl IFabricClusterManagementClient3 { - pub unsafe fn BeginUpdateFabricUpgrade( - &self, - description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateFabricUpgrade)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpdateFabricUpgrade)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginStopNode( +impl IFabricClientConnectionEventHandler2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn OnClaimsRetrieval( &self, - stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStopNode)( - windows_core::Interface::as_raw(self), - stopnodedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStopNode(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStopNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).OnClaimsRetrieval)( + windows_core::Interface::as_raw(self), + metadata, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn BeginRestartNode( +} +#[repr(C)] +pub struct IFabricClientConnectionEventHandler2_Vtbl { + pub base__: IFabricClientConnectionEventHandler_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub OnClaimsRetrieval: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + OnClaimsRetrieval: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClientConnectionEventHandler2_Impl: + IFabricClientConnectionEventHandler_Impl +{ + fn OnClaimsRetrieval( &self, - restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestartNode)( - windows_core::Interface::as_raw(self), - restartnodedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, + ) -> windows_core::Result; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClientConnectionEventHandler2_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn OnClaimsRetrieval< + Identity: IFabricClientConnectionEventHandler2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, + token: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClientConnectionEventHandler2_Impl::OnClaimsRetrieval( + this, + core::mem::transmute_copy(&metadata), + ) { + Ok(ok__) => { + token.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: IFabricClientConnectionEventHandler_Vtbl::new::(), + OnClaimsRetrieval: OnClaimsRetrieval::, + } } - pub unsafe fn EndRestartNode(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRestartNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } - pub unsafe fn BeginStartNode( +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClientConnectionEventHandler2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClientConnectionEventHandler2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClientConnectionEventHandler2 {} +windows_core::imp::define_interface!( + IFabricClientSettings, + IFabricClientSettings_Vtbl, + 0xb0e7dee0_cf64_11e0_9572_0800200c9a66 +); +windows_core::imp::interface_hierarchy!(IFabricClientSettings, windows_core::IUnknown); +impl IFabricClientSettings { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn SetSecurityCredentials( &self, - startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartNode)( - windows_core::Interface::as_raw(self), - startnodedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).SetSecurityCredentials)( + windows_core::Interface::as_raw(self), + securitycredentials, + ) + .ok() + } } - pub unsafe fn EndStartNode(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStartNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + pub unsafe fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).SetKeepAlive)( + windows_core::Interface::as_raw(self), + keepaliveintervalinseconds, + ) + .ok() + } } - pub unsafe fn CopyClusterPackage( +} +#[repr(C)] +pub struct IFabricClientSettings_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub SetSecurityCredentials: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + SetSecurityCredentials: usize, + pub SetKeepAlive: + unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricClientSettings_Impl: windows_core::IUnknownImpl { + fn SetSecurityCredentials( &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - P4: windows_core::Param, - { - (windows_core::Interface::vtable(self).CopyClusterPackage)( - windows_core::Interface::as_raw(self), - imagestoreconnectionstring.param().abi(), - clustermanifestpath.param().abi(), - clustermanifestpathinimagestore.param().abi(), - codepackagepath.param().abi(), - codepackagepathinimagestore.param().abi(), - ) - .ok() + securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, + ) -> windows_core::Result<()>; + fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::Result<()>; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricClientSettings_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn SetSecurityCredentials< + Identity: IFabricClientSettings_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientSettings_Impl::SetSecurityCredentials( + this, + core::mem::transmute_copy(&securitycredentials), + ) + .into() + } + } + unsafe extern "system" fn SetKeepAlive< + Identity: IFabricClientSettings_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + keepaliveintervalinseconds: u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientSettings_Impl::SetKeepAlive( + this, + core::mem::transmute_copy(&keepaliveintervalinseconds), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + SetSecurityCredentials: SetSecurityCredentials::, + SetKeepAlive: SetKeepAlive::, + } } - pub unsafe fn RemoveClusterPackage( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - (windows_core::Interface::vtable(self).RemoveClusterPackage)( - windows_core::Interface::as_raw(self), - imagestoreconnectionstring.param().abi(), - clustermanifestpathinimagestore.param().abi(), - codepackagepathinimagestore.param().abi(), - ) - .ok() + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } } -unsafe impl Send for IFabricClusterManagementClient3 {} -unsafe impl Sync for IFabricClusterManagementClient3 {} -#[repr(C)] -pub struct IFabricClusterManagementClient3_Vtbl { - pub base__: IFabricClusterManagementClient2_Vtbl, - pub BeginUpdateFabricUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateFabricUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginStopNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStopNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRestartNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRestartNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginStartNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartNode: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub CopyClusterPackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub RemoveClusterPackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, -} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricClientSettings {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricClientSettings {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricClientSettings {} windows_core::imp::define_interface!( - IFabricClusterManagementClient4, - IFabricClusterManagementClient4_Vtbl, - 0xb6b12671_f283_4d71_a818_0260549bc83e + IFabricClientSettings2, + IFabricClientSettings2_Vtbl, + 0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425 ); -impl core::ops::Deref for IFabricClusterManagementClient4 { - type Target = IFabricClusterManagementClient3; +impl core::ops::Deref for IFabricClientSettings2 { + type Target = IFabricClientSettings; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient4, + IFabricClientSettings2, windows_core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3 + IFabricClientSettings ); -impl IFabricClusterManagementClient4 { - pub unsafe fn BeginRollbackFabricUpgrade( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRollbackFabricUpgrade)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) +impl IFabricClientSettings2 { + pub unsafe fn GetSettings(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetSettings)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRollbackFabricUpgrade)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn SetSettings( + &self, + fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).SetSettings)( + windows_core::Interface::as_raw(self), + fabricclientsettings, + ) + .ok() + } } } -unsafe impl Send for IFabricClusterManagementClient4 {} -unsafe impl Sync for IFabricClusterManagementClient4 {} #[repr(C)] -pub struct IFabricClusterManagementClient4_Vtbl { - pub base__: IFabricClusterManagementClient3_Vtbl, - pub BeginRollbackFabricUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, +pub struct IFabricClientSettings2_Vtbl { + pub base__: IFabricClientSettings_Vtbl, + pub GetSettings: unsafe extern "system" fn( *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndRollbackFabricUpgrade: unsafe extern "system" fn( - *mut core::ffi::c_void, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub SetSettings: unsafe extern "system" fn( *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + SetSettings: usize, } -windows_core::imp::define_interface!( - IFabricClusterManagementClient5, - IFabricClusterManagementClient5_Vtbl, - 0xa6ddd816_a100_11e4_89d3_123b93f75cba -); -impl core::ops::Deref for IFabricClusterManagementClient5 { - type Target = IFabricClusterManagementClient4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricClientSettings2_Impl: IFabricClientSettings_Impl { + fn GetSettings(&self) -> windows_core::Result; + fn SetSettings( + &self, + fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, + ) -> windows_core::Result<()>; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricClientSettings2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn GetSettings< + Identity: IFabricClientSettings2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClientSettings2_Impl::GetSettings(this) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn SetSettings< + Identity: IFabricClientSettings2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientSettings2_Impl::SetSettings( + this, + core::mem::transmute_copy(&fabricclientsettings), + ) + .into() + } + } + Self { + base__: IFabricClientSettings_Vtbl::new::(), + GetSettings: GetSettings::, + SetSettings: SetSettings::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } -windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient5, - windows_core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4 +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricClientSettings2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricClientSettings2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricClientSettings2 {} +windows_core::imp::define_interface!( + IFabricClientSettingsResult, + IFabricClientSettingsResult_Vtbl, + 0x3b825afd_cb31_4589_961e_e3778aa23a60 ); -impl IFabricClusterManagementClient5 { - pub unsafe fn BeginResetPartitionLoad( - &self, - partitionid: windows_core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginResetPartitionLoad)( - windows_core::Interface::as_raw(self), - core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndResetPartitionLoad)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +windows_core::imp::interface_hierarchy!(IFabricClientSettingsResult, windows_core::IUnknown); +impl IFabricClientSettingsResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS { + unsafe { + (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw( + self, + )) + } } } -unsafe impl Send for IFabricClusterManagementClient5 {} -unsafe impl Sync for IFabricClusterManagementClient5 {} #[repr(C)] -pub struct IFabricClusterManagementClient5_Vtbl { - pub base__: IFabricClusterManagementClient4_Vtbl, - pub BeginResetPartitionLoad: unsafe extern "system" fn( +pub struct IFabricClientSettingsResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Settings: unsafe extern "system" fn( *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndResetPartitionLoad: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, + ) + -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Settings: usize, } -windows_core::imp::define_interface!( - IFabricClusterManagementClient6, - IFabricClusterManagementClient6_Vtbl, - 0x9e454ae8_4b8c_4136_884a_37b0b92cc855 -); -impl core::ops::Deref for IFabricClusterManagementClient6 { - type Target = IFabricClusterManagementClient5; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricClientSettingsResult_Impl: windows_core::IUnknownImpl { + fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricClientSettingsResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Settings< + Identity: IFabricClientSettingsResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClientSettingsResult_Impl::get_Settings(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Settings: get_Settings::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } } -windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient6, - windows_core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5 +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricClientSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricClientSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricClientSettingsResult {} +windows_core::imp::define_interface!( + IFabricClusterHealthResult, + IFabricClusterHealthResult_Vtbl, + 0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3 ); -impl IFabricClusterManagementClient6 { - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginToggleVerboseServicePlacementHealthReporting)( - windows_core::Interface::as_raw(self), - enabled.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( - &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndToggleVerboseServicePlacementHealthReporting)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() +windows_core::imp::interface_hierarchy!(IFabricClusterHealthResult, windows_core::IUnknown); +impl IFabricClusterHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ClusterHealth(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_ClusterHealth)( + windows_core::Interface::as_raw(self), + ) + } } } -unsafe impl Send for IFabricClusterManagementClient6 {} -unsafe impl Sync for IFabricClusterManagementClient6 {} #[repr(C)] -pub struct IFabricClusterManagementClient6_Vtbl { - pub base__: IFabricClusterManagementClient5_Vtbl, - pub BeginToggleVerboseServicePlacementHealthReporting: - unsafe extern "system" fn( - *mut core::ffi::c_void, - windows::Win32::Foundation::BOOLEAN, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndToggleVerboseServicePlacementHealthReporting: +pub struct IFabricClusterHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ClusterHealth: unsafe extern "system" fn( *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ClusterHealth: usize, } -windows_core::imp::define_interface!( - IFabricClusterManagementClient7, - IFabricClusterManagementClient7_Vtbl, - 0x9b9105ac_d595_4f59_9c94_1ffdbf92a876 -); -impl core::ops::Deref for IFabricClusterManagementClient7 { - type Target = IFabricClusterManagementClient6; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricClusterHealthResult_Impl: windows_core::IUnknownImpl { + fn get_ClusterHealth(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricClusterHealthResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ClusterHealth< + Identity: IFabricClusterHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterHealthResult_Impl::get_ClusterHealth(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ClusterHealth: get_ClusterHealth::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } } -windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient7, - windows_core::IUnknown, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricClusterHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricClusterHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricClusterHealthResult {} +windows_core::imp::define_interface!( IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6 + IFabricClusterManagementClient_Vtbl, + 0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace ); -impl IFabricClusterManagementClient7 { - pub unsafe fn BeginUpgradeConfiguration( - &self, - startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpgradeConfiguration)( - windows_core::Interface::as_raw(self), - startupgradedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpgradeConfiguration)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterConfigurationUpgradeStatus)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterConfigurationUpgradeStatus)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetClusterConfiguration( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterConfiguration)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterConfiguration( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterConfiguration)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetUpgradesPendingApproval( +windows_core::imp::interface_hierarchy!(IFabricClusterManagementClient, windows_core::IUnknown); +impl IFabricClusterManagementClient { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginNodeStateRemoved( &self, + nodename: P0, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetUpgradesPendingApproval)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginNodeStateRemoved)( + windows_core::Interface::as_raw(self), + nodename.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetUpgradesPendingApproval(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndGetUpgradesPendingApproval)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndNodeStateRemoved)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginStartApprovedUpgrades( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartApprovedUpgrades)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRecoverPartitions)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndStartApprovedUpgrades)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndRecoverPartitions)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricClusterManagementClient7 {} -unsafe impl Sync for IFabricClusterManagementClient7 {} #[repr(C)] -pub struct IFabricClusterManagementClient7_Vtbl { - pub base__: IFabricClusterManagementClient6_Vtbl, - pub BeginUpgradeConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpgradeConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetClusterConfigurationUpgradeStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterConfigurationUpgradeStatus: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub BeginGetClusterConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetUpgradesPendingApproval: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginNodeStateRemoved: unsafe extern "system" fn( *mut core::ffi::c_void, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetUpgradesPendingApproval: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginNodeStateRemoved: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndNodeStateRemoved: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginStartApprovedUpgrades: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndNodeStateRemoved: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRecoverPartitions: unsafe extern "system" fn( *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndStartApprovedUpgrades: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRecoverPartitions: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRecoverPartitions: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRecoverPartitions: usize, } -windows_core::imp::define_interface!( - IFabricClusterManagementClient8, - IFabricClusterManagementClient8_Vtbl, - 0x0b79641c_79a6_4162_904a_840babd08381 +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricClusterManagementClient_Impl: windows_core::IUnknownImpl { + fn BeginNodeStateRemoved( + &self, + nodename: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndNodeStateRemoved( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRecoverPartitions( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl IFabricClusterManagementClient_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginNodeStateRemoved< + Identity: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + nodename: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient_Impl::BeginNodeStateRemoved( + this, + core::mem::transmute(&nodename), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndNodeStateRemoved< + Identity: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient_Impl::EndNodeStateRemoved( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginRecoverPartitions< + Identity: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient_Impl::BeginRecoverPartitions( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRecoverPartitions< + Identity: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient_Impl::EndRecoverPartitions( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginNodeStateRemoved: BeginNodeStateRemoved::, + EndNodeStateRemoved: EndNodeStateRemoved::, + BeginRecoverPartitions: BeginRecoverPartitions::, + EndRecoverPartitions: EndRecoverPartitions::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricClusterManagementClient {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricClusterManagementClient {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricClusterManagementClient {} +windows_core::imp::define_interface!( + IFabricClusterManagementClient10, + IFabricClusterManagementClient10_Vtbl, + 0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20 ); -impl core::ops::Deref for IFabricClusterManagementClient8 { - type Target = IFabricClusterManagementClient7; +impl core::ops::Deref for IFabricClusterManagementClient10 { + type Target = IFabricClusterManagementClient9; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient8, + IFabricClusterManagementClient10, windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, @@ -3085,17814 +4545,13663 @@ windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient4, IFabricClusterManagementClient5, IFabricClusterManagementClient6, - IFabricClusterManagementClient7 + IFabricClusterManagementClient7, + IFabricClusterManagementClient8, + IFabricClusterManagementClient9 ); -impl IFabricClusterManagementClient8 { - pub unsafe fn BeginGetClusterManifest2( +impl IFabricClusterManagementClient10 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetClusterConfiguration2( &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + apiversion: P0, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterManifest2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterConfiguration2)( + windows_core::Interface::as_raw(self), + apiversion.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetClusterManifest2( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterConfiguration2( &self, context: P0, ) -> windows_core::Result where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterManifest2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterConfiguration2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -unsafe impl Send for IFabricClusterManagementClient8 {} -unsafe impl Sync for IFabricClusterManagementClient8 {} #[repr(C)] -pub struct IFabricClusterManagementClient8_Vtbl { - pub base__: IFabricClusterManagementClient7_Vtbl, - pub BeginGetClusterManifest2: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient10_Vtbl { + pub base__: IFabricClusterManagementClient9_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetClusterConfiguration2: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetClusterManifest2: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetClusterConfiguration2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterConfiguration2: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterConfiguration2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient10_Impl: IFabricClusterManagementClient9_Impl { + fn BeginGetClusterConfiguration2( + &self, + apiversion: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetClusterConfiguration2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient10_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginGetClusterConfiguration2< + Identity: IFabricClusterManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + apiversion: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient10_Impl::BeginGetClusterConfiguration2( + this, + core::mem::transmute(&apiversion), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetClusterConfiguration2< + Identity: IFabricClusterManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient10_Impl::EndGetClusterConfiguration2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: IFabricClusterManagementClient9_Vtbl::new::(), + BeginGetClusterConfiguration2: BeginGetClusterConfiguration2::, + EndGetClusterConfiguration2: EndGetClusterConfiguration2::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient10 {} windows_core::imp::define_interface!( - IFabricClusterManagementClient9, - IFabricClusterManagementClient9_Vtbl, - 0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e + IFabricClusterManagementClient2, + IFabricClusterManagementClient2_Vtbl, + 0xf9493e16_6a49_4d79_8695_5a6826b504c5 ); -impl core::ops::Deref for IFabricClusterManagementClient9 { - type Target = IFabricClusterManagementClient8; +impl core::ops::Deref for IFabricClusterManagementClient2 { + type Target = IFabricClusterManagementClient; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricClusterManagementClient9, - windows_core::IUnknown, - IFabricClusterManagementClient, IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6, - IFabricClusterManagementClient7, - IFabricClusterManagementClient8 + windows_core::IUnknown, + IFabricClusterManagementClient ); -impl IFabricClusterManagementClient9 { - pub unsafe fn BeginGetUpgradeOrchestrationServiceState( +impl IFabricClusterManagementClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeactivateNode( &self, + nodename: P0, + intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, - callback: P0, + callback: P3, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P3: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetUpgradeOrchestrationServiceState)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeactivateNode)( + windows_core::Interface::as_raw(self), + nodename.param().abi(), + intent, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetUpgradeOrchestrationServiceState( - &self, - context: P0, - ) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeactivateNode(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetUpgradeOrchestrationServiceState)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndDeactivateNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginSetUpgradeOrchestrationServiceState( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginActivateNode( &self, - state: P0, + nodename: P0, timeoutmilliseconds: u32, - callback: P1, + callback: P2, ) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSetUpgradeOrchestrationServiceState)( - windows_core::Interface::as_raw(self), - state.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginActivateNode)( + windows_core::Interface::as_raw(self), + nodename.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndSetUpgradeOrchestrationServiceState( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndActivateNode(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndActivateNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginProvisionFabric( &self, - context: P0, - ) -> windows_core::Result + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginProvisionFabric)( + windows_core::Interface::as_raw(self), + codefilepath.param().abi(), + clustermanifestfilepath.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndProvisionFabric(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndSetUpgradeOrchestrationServiceState)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndProvisionFabric)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -unsafe impl Send for IFabricClusterManagementClient9 {} -unsafe impl Sync for IFabricClusterManagementClient9 {} -#[repr(C)] -pub struct IFabricClusterManagementClient9_Vtbl { - pub base__: IFabricClusterManagementClient8_Vtbl, - pub BeginGetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetUpgradeOrchestrationServiceState: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub BeginSetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndSetUpgradeOrchestrationServiceState: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricDeployedApplicationHealthResult, - IFabricDeployedApplicationHealthResult_Vtbl, - 0x4df50bf4_7c28_4210_94f7_50625df6c942 -); -impl core::ops::Deref for IFabricDeployedApplicationHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricDeployedApplicationHealthResult, - windows_core::IUnknown -); -impl IFabricDeployedApplicationHealthResult { - pub unsafe fn get_DeployedApplicationHealth( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpgradeFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH { - (windows_core::Interface::vtable(self).get_DeployedApplicationHealth)( - windows_core::Interface::as_raw(self), - ) + upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpgradeFabric)( + windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -unsafe impl Send for IFabricDeployedApplicationHealthResult {} -unsafe impl Sync for IFabricDeployedApplicationHealthResult {} -#[repr(C)] -pub struct IFabricDeployedApplicationHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_DeployedApplicationHealth: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH, -} -windows_core::imp::define_interface!( - IFabricDeployedServicePackageHealthResult, - IFabricDeployedServicePackageHealthResult_Vtbl, - 0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1 -); -impl core::ops::Deref for IFabricDeployedServicePackageHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpgradeFabric)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricDeployedServicePackageHealthResult, - windows_core::IUnknown -); -impl IFabricDeployedServicePackageHealthResult { - pub unsafe fn get_DeployedServicePackageHealth( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetFabricUpgradeProgress( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - (windows_core::Interface::vtable(self).get_DeployedServicePackageHealth)( - windows_core::Interface::as_raw(self), - ) + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetFabricUpgradeProgress)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -unsafe impl Send for IFabricDeployedServicePackageHealthResult {} -unsafe impl Sync for IFabricDeployedServicePackageHealthResult {} -#[repr(C)] -pub struct IFabricDeployedServicePackageHealthResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedServicePackageHealth :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH , } -windows_core::imp::define_interface!( - IFabricFaultManagementClient, - IFabricFaultManagementClient_Vtbl, - 0x769e1838_8726_4dcd_a3c0_211673a6967a -); -impl core::ops::Deref for IFabricFaultManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetFabricUpgradeProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -windows_core::imp::interface_hierarchy!(IFabricFaultManagementClient, windows_core::IUnknown); -impl IFabricFaultManagementClient { - pub unsafe fn BeginRestartNode( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, - description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + progress: P0, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestartNode)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain)( + windows_core::Interface::as_raw(self), + progress.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRestartNode( - &self, - context: P0, - ) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndMoveNextFabricUpgradeDomain(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRestartNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginStartNode( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, - description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, + nextupgradedomain: P0, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartNode)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain2)( + windows_core::Interface::as_raw(self), + nextupgradedomain.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndStartNode( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> windows_core::Result + ) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndStartNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginStopNode( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginUnprovisionFabric( &self, - description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + codeversion: P0, + configversion: P1, timeoutmilliseconds: u32, - callback: P0, + callback: P3, ) -> windows_core::Result where - P0: windows_core::Param, + P0: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStopNode)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUnprovisionFabric)( + windows_core::Interface::as_raw(self), + codeversion.param().abi(), + configversion.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndStopNode(&self, context: P0) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndStopNode)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndUnprovisionFabric)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginRestartDeployedCodePackage( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetClusterManifest( &self, - description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterManifest)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRestartDeployedCodePackage( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> windows_core::Result + ) -> windows_core::Result where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterManifest)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn BeginMovePrimary( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRecoverPartition( &self, - description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + partitionid: windows_core::GUID, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMovePrimary)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRecoverPartition)( + windows_core::Interface::as_raw(self), + core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndMovePrimary( - &self, - context: P0, - ) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRecoverPartition(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndMovePrimary)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndRecoverPartition)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginMoveSecondary( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRecoverServicePartitions( &self, - description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + servicename: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginMoveSecondary)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRecoverServicePartitions)( + windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndMoveSecondary( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRecoverServicePartitions)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRecoverSystemPartitions( &self, - context: P0, - ) -> windows_core::Result + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRecoverSystemPartitions)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndMoveSecondary)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndRecoverSystemPartitions)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricFaultManagementClient {} -unsafe impl Sync for IFabricFaultManagementClient {} #[repr(C)] -pub struct IFabricFaultManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginRestartNode: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient2_Vtbl { + pub base__: IFabricClusterManagementClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeactivateNode: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + windows_core::PCWSTR, + super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndRestartNode: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeactivateNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeactivateNode: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginStartNode: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeactivateNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginActivateNode: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndStartNode: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginActivateNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndActivateNode: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginStopNode: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndActivateNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginProvisionFabric: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + windows_core::PCWSTR, + windows_core::PCWSTR, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndStopNode: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginProvisionFabric: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndProvisionFabric: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndProvisionFabric: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpgradeFabric: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndRestartDeployedCodePackage: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpgradeFabric: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpgradeFabric: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginMovePrimary: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpgradeFabric: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetFabricUpgradeProgress: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndMovePrimary: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetFabricUpgradeProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetFabricUpgradeProgress: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginMoveSecondary: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetFabricUpgradeProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginMoveNextFabricUpgradeDomain: unsafe extern "system" fn( + *mut core::ffi::c_void, *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndMoveSecondary: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginMoveNextFabricUpgradeDomain: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndMoveNextFabricUpgradeDomain: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMoveNextFabricUpgradeDomain: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginMoveNextFabricUpgradeDomain2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMoveNextFabricUpgradeDomain2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginUnprovisionFabric: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginUnprovisionFabric: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUnprovisionFabric: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUnprovisionFabric: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetClusterManifest: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetClusterManifest: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterManifest: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterManifest: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRecoverPartition: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRecoverPartition: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRecoverPartition: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRecoverPartition: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRecoverServicePartitions: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRecoverServicePartitions: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRecoverServicePartitions: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRecoverServicePartitions: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRecoverSystemPartitions: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRecoverSystemPartitions: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRecoverSystemPartitions: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRecoverSystemPartitions: usize, } -windows_core::imp::define_interface!( - IFabricGatewayInformationResult, - IFabricGatewayInformationResult_Vtbl, - 0xa57e7740_fa33_448e_9f35_8bf802a713aa -); -impl core::ops::Deref for IFabricGatewayInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGatewayInformationResult, windows_core::IUnknown); -impl IFabricGatewayInformationResult { - pub unsafe fn get_GatewayInformation( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient2_Impl: IFabricClusterManagementClient_Impl { + fn BeginDeactivateNode( &self, - ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION { - (windows_core::Interface::vtable(self).get_GatewayInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGatewayInformationResult {} -unsafe impl Sync for IFabricGatewayInformationResult {} -#[repr(C)] -pub struct IFabricGatewayInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_GatewayInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetApplicationListResult, - IFabricGetApplicationListResult_Vtbl, - 0xf038c61e_7059_41b6_8dea_d304a2080f46 -); -impl core::ops::Deref for IFabricGetApplicationListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetApplicationListResult, windows_core::IUnknown); -impl IFabricGetApplicationListResult { - pub unsafe fn get_ApplicationList( + nodename: &windows_core::PCWSTR, + intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndDeactivateNode( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ApplicationList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetApplicationListResult {} -unsafe impl Sync for IFabricGetApplicationListResult {} -#[repr(C)] -pub struct IFabricGetApplicationListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ApplicationList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST, -} -windows_core::imp::define_interface!( - IFabricGetApplicationListResult2, - IFabricGetApplicationListResult2_Vtbl, - 0x6637a860_26bc_4f1a_902f_f418fcfe1e51 -); -impl core::ops::Deref for IFabricGetApplicationListResult2 { - type Target = IFabricGetApplicationListResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetApplicationListResult2, - windows_core::IUnknown, - IFabricGetApplicationListResult -); -impl IFabricGetApplicationListResult2 { - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetApplicationListResult2 {} -unsafe impl Sync for IFabricGetApplicationListResult2 {} -#[repr(C)] -pub struct IFabricGetApplicationListResult2_Vtbl { - pub base__: IFabricGetApplicationListResult_Vtbl, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetApplicationLoadInformationResult, - IFabricGetApplicationLoadInformationResult_Vtbl, - 0x38fd0512_7586_4bd5_9616_b7070cf025c0 -); -impl core::ops::Deref for IFabricGetApplicationLoadInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetApplicationLoadInformationResult, - windows_core::IUnknown -); -impl IFabricGetApplicationLoadInformationResult { - pub unsafe fn get_ApplicationLoadInformation( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginActivateNode( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION { - (windows_core::Interface::vtable(self).get_ApplicationLoadInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetApplicationLoadInformationResult {} -unsafe impl Sync for IFabricGetApplicationLoadInformationResult {} -#[repr(C)] -pub struct IFabricGetApplicationLoadInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ApplicationLoadInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetApplicationNameResult, - IFabricGetApplicationNameResult_Vtbl, - 0x258dbcc8_ac9a_47ff_838b_57ff506c73b1 -); -impl core::ops::Deref for IFabricGetApplicationNameResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetApplicationNameResult, windows_core::IUnknown); -impl IFabricGetApplicationNameResult { - pub unsafe fn get_ApplicationName( + nodename: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndActivateNode( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT { - (windows_core::Interface::vtable(self).get_ApplicationName)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetApplicationNameResult {} -unsafe impl Sync for IFabricGetApplicationNameResult {} -#[repr(C)] -pub struct IFabricGetApplicationNameResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ApplicationName: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT, -} -windows_core::imp::define_interface!( - IFabricGetApplicationNetworkListResult, - IFabricGetApplicationNetworkListResult_Vtbl, - 0x4f9d0390_aa08_4dee_ba49_62891eb47c37 -); -impl core::ops::Deref for IFabricGetApplicationNetworkListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetApplicationNetworkListResult, - windows_core::IUnknown -); -impl IFabricGetApplicationNetworkListResult { - pub unsafe fn get_ApplicationNetworkList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginProvisionFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ApplicationNetworkList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetApplicationNetworkListResult {} -unsafe impl Sync for IFabricGetApplicationNetworkListResult {} -#[repr(C)] -pub struct IFabricGetApplicationNetworkListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ApplicationNetworkList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetApplicationTypeListResult, - IFabricGetApplicationTypeListResult_Vtbl, - 0x944f7a70_224e_4191_8dd1_bba46dc88dd2 -); -impl core::ops::Deref for IFabricGetApplicationTypeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetApplicationTypeListResult, - windows_core::IUnknown -); -impl IFabricGetApplicationTypeListResult { - pub unsafe fn get_ApplicationTypeList( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ApplicationTypeList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetApplicationTypeListResult {} -unsafe impl Sync for IFabricGetApplicationTypeListResult {} -#[repr(C)] -pub struct IFabricGetApplicationTypeListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ApplicationTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetApplicationTypePagedListResult, - IFabricGetApplicationTypePagedListResult_Vtbl, - 0x5d8dde9c_05e8_428d_b494_43873d7c2db8 -); -impl core::ops::Deref for IFabricGetApplicationTypePagedListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetApplicationTypePagedListResult, - windows_core::IUnknown -); -impl IFabricGetApplicationTypePagedListResult { - pub unsafe fn get_ApplicationTypePagedList( + codefilepath: &windows_core::PCWSTR, + clustermanifestfilepath: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndProvisionFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ApplicationTypePagedList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetApplicationTypePagedListResult {} -unsafe impl Sync for IFabricGetApplicationTypePagedListResult {} -#[repr(C)] -pub struct IFabricGetApplicationTypePagedListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ApplicationTypePagedList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetClusterHealthChunkResult, - IFabricGetClusterHealthChunkResult_Vtbl, - 0x7fefcf06_c840_4d8a_9cc7_36f080e0e121 -); -impl core::ops::Deref for IFabricGetClusterHealthChunkResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetClusterHealthChunkResult, windows_core::IUnknown); -impl IFabricGetClusterHealthChunkResult { - pub unsafe fn get_ClusterHealthChunk( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginUpgradeFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK { - (windows_core::Interface::vtable(self).get_ClusterHealthChunk)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetClusterHealthChunkResult {} -unsafe impl Sync for IFabricGetClusterHealthChunkResult {} -#[repr(C)] -pub struct IFabricGetClusterHealthChunkResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ClusterHealthChunk: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK, -} -windows_core::imp::define_interface!( - IFabricGetClusterLoadInformationResult, - IFabricGetClusterLoadInformationResult_Vtbl, - 0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf -); -impl core::ops::Deref for IFabricGetClusterLoadInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetClusterLoadInformationResult, - windows_core::IUnknown -); -impl IFabricGetClusterLoadInformationResult { - pub unsafe fn get_ClusterLoadInformation( + upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUpgradeFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION { - (windows_core::Interface::vtable(self).get_ClusterLoadInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetClusterLoadInformationResult {} -unsafe impl Sync for IFabricGetClusterLoadInformationResult {} -#[repr(C)] -pub struct IFabricGetClusterLoadInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ClusterLoadInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetDeployedApplicationListResult, - IFabricGetDeployedApplicationListResult_Vtbl, - 0x5722b789_3936_4c33_9f7a_342967457612 -); -impl core::ops::Deref for IFabricGetDeployedApplicationListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedApplicationListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedApplicationListResult { - pub unsafe fn get_DeployedApplicationList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginGetFabricUpgradeProgress( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedApplicationList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetDeployedApplicationListResult {} -unsafe impl Sync for IFabricGetDeployedApplicationListResult {} -#[repr(C)] -pub struct IFabricGetDeployedApplicationListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedApplicationList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetDeployedApplicationPagedListResult, - IFabricGetDeployedApplicationPagedListResult_Vtbl, - 0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846 -); -impl core::ops::Deref for IFabricGetDeployedApplicationPagedListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedApplicationPagedListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedApplicationPagedListResult { - pub unsafe fn get_DeployedApplicationPagedList( + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetFabricUpgradeProgress( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedApplicationPagedList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetDeployedApplicationPagedListResult {} -unsafe impl Sync for IFabricGetDeployedApplicationPagedListResult {} -#[repr(C)] -pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetDeployedCodePackageListResult, - IFabricGetDeployedCodePackageListResult_Vtbl, - 0x3f390652_c0dc_4919_8a7f_8ae1e827de0c -); -impl core::ops::Deref for IFabricGetDeployedCodePackageListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedCodePackageListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedCodePackageListResult { - pub unsafe fn get_DeployedCodePackageList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginMoveNextFabricUpgradeDomain( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedCodePackageList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetDeployedCodePackageListResult {} -unsafe impl Sync for IFabricGetDeployedCodePackageListResult {} -#[repr(C)] -pub struct IFabricGetDeployedCodePackageListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedCodePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetDeployedNetworkCodePackageListResult, - IFabricGetDeployedNetworkCodePackageListResult_Vtbl, - 0x6586d264_a96e_4f46_9388_189de5d61d6d -); -impl core::ops::Deref for IFabricGetDeployedNetworkCodePackageListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedNetworkCodePackageListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedNetworkCodePackageListResult { - pub unsafe fn get_DeployedNetworkCodePackageList( + progress: windows_core::Ref<'_, IFabricUpgradeProgressResult2>, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMoveNextFabricUpgradeDomain( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedNetworkCodePackageList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetDeployedNetworkCodePackageListResult {} -unsafe impl Sync for IFabricGetDeployedNetworkCodePackageListResult {} -#[repr(C)] -pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetDeployedNetworkListResult, - IFabricGetDeployedNetworkListResult_Vtbl, - 0x347f5d8c_1abd_48e1_a7d1_9083556dafd3 -); -impl core::ops::Deref for IFabricGetDeployedNetworkListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedNetworkListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedNetworkListResult { - pub unsafe fn get_DeployedNetworkList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginMoveNextFabricUpgradeDomain2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedNetworkList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetDeployedNetworkListResult {} -unsafe impl Sync for IFabricGetDeployedNetworkListResult {} -#[repr(C)] -pub struct IFabricGetDeployedNetworkListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedNetworkList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetDeployedReplicaListResult, - IFabricGetDeployedReplicaListResult_Vtbl, - 0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5 -); -impl core::ops::Deref for IFabricGetDeployedReplicaListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedReplicaListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedReplicaListResult { - pub unsafe fn get_DeployedReplicaList( + nextupgradedomain: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMoveNextFabricUpgradeDomain2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedReplicaList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetDeployedReplicaListResult {} -unsafe impl Sync for IFabricGetDeployedReplicaListResult {} -#[repr(C)] -pub struct IFabricGetDeployedReplicaListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedReplicaList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetDeployedServicePackageListResult, - IFabricGetDeployedServicePackageListResult_Vtbl, - 0x65851388_0421_4107_977b_39f4e15440d4 -); -impl core::ops::Deref for IFabricGetDeployedServicePackageListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedServicePackageListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedServicePackageListResult { - pub unsafe fn get_DeployedServicePackageList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginUnprovisionFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedServicePackageList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetDeployedServicePackageListResult {} -unsafe impl Sync for IFabricGetDeployedServicePackageListResult {} -#[repr(C)] -pub struct IFabricGetDeployedServicePackageListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedServicePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetDeployedServiceReplicaDetailResult, - IFabricGetDeployedServiceReplicaDetailResult_Vtbl, - 0x6d9d355e_89cf_4928_b758_b11ca4664fbe -); -impl core::ops::Deref for IFabricGetDeployedServiceReplicaDetailResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedServiceReplicaDetailResult, - windows_core::IUnknown -); -impl IFabricGetDeployedServiceReplicaDetailResult { - pub unsafe fn get_ReplicaDetail( + codeversion: &windows_core::PCWSTR, + configversion: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUnprovisionFabric( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - (windows_core::Interface::vtable(self).get_ReplicaDetail)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetDeployedServiceReplicaDetailResult {} -unsafe impl Sync for IFabricGetDeployedServiceReplicaDetailResult {} -#[repr(C)] -pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ReplicaDetail :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , } -windows_core::imp::define_interface!( - IFabricGetDeployedServiceTypeListResult, - IFabricGetDeployedServiceTypeListResult_Vtbl, - 0xdba68c7a_3f77_49bb_b611_ff94df062b8d -); -impl core::ops::Deref for IFabricGetDeployedServiceTypeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetDeployedServiceTypeListResult, - windows_core::IUnknown -); -impl IFabricGetDeployedServiceTypeListResult { - pub unsafe fn get_DeployedServiceTypeList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginGetClusterManifest( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_DeployedServiceTypeList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetDeployedServiceTypeListResult {} -unsafe impl Sync for IFabricGetDeployedServiceTypeListResult {} -#[repr(C)] -pub struct IFabricGetDeployedServiceTypeListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_DeployedServiceTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetNetworkApplicationListResult, - IFabricGetNetworkApplicationListResult_Vtbl, - 0xad1f51ff_e244_498e_9f72_609b01124b84 -); -impl core::ops::Deref for IFabricGetNetworkApplicationListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetNetworkApplicationListResult, - windows_core::IUnknown -); -impl IFabricGetNetworkApplicationListResult { - pub unsafe fn get_NetworkApplicationList( + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetClusterManifest( &self, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_NetworkApplicationList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetNetworkApplicationListResult {} -unsafe impl Sync for IFabricGetNetworkApplicationListResult {} -#[repr(C)] -pub struct IFabricGetNetworkApplicationListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_NetworkApplicationList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , } -windows_core::imp::define_interface!( - IFabricGetNetworkListResult, - IFabricGetNetworkListResult_Vtbl, - 0xbd777a0f_2020_40bb_8f23_8756649cce47 -); -impl core::ops::Deref for IFabricGetNetworkListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetNetworkListResult, windows_core::IUnknown); -impl IFabricGetNetworkListResult { - pub unsafe fn get_NetworkList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginRecoverPartition( &self, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_NetworkList)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetNetworkListResult {} -unsafe impl Sync for IFabricGetNetworkListResult {} -#[repr(C)] -pub struct IFabricGetNetworkListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NetworkList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetNetworkNodeListResult, - IFabricGetNetworkNodeListResult_Vtbl, - 0x3ba780e9_58eb_478d_bc89_42c89e19d083 -); -impl core::ops::Deref for IFabricGetNetworkNodeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetNetworkNodeListResult, windows_core::IUnknown); -impl IFabricGetNetworkNodeListResult { - pub unsafe fn get_NetworkNodeList( + partitionid: &windows_core::GUID, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRecoverPartition( &self, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_NetworkNodeList)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetNetworkNodeListResult {} -unsafe impl Sync for IFabricGetNetworkNodeListResult {} -#[repr(C)] -pub struct IFabricGetNetworkNodeListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NetworkNodeList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetNodeListResult, - IFabricGetNodeListResult_Vtbl, - 0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe -); -impl core::ops::Deref for IFabricGetNodeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetNodeListResult, windows_core::IUnknown); -impl IFabricGetNodeListResult { - pub unsafe fn get_NodeList(&self) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_NodeList)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricGetNodeListResult {} -unsafe impl Sync for IFabricGetNodeListResult {} -#[repr(C)] -pub struct IFabricGetNodeListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NodeList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST, -} -windows_core::imp::define_interface!( - IFabricGetNodeListResult2, - IFabricGetNodeListResult2_Vtbl, - 0x4a0f2da7_f851_44e5_8e12_aa521076097a -); -impl core::ops::Deref for IFabricGetNodeListResult2 { - type Target = IFabricGetNodeListResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetNodeListResult2, - windows_core::IUnknown, - IFabricGetNodeListResult -); -impl IFabricGetNodeListResult2 { - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetNodeListResult2 {} -unsafe impl Sync for IFabricGetNodeListResult2 {} -#[repr(C)] -pub struct IFabricGetNodeListResult2_Vtbl { - pub base__: IFabricGetNodeListResult_Vtbl, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetNodeLoadInformationResult, - IFabricGetNodeLoadInformationResult_Vtbl, - 0x4332eb3a_aed6_86fe_c2fa_653123dea09b -); -impl core::ops::Deref for IFabricGetNodeLoadInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetNodeLoadInformationResult, - windows_core::IUnknown -); -impl IFabricGetNodeLoadInformationResult { - pub unsafe fn get_NodeLoadInformation( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginRecoverServicePartitions( &self, - ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION { - (windows_core::Interface::vtable(self).get_NodeLoadInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetNodeLoadInformationResult {} -unsafe impl Sync for IFabricGetNodeLoadInformationResult {} -#[repr(C)] -pub struct IFabricGetNodeLoadInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NodeLoadInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetPartitionListResult, - IFabricGetPartitionListResult_Vtbl, - 0xafc1266c_967b_4769_9f8a_b249c5887ee6 -); -impl core::ops::Deref for IFabricGetPartitionListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetPartitionListResult, windows_core::IUnknown); -impl IFabricGetPartitionListResult { - pub unsafe fn get_PartitionList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_PartitionList)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetPartitionListResult {} -unsafe impl Sync for IFabricGetPartitionListResult {} -#[repr(C)] -pub struct IFabricGetPartitionListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_PartitionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetPartitionListResult2, - IFabricGetPartitionListResult2_Vtbl, - 0xb131b99a_d251_47b2_9d08_24ddd6793206 -); -impl core::ops::Deref for IFabricGetPartitionListResult2 { - type Target = IFabricGetPartitionListResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetPartitionListResult2, - windows_core::IUnknown, - IFabricGetPartitionListResult -); -impl IFabricGetPartitionListResult2 { - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetPartitionListResult2 {} -unsafe impl Sync for IFabricGetPartitionListResult2 {} -#[repr(C)] -pub struct IFabricGetPartitionListResult2_Vtbl { - pub base__: IFabricGetPartitionListResult_Vtbl, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetPartitionLoadInformationResult, - IFabricGetPartitionLoadInformationResult_Vtbl, - 0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7 -); -impl core::ops::Deref for IFabricGetPartitionLoadInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetPartitionLoadInformationResult, - windows_core::IUnknown -); -impl IFabricGetPartitionLoadInformationResult { - pub unsafe fn get_PartitionLoadInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION { - (windows_core::Interface::vtable(self).get_PartitionLoadInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetPartitionLoadInformationResult {} -unsafe impl Sync for IFabricGetPartitionLoadInformationResult {} -#[repr(C)] -pub struct IFabricGetPartitionLoadInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_PartitionLoadInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetProvisionedCodeVersionListResult, - IFabricGetProvisionedCodeVersionListResult_Vtbl, - 0xd042bdb6_4364_4818_b395_0e6b1a22cb11 -); -impl core::ops::Deref for IFabricGetProvisionedCodeVersionListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetProvisionedCodeVersionListResult, - windows_core::IUnknown -); -impl IFabricGetProvisionedCodeVersionListResult { - pub unsafe fn get_ProvisionedCodeVersionList( - &self, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ProvisionedCodeVersionList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetProvisionedCodeVersionListResult {} -unsafe impl Sync for IFabricGetProvisionedCodeVersionListResult {} -#[repr(C)] -pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetProvisionedConfigVersionListResult, - IFabricGetProvisionedConfigVersionListResult_Vtbl, - 0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e -); -impl core::ops::Deref for IFabricGetProvisionedConfigVersionListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetProvisionedConfigVersionListResult, - windows_core::IUnknown -); -impl IFabricGetProvisionedConfigVersionListResult { - pub unsafe fn get_ProvisionedConfigVersionList( + servicename: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRecoverServicePartitions( &self, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ProvisionedConfigVersionList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetProvisionedConfigVersionListResult {} -unsafe impl Sync for IFabricGetProvisionedConfigVersionListResult {} -#[repr(C)] -pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetRepairTaskListResult, - IFabricGetRepairTaskListResult_Vtbl, - 0x576b2462_5f69_4351_87c7_3ec2d1654a22 -); -impl core::ops::Deref for IFabricGetRepairTaskListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetRepairTaskListResult, windows_core::IUnknown); -impl IFabricGetRepairTaskListResult { - pub unsafe fn get_Tasks(&self) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST { - (windows_core::Interface::vtable(self).get_Tasks)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricGetRepairTaskListResult {} -unsafe impl Sync for IFabricGetRepairTaskListResult {} -#[repr(C)] -pub struct IFabricGetRepairTaskListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Tasks: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST, -} -windows_core::imp::define_interface!( - IFabricGetReplicaListResult, - IFabricGetReplicaListResult_Vtbl, - 0xe00d3761_3ac5_407d_a04f_1b59486217cf -); -impl core::ops::Deref for IFabricGetReplicaListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetReplicaListResult, windows_core::IUnknown); -impl IFabricGetReplicaListResult { - pub unsafe fn get_ReplicaList( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginRecoverSystemPartitions( &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ReplicaList)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetReplicaListResult {} -unsafe impl Sync for IFabricGetReplicaListResult {} -#[repr(C)] -pub struct IFabricGetReplicaListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ReplicaList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetReplicaListResult2, - IFabricGetReplicaListResult2_Vtbl, - 0x0bc12f86_c157_4c0d_b274_01fb09145934 -); -impl core::ops::Deref for IFabricGetReplicaListResult2 { - type Target = IFabricGetReplicaListResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetReplicaListResult2, - windows_core::IUnknown, - IFabricGetReplicaListResult -); -impl IFabricGetReplicaListResult2 { - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetReplicaListResult2 {} -unsafe impl Sync for IFabricGetReplicaListResult2 {} -#[repr(C)] -pub struct IFabricGetReplicaListResult2_Vtbl { - pub base__: IFabricGetReplicaListResult_Vtbl, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetReplicaLoadInformationResult, - IFabricGetReplicaLoadInformationResult_Vtbl, - 0xe4190ca0_225c_11e4_8c21_0800200c9a66 -); -impl core::ops::Deref for IFabricGetReplicaLoadInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetReplicaLoadInformationResult, - windows_core::IUnknown -); -impl IFabricGetReplicaLoadInformationResult { - pub unsafe fn get_ReplicaLoadInformation( + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRecoverSystemPartitions( &self, - ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION { - (windows_core::Interface::vtable(self).get_ReplicaLoadInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetReplicaLoadInformationResult {} -unsafe impl Sync for IFabricGetReplicaLoadInformationResult {} -#[repr(C)] -pub struct IFabricGetReplicaLoadInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ReplicaLoadInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricGetRollingUpgradeMonitoringPolicyResult, - IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl, - 0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9 -); -impl core::ops::Deref for IFabricGetRollingUpgradeMonitoringPolicyResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; } -windows_core::imp::interface_hierarchy!( - IFabricGetRollingUpgradeMonitoringPolicyResult, - windows_core::IUnknown -); -impl IFabricGetRollingUpgradeMonitoringPolicyResult { - pub unsafe fn get_Policy( - &self, - ) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - (windows_core::Interface::vtable(self).get_Policy)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricGetRollingUpgradeMonitoringPolicyResult {} -unsafe impl Sync for IFabricGetRollingUpgradeMonitoringPolicyResult {} -#[repr(C)] -pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_Policy :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_ROLLING_UPGRADE_MONITORING_POLICY , } -windows_core::imp::define_interface!( - IFabricGetServiceGroupMemberListResult, - IFabricGetServiceGroupMemberListResult_Vtbl, - 0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166 -); -impl core::ops::Deref for IFabricGetServiceGroupMemberListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetServiceGroupMemberListResult, - windows_core::IUnknown -); -impl IFabricGetServiceGroupMemberListResult { - pub unsafe fn get_ServiceGroupMemberList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ServiceGroupMemberList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetServiceGroupMemberListResult {} -unsafe impl Sync for IFabricGetServiceGroupMemberListResult {} -#[repr(C)] -pub struct IFabricGetServiceGroupMemberListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetServiceGroupMemberTypeListResult, - IFabricGetServiceGroupMemberTypeListResult_Vtbl, - 0x5e572763_29a9_463a_b602_1332c0f60e6b -); -impl core::ops::Deref for IFabricGetServiceGroupMemberTypeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetServiceGroupMemberTypeListResult, - windows_core::IUnknown -); -impl IFabricGetServiceGroupMemberTypeListResult { - pub unsafe fn get_ServiceGroupMemberTypeList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ServiceGroupMemberTypeList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetServiceGroupMemberTypeListResult {} -unsafe impl Sync for IFabricGetServiceGroupMemberTypeListResult {} -#[repr(C)] -pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , } -windows_core::imp::define_interface!( - IFabricGetServiceListResult, - IFabricGetServiceListResult_Vtbl, - 0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185 -); -impl core::ops::Deref for IFabricGetServiceListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetServiceListResult, windows_core::IUnknown); -impl IFabricGetServiceListResult { - pub unsafe fn get_ServiceList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ServiceList)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetServiceListResult {} -unsafe impl Sync for IFabricGetServiceListResult {} -#[repr(C)] -pub struct IFabricGetServiceListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ServiceList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST, -} -windows_core::imp::define_interface!( - IFabricGetServiceListResult2, - IFabricGetServiceListResult2_Vtbl, - 0x30263683_4b25_4ec3_86d7_94ed86e7a8bf -); -impl core::ops::Deref for IFabricGetServiceListResult2 { - type Target = IFabricGetServiceListResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetServiceListResult2, - windows_core::IUnknown, - IFabricGetServiceListResult -); -impl IFabricGetServiceListResult2 { - pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { - (windows_core::Interface::vtable(self).get_PagingStatus)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetServiceListResult2 {} -unsafe impl Sync for IFabricGetServiceListResult2 {} -#[repr(C)] -pub struct IFabricGetServiceListResult2_Vtbl { - pub base__: IFabricGetServiceListResult_Vtbl, - pub get_PagingStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, -} -windows_core::imp::define_interface!( - IFabricGetServiceNameResult, - IFabricGetServiceNameResult_Vtbl, - 0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c -); -impl core::ops::Deref for IFabricGetServiceNameResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetServiceNameResult, windows_core::IUnknown); -impl IFabricGetServiceNameResult { - pub unsafe fn get_ServiceName( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT { - (windows_core::Interface::vtable(self).get_ServiceName)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricGetServiceNameResult {} -unsafe impl Sync for IFabricGetServiceNameResult {} -#[repr(C)] -pub struct IFabricGetServiceNameResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ServiceName: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT, -} -windows_core::imp::define_interface!( - IFabricGetServiceTypeListResult, - IFabricGetServiceTypeListResult_Vtbl, - 0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b -); -impl core::ops::Deref for IFabricGetServiceTypeListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetServiceTypeListResult, windows_core::IUnknown); -impl IFabricGetServiceTypeListResult { - pub unsafe fn get_ServiceTypeList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_ServiceTypeList)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetServiceTypeListResult {} -unsafe impl Sync for IFabricGetServiceTypeListResult {} -#[repr(C)] -pub struct IFabricGetServiceTypeListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ServiceTypeList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST, -} -windows_core::imp::define_interface!( - IFabricGetUnplacedReplicaInformationResult, - IFabricGetUnplacedReplicaInformationResult_Vtbl, - 0x9d86a611_3fd3_451b_9495_6a831f417473 -); -impl core::ops::Deref for IFabricGetUnplacedReplicaInformationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricGetUnplacedReplicaInformationResult, - windows_core::IUnknown -); -impl IFabricGetUnplacedReplicaInformationResult { - pub unsafe fn get_UnplacedReplicaInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION { - (windows_core::Interface::vtable(self).get_UnplacedReplicaInformation)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetUnplacedReplicaInformationResult {} -unsafe impl Sync for IFabricGetUnplacedReplicaInformationResult {} -#[repr(C)] -pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_UnplacedReplicaInformation: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION, -} -windows_core::imp::define_interface!( - IFabricHealthClient, - IFabricHealthClient_Vtbl, - 0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43 -); -impl core::ops::Deref for IFabricHealthClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricHealthClient, windows_core::IUnknown); -impl IFabricHealthClient { - pub unsafe fn ReportHealth( - &self, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportHealth)( - windows_core::Interface::as_raw(self), - healthreport, - ) - .ok() - } - pub unsafe fn BeginGetClusterHealth( - &self, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterHealth)( - windows_core::Interface::as_raw(self), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetNodeHealth( - &self, - nodename: P0, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNodeHealth)( - windows_core::Interface::as_raw(self), - nodename.param().abi(), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNodeHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient2_Vtbl { + pub const fn new() -> Self { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationHealth( - &self, - applicationname: P0, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationHealth)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetServiceHealth( - &self, - servicename: P0, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceHealth)( - windows_core::Interface::as_raw(self), - servicename.param().abi(), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetPartitionHealth( - &self, - partitionid: windows_core::GUID, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionHealth)( - windows_core::Interface::as_raw(self), - core::mem::transmute(partitionid), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetReplicaHealth( - &self, - partitionid: windows_core::GUID, - replicaid: i64, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetReplicaHealth)( - windows_core::Interface::as_raw(self), - core::mem::transmute(partitionid), - replicaid, - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetReplicaHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReplicaHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedApplicationHealth( - &self, - applicationname: P0, - nodename: P1, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - nodename.param().abi(), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedApplicationHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedServicePackageHealth( - &self, - applicationname: P0, - servicemanifestname: P1, - nodename: P2, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - servicemanifestname.param().abi(), - nodename.param().abi(), - healthpolicy, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedServicePackageHealth( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricHealthClient {} -unsafe impl Sync for IFabricHealthClient {} -#[repr(C)] -pub struct IFabricHealthClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub ReportHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_REPORT, - ) -> windows_core::HRESULT, - pub BeginGetClusterHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNodeHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNodeHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetReplicaHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - i64, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetReplicaHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedServicePackageHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndGetDeployedServicePackageHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricHealthClient2, - IFabricHealthClient2_Vtbl, - 0x66cbc014_d7b3_4f81_a498_e580feb9a1f5 -); -impl core::ops::Deref for IFabricHealthClient2 { - type Target = IFabricHealthClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricHealthClient2, - windows_core::IUnknown, - IFabricHealthClient -); -impl IFabricHealthClient2 { - pub unsafe fn BeginGetClusterHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetNodeHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNodeHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNodeHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetServiceHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetPartitionHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetReplicaHealth2( - &self, - querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetReplicaHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetReplicaHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReplicaHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedApplicationHealth2( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedApplicationHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedServicePackageHealth2( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth2)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedServicePackageHealth2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricHealthClient2 {} -unsafe impl Sync for IFabricHealthClient2 {} -#[repr(C)] -pub struct IFabricHealthClient2_Vtbl { - pub base__: IFabricHealthClient_Vtbl, - pub BeginGetClusterHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNodeHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNodeHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetReplicaHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetReplicaHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedServicePackageHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndGetDeployedServicePackageHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricHealthClient3, - IFabricHealthClient3_Vtbl, - 0xdd3e4497_3373_458d_ad22_c88ebd27493e -); -impl core::ops::Deref for IFabricHealthClient3 { - type Target = IFabricHealthClient2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricHealthClient3, - windows_core::IUnknown, - IFabricHealthClient, - IFabricHealthClient2 -); -impl IFabricHealthClient3 { - pub unsafe fn BeginGetClusterHealthChunk( - &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterHealthChunk)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterHealthChunk( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterHealthChunk)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricHealthClient3 {} -unsafe impl Sync for IFabricHealthClient3 {} -#[repr(C)] -pub struct IFabricHealthClient3_Vtbl { - pub base__: IFabricHealthClient2_Vtbl, - pub BeginGetClusterHealthChunk: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterHealthChunk: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricHealthClient4, - IFabricHealthClient4_Vtbl, - 0x9f0401af_4909_404f_8696_0a71bd753e98 -); -impl core::ops::Deref for IFabricHealthClient4 { - type Target = IFabricHealthClient3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricHealthClient4, - windows_core::IUnknown, - IFabricHealthClient, - IFabricHealthClient2, - IFabricHealthClient3 -); -impl IFabricHealthClient4 { - pub unsafe fn ReportHealth2( - &self, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportHealth2)( - windows_core::Interface::as_raw(self), - healthreport, - sendoptions, - ) - .ok() - } -} -unsafe impl Send for IFabricHealthClient4 {} -unsafe impl Sync for IFabricHealthClient4 {} -#[repr(C)] -pub struct IFabricHealthClient4_Vtbl { - pub base__: IFabricHealthClient3_Vtbl, - pub ReportHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_REPORT, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricInfrastructureServiceClient, - IFabricInfrastructureServiceClient_Vtbl, - 0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49 -); -impl core::ops::Deref for IFabricInfrastructureServiceClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricInfrastructureServiceClient, windows_core::IUnknown); -impl IFabricInfrastructureServiceClient { - pub unsafe fn BeginInvokeInfrastructureCommand( - &self, - servicename: P0, - command: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginInvokeInfrastructureCommand)( - windows_core::Interface::as_raw(self), - servicename.param().abi(), - command.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndInvokeInfrastructureCommand( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndInvokeInfrastructureCommand)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginInvokeInfrastructureQuery( - &self, - servicename: P0, - command: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginInvokeInfrastructureQuery)( - windows_core::Interface::as_raw(self), - servicename.param().abi(), - command.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndInvokeInfrastructureQuery( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndInvokeInfrastructureQuery)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricInfrastructureServiceClient {} -unsafe impl Sync for IFabricInfrastructureServiceClient {} -#[repr(C)] -pub struct IFabricInfrastructureServiceClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginInvokeInfrastructureCommand: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndInvokeInfrastructureCommand: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginInvokeInfrastructureQuery: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndInvokeInfrastructureQuery: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricMovePrimaryResult, - IFabricMovePrimaryResult_Vtbl, - 0x66ac03f5_e61c_47a2_80fe_49309a02c92c -); -impl core::ops::Deref for IFabricMovePrimaryResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricMovePrimaryResult, windows_core::IUnknown); -impl IFabricMovePrimaryResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricMovePrimaryResult {} -unsafe impl Sync for IFabricMovePrimaryResult {} -#[repr(C)] -pub struct IFabricMovePrimaryResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT, -} -windows_core::imp::define_interface!( - IFabricMoveSecondaryResult, - IFabricMoveSecondaryResult_Vtbl, - 0x60fe896a_b690_4abb_94fd_86c615d29bee -); -impl core::ops::Deref for IFabricMoveSecondaryResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricMoveSecondaryResult, windows_core::IUnknown); -impl IFabricMoveSecondaryResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricMoveSecondaryResult {} -unsafe impl Sync for IFabricMoveSecondaryResult {} -#[repr(C)] -pub struct IFabricMoveSecondaryResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT, -} -windows_core::imp::define_interface!( - IFabricNameEnumerationResult, - IFabricNameEnumerationResult_Vtbl, - 0x557e8105_f4f4_4fd3_9d21_075f34e2f98c -); -impl core::ops::Deref for IFabricNameEnumerationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricNameEnumerationResult, windows_core::IUnknown); -impl IFabricNameEnumerationResult { - pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { - (windows_core::Interface::vtable(self).get_EnumerationStatus)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn GetNames( - &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetNames)( - windows_core::Interface::as_raw(self), - itemcount, - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricNameEnumerationResult {} -unsafe impl Sync for IFabricNameEnumerationResult {} -#[repr(C)] -pub struct IFabricNameEnumerationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_EnumerationStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS, - pub GetNames: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_URI, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricNetworkManagementClient, - IFabricNetworkManagementClient_Vtbl, - 0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398 -); -impl core::ops::Deref for IFabricNetworkManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricNetworkManagementClient, windows_core::IUnknown); -impl IFabricNetworkManagementClient { - pub unsafe fn BeginCreateNetwork( - &self, - networkname: P0, - description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateNetwork)( - windows_core::Interface::as_raw(self), - networkname.param().abi(), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateNetwork(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateNetwork)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteNetwork( - &self, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteNetwork)( - windows_core::Interface::as_raw(self), - deletedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteNetwork(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteNetwork)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNetworkList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNetworkList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNetworkList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetNetworkApplicationList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNetworkApplicationList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNetworkApplicationList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNetworkApplicationList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetNetworkNodeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNetworkNodeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNetworkNodeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNetworkNodeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationNetworkList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationNetworkList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationNetworkList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedNetworkList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedNetworkList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedNetworkList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedNetworkCodePackageList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedNetworkCodePackageList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedNetworkCodePackageList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedNetworkCodePackageList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricNetworkManagementClient {} -unsafe impl Sync for IFabricNetworkManagementClient {} -#[repr(C)] -pub struct IFabricNetworkManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginCreateNetwork: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateNetwork: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeleteNetwork: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteNetwork: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNetworkApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNetworkApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNetworkNodeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNetworkNodeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedNetworkList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedNetworkCodePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndGetDeployedNetworkCodePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricNodeHealthResult, - IFabricNodeHealthResult_Vtbl, - 0xe461f70b_51b8_4b73_9f35_e38e5ac68719 -); -impl core::ops::Deref for IFabricNodeHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricNodeHealthResult, windows_core::IUnknown); -impl IFabricNodeHealthResult { - pub unsafe fn get_NodeHealth(&self) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH { - (windows_core::Interface::vtable(self).get_NodeHealth)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricNodeHealthResult {} -unsafe impl Sync for IFabricNodeHealthResult {} -#[repr(C)] -pub struct IFabricNodeHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NodeHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NODE_HEALTH, -} -windows_core::imp::define_interface!( - IFabricNodeTransitionProgressResult, - IFabricNodeTransitionProgressResult_Vtbl, - 0x68a98626_6a1b_4dd8_ad93_74c0936e86aa -); -impl core::ops::Deref for IFabricNodeTransitionProgressResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricNodeTransitionProgressResult, - windows_core::IUnknown -); -impl IFabricNodeTransitionProgressResult { - pub unsafe fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS { - (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricNodeTransitionProgressResult {} -unsafe impl Sync for IFabricNodeTransitionProgressResult {} -#[repr(C)] -pub struct IFabricNodeTransitionProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricOrchestrationUpgradeStatusResult, - IFabricOrchestrationUpgradeStatusResult_Vtbl, - 0x95a56e4a_490d_445e_865c_ef0a62f15504 -); -impl core::ops::Deref for IFabricOrchestrationUpgradeStatusResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricOrchestrationUpgradeStatusResult, - windows_core::IUnknown -); -impl IFabricOrchestrationUpgradeStatusResult { - pub unsafe fn get_Progress( - &self, - ) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricOrchestrationUpgradeStatusResult {} -unsafe impl Sync for IFabricOrchestrationUpgradeStatusResult {} -#[repr(C)] -pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricPartitionDataLossProgressResult, - IFabricPartitionDataLossProgressResult_Vtbl, - 0x614921e6_75f1_44e7_9107_ab88819136b8 -); -impl core::ops::Deref for IFabricPartitionDataLossProgressResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricPartitionDataLossProgressResult, - windows_core::IUnknown -); -impl IFabricPartitionDataLossProgressResult { - pub unsafe fn get_Progress( - &self, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS { - (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricPartitionDataLossProgressResult {} -unsafe impl Sync for IFabricPartitionDataLossProgressResult {} -#[repr(C)] -pub struct IFabricPartitionDataLossProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricPartitionHealthResult, - IFabricPartitionHealthResult_Vtbl, - 0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576 -); -impl core::ops::Deref for IFabricPartitionHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPartitionHealthResult, windows_core::IUnknown); -impl IFabricPartitionHealthResult { - pub unsafe fn get_PartitionHealth(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH { - (windows_core::Interface::vtable(self).get_PartitionHealth)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricPartitionHealthResult {} -unsafe impl Sync for IFabricPartitionHealthResult {} -#[repr(C)] -pub struct IFabricPartitionHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_PartitionHealth: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH, -} -windows_core::imp::define_interface!( - IFabricPartitionQuorumLossProgressResult, - IFabricPartitionQuorumLossProgressResult_Vtbl, - 0x36d8e378_3706_403d_8d99_2afd1a120687 -); -impl core::ops::Deref for IFabricPartitionQuorumLossProgressResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricPartitionQuorumLossProgressResult, - windows_core::IUnknown -); -impl IFabricPartitionQuorumLossProgressResult { - pub unsafe fn get_Progress( - &self, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricPartitionQuorumLossProgressResult {} -unsafe impl Sync for IFabricPartitionQuorumLossProgressResult {} -#[repr(C)] -pub struct IFabricPartitionQuorumLossProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricPartitionRestartProgressResult, - IFabricPartitionRestartProgressResult_Vtbl, - 0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61 -); -impl core::ops::Deref for IFabricPartitionRestartProgressResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricPartitionRestartProgressResult, - windows_core::IUnknown -); -impl IFabricPartitionRestartProgressResult { - pub unsafe fn get_Progress( - &self, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS { - (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricPartitionRestartProgressResult {} -unsafe impl Sync for IFabricPartitionRestartProgressResult {} -#[repr(C)] -pub struct IFabricPartitionRestartProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS, -} -windows_core::imp::define_interface!( - IFabricPropertyBatchResult, - IFabricPropertyBatchResult_Vtbl, - 0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe -); -impl core::ops::Deref for IFabricPropertyBatchResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPropertyBatchResult, windows_core::IUnknown); -impl IFabricPropertyBatchResult { - pub unsafe fn GetProperty( - &self, - operationindexinrequest: u32, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)( - windows_core::Interface::as_raw(self), - operationindexinrequest, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricPropertyBatchResult {} -unsafe impl Sync for IFabricPropertyBatchResult {} -#[repr(C)] -pub struct IFabricPropertyBatchResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub GetProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricPropertyEnumerationResult, - IFabricPropertyEnumerationResult_Vtbl, - 0xa42da40d_a637_478d_83f3_2813871234cf -); -impl core::ops::Deref for IFabricPropertyEnumerationResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPropertyEnumerationResult, windows_core::IUnknown); -impl IFabricPropertyEnumerationResult { - pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { - (windows_core::Interface::vtable(self).get_EnumerationStatus)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_PropertyCount(&self) -> u32 { - (windows_core::Interface::vtable(self).get_PropertyCount)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn GetProperty( - &self, - index: u32, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetProperty)( - windows_core::Interface::as_raw(self), - index, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricPropertyEnumerationResult {} -unsafe impl Sync for IFabricPropertyEnumerationResult {} -#[repr(C)] -pub struct IFabricPropertyEnumerationResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_EnumerationStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS, - pub get_PropertyCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, - pub GetProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricPropertyManagementClient, - IFabricPropertyManagementClient_Vtbl, - 0x26e58816_b5d5_4f08_9770_dbf0410c99d6 -); -impl core::ops::Deref for IFabricPropertyManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPropertyManagementClient, windows_core::IUnknown); -impl IFabricPropertyManagementClient { - pub unsafe fn BeginCreateName( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateName)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateName(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateName)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteName( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteName)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteName(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteName)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginNameExists( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginNameExists)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndNameExists(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndNameExists)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginEnumerateSubNames( - &self, - name: P0, - previousresult: P1, - recursive: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginEnumerateSubNames)( - windows_core::Interface::as_raw(self), - name.param().abi(), - previousresult.param().abi(), - recursive.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndEnumerateSubNames( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndEnumerateSubNames)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginPutPropertyBinary( - &self, - name: P0, - propertyname: P1, - data: &[u8], - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutPropertyBinary)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - data.len().try_into().unwrap(), - core::mem::transmute(data.as_ptr()), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutPropertyBinary(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutPropertyBinary)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyInt64( - &self, - name: P0, - propertyname: P1, - data: i64, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutPropertyInt64)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - data, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutPropertyInt64(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutPropertyInt64)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyDouble( - &self, - name: P0, - propertyname: P1, - data: f64, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutPropertyDouble)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - data, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutPropertyDouble(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutPropertyDouble)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyWString( - &self, - name: P0, - propertyname: P1, - data: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutPropertyWString)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - data.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutPropertyWString(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutPropertyWString)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyGuid( - &self, - name: P0, - propertyname: P1, - data: *const windows_core::GUID, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutPropertyGuid)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - data, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutPropertyGuid(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutPropertyGuid)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteProperty( - &self, - name: P0, - propertyname: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteProperty)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteProperty(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteProperty)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPropertyMetadata( - &self, - name: P0, - propertyname: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPropertyMetadata)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPropertyMetadata( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPropertyMetadata)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetProperty( - &self, - name: P0, - propertyname: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetProperty)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetProperty( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetProperty)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginSubmitPropertyBatch( - &self, - name: P0, - operations: &[super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION], - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSubmitPropertyBatch)( - windows_core::Interface::as_raw(self), - name.param().abi(), - operations.len().try_into().unwrap(), - core::mem::transmute(operations.as_ptr()), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndSubmitPropertyBatch( - &self, - context: P0, - failedoperationindexinrequest: *mut u32, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndSubmitPropertyBatch)( - windows_core::Interface::as_raw(self), - context.param().abi(), - failedoperationindexinrequest, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginEnumerateProperties( - &self, - name: P0, - includevalues: P1, - previousresult: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginEnumerateProperties)( - windows_core::Interface::as_raw(self), - name.param().abi(), - includevalues.param().abi(), - previousresult.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndEnumerateProperties( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndEnumerateProperties)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricPropertyManagementClient {} -unsafe impl Sync for IFabricPropertyManagementClient {} -#[repr(C)] -pub struct IFabricPropertyManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginCreateName: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeleteName: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginNameExists: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndNameExists: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u8, - ) -> windows_core::HRESULT, - pub BeginEnumerateSubNames: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *mut core::ffi::c_void, - windows::Win32::Foundation::BOOLEAN, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndEnumerateSubNames: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginPutPropertyBinary: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *const u8, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutPropertyBinary: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginPutPropertyInt64: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - i64, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutPropertyInt64: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginPutPropertyDouble: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - f64, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutPropertyDouble: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginPutPropertyWString: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutPropertyWString: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginPutPropertyGuid: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - *const windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutPropertyGuid: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeleteProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPropertyMetadata: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPropertyMetadata: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetProperty: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginSubmitPropertyBatch: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndSubmitPropertyBatch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u32, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginEnumerateProperties: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - windows::Win32::Foundation::BOOLEAN, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndEnumerateProperties: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricPropertyManagementClient2, - IFabricPropertyManagementClient2_Vtbl, - 0x04991c28_3f9d_4a49_9322_a56d308965fd -); -impl core::ops::Deref for IFabricPropertyManagementClient2 { - type Target = IFabricPropertyManagementClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricPropertyManagementClient2, - windows_core::IUnknown, - IFabricPropertyManagementClient -); -impl IFabricPropertyManagementClient2 { - pub unsafe fn BeginPutCustomPropertyOperation( - &self, - name: P0, - propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPutCustomPropertyOperation)( - windows_core::Interface::as_raw(self), - name.param().abi(), - propertyoperation, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPutCustomPropertyOperation(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndPutCustomPropertyOperation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricPropertyManagementClient2 {} -unsafe impl Sync for IFabricPropertyManagementClient2 {} -#[repr(C)] -pub struct IFabricPropertyManagementClient2_Vtbl { - pub base__: IFabricPropertyManagementClient_Vtbl, - pub BeginPutCustomPropertyOperation: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPutCustomPropertyOperation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricPropertyMetadataResult, - IFabricPropertyMetadataResult_Vtbl, - 0x33302306_fb8d_4831_b493_57efcc772462 -); -impl core::ops::Deref for IFabricPropertyMetadataResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPropertyMetadataResult, windows_core::IUnknown); -impl IFabricPropertyMetadataResult { - pub unsafe fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA { - (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricPropertyMetadataResult {} -unsafe impl Sync for IFabricPropertyMetadataResult {} -#[repr(C)] -pub struct IFabricPropertyMetadataResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Metadata: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA, -} -windows_core::imp::define_interface!( - IFabricPropertyValueResult, - IFabricPropertyValueResult_Vtbl, - 0x9a518b49_9903_4b8f_834e_1979e9c6745e -); -impl core::ops::Deref for IFabricPropertyValueResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricPropertyValueResult, windows_core::IUnknown); -impl IFabricPropertyValueResult { - pub unsafe fn get_Property(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY { - (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueAsBinary)( - windows_core::Interface::as_raw(self), - bytecount, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetValueAsInt64(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueAsInt64)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetValueAsDouble(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueAsDouble)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetValueAsWString(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueAsWString)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetValueAsGuid(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValueAsGuid)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricPropertyValueResult {} -unsafe impl Sync for IFabricPropertyValueResult {} -#[repr(C)] -pub struct IFabricPropertyValueResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Property: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY, - pub GetValueAsBinary: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut u8, - ) -> windows_core::HRESULT, - pub GetValueAsInt64: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - pub GetValueAsDouble: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - pub GetValueAsWString: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub GetValueAsGuid: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut windows_core::GUID, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient, - IFabricQueryClient_Vtbl, - 0xc629e422_90ba_4efd_8f64_cecf51bc3df0 -); -impl core::ops::Deref for IFabricQueryClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricQueryClient, windows_core::IUnknown); -impl IFabricQueryClient { - pub unsafe fn BeginGetNodeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNodeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNodeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationTypeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationTypeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationTypeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationTypeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetServiceTypeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceTypeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceTypeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceTypeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationList( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetServiceList( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetPartitionList( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetReplicaList( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetReplicaList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetReplicaList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReplicaList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedApplicationList( - &self, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedApplicationList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedApplicationList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedApplicationList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedServicePackageList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedServicePackageList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedServicePackageList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedServiceTypeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedServiceTypeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedServiceTypeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedServiceTypeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedCodePackageList( - &self, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedCodePackageList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedCodePackageList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedCodePackageList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetDeployedReplicaList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedReplicaList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedReplicaList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedReplicaList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient {} -unsafe impl Sync for IFabricQueryClient {} -#[repr(C)] -pub struct IFabricQueryClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginGetNodeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNodeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetReplicaList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetReplicaList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedApplicationList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedServicePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedServicePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedServiceTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedServiceTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedCodePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedCodePackageList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetDeployedReplicaList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedReplicaList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient10, - IFabricQueryClient10_Vtbl, - 0x02139da8_7140_42ae_8403_79a551600e63 -); -impl core::ops::Deref for IFabricQueryClient10 { - type Target = IFabricQueryClient9; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient10, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7, - IFabricQueryClient8, - IFabricQueryClient9 -); -impl IFabricQueryClient10 { - pub unsafe fn BeginGetDeployedApplicationPagedList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedApplicationPagedList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedApplicationPagedList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedApplicationPagedList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient10 {} -unsafe impl Sync for IFabricQueryClient10 {} -#[repr(C)] -pub struct IFabricQueryClient10_Vtbl { - pub base__: IFabricQueryClient9_Vtbl, - pub BeginGetDeployedApplicationPagedList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndGetDeployedApplicationPagedList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient2, - IFabricQueryClient2_Vtbl, - 0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af -); -impl core::ops::Deref for IFabricQueryClient2 { - type Target = IFabricQueryClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient2, - windows_core::IUnknown, - IFabricQueryClient -); -impl IFabricQueryClient2 { - pub unsafe fn BeginGetDeployedReplicaDetail( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetDeployedReplicaDetail)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetDeployedReplicaDetail( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetDeployedReplicaDetail)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetClusterLoadInformation( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetClusterLoadInformation)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetClusterLoadInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetClusterLoadInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetPartitionLoadInformation( - &self, - querydescription : *const super::FabricTypes:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionLoadInformation)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionLoadInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionLoadInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetProvisionedFabricCodeVersionList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetProvisionedFabricCodeVersionList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetProvisionedFabricConfigVersionList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetProvisionedFabricConfigVersionList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient2 {} -unsafe impl Sync for IFabricQueryClient2 {} -#[repr(C)] -pub struct IFabricQueryClient2_Vtbl { - pub base__: IFabricQueryClient_Vtbl, - pub BeginGetDeployedReplicaDetail: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetDeployedReplicaDetail: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetClusterLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetClusterLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetProvisionedFabricCodeVersionList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetProvisionedFabricCodeVersionList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub BeginGetProvisionedFabricConfigVersionList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetProvisionedFabricConfigVersionList: - unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient3, - IFabricQueryClient3_Vtbl, - 0x16f563f3_4017_496e_b0e7_2650de5774b3 -); -impl core::ops::Deref for IFabricQueryClient3 { - type Target = IFabricQueryClient2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient3, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2 -); -impl IFabricQueryClient3 { - pub unsafe fn BeginGetNodeLoadInformation( - &self, - querydescription: *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNodeLoadInformation)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNodeLoadInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeLoadInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetReplicaLoadInformation( - &self, - querydescription : *const super::FabricTypes:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetReplicaLoadInformation)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetReplicaLoadInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReplicaLoadInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient3 {} -unsafe impl Sync for IFabricQueryClient3 {} -#[repr(C)] -pub struct IFabricQueryClient3_Vtbl { - pub base__: IFabricQueryClient2_Vtbl, - pub BeginGetNodeLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNodeLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetReplicaLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetReplicaLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient4, - IFabricQueryClient4_Vtbl, - 0xab92081d_0d78_410b_9777_0846dba24c10 -); -impl core::ops::Deref for IFabricQueryClient4 { - type Target = IFabricQueryClient3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient4, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3 -); -impl IFabricQueryClient4 { - pub unsafe fn BeginGetServiceGroupMemberList( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceGroupMemberList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceGroupMemberList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceGroupMemberList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceGroupMemberTypeList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceGroupMemberTypeList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceGroupMemberTypeList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient4 {} -unsafe impl Sync for IFabricQueryClient4 {} -#[repr(C)] -pub struct IFabricQueryClient4_Vtbl { - pub base__: IFabricQueryClient3_Vtbl, - pub BeginGetServiceGroupMemberList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceGroupMemberList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceGroupMemberTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceGroupMemberTypeList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient5, - IFabricQueryClient5_Vtbl, - 0x75c35e8c_87a2_4810_a401_b50da858fe34 -); -impl core::ops::Deref for IFabricQueryClient5 { - type Target = IFabricQueryClient4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient5, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4 -); -impl IFabricQueryClient5 { - pub unsafe fn BeginGetUnplacedReplicaInformation( - &self, - querydescription : *const super::FabricTypes:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetUnplacedReplicaInformation)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetUnplacedReplicaInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetUnplacedReplicaInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient5 {} -unsafe impl Sync for IFabricQueryClient5 {} -#[repr(C)] -pub struct IFabricQueryClient5_Vtbl { - pub base__: IFabricQueryClient4_Vtbl, - pub BeginGetUnplacedReplicaInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetUnplacedReplicaInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient6, - IFabricQueryClient6_Vtbl, - 0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2 -); -impl core::ops::Deref for IFabricQueryClient6 { - type Target = IFabricQueryClient5; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient6, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5 -); -impl IFabricQueryClient6 { - pub unsafe fn EndGetNodeList2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeList2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationList2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationList2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceList2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceList2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionList2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionList2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetReplicaList2( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetReplicaList2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient6 {} -unsafe impl Sync for IFabricQueryClient6 {} -#[repr(C)] -pub struct IFabricQueryClient6_Vtbl { - pub base__: IFabricQueryClient5_Vtbl, - pub EndGetNodeList2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationList2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceList2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionList2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetReplicaList2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient7, - IFabricQueryClient7_Vtbl, - 0x538baa81_ba97_46da_95ac_e1cdd184cc74 -); -impl core::ops::Deref for IFabricQueryClient7 { - type Target = IFabricQueryClient6; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient7, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6 -); -impl IFabricQueryClient7 { - pub unsafe fn BeginGetApplicationLoadInformation( - &self, - querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationLoadInformation)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationLoadInformation( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationLoadInformation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient7 {} -unsafe impl Sync for IFabricQueryClient7 {} -#[repr(C)] -pub struct IFabricQueryClient7_Vtbl { - pub base__: IFabricQueryClient6_Vtbl, - pub BeginGetApplicationLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationLoadInformation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient8, - IFabricQueryClient8_Vtbl, - 0x2c850629_6a83_4fc3_8468_c868b87e9a17 -); -impl core::ops::Deref for IFabricQueryClient8 { - type Target = IFabricQueryClient7; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient8, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7 -); -impl IFabricQueryClient8 { - pub unsafe fn BeginGetServiceName( - &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceName)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceName( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceName)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetApplicationName( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationName)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationName( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationName)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient8 {} -unsafe impl Sync for IFabricQueryClient8 {} -#[repr(C)] -pub struct IFabricQueryClient8_Vtbl { - pub base__: IFabricQueryClient7_Vtbl, - pub BeginGetServiceName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetApplicationName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricQueryClient9, - IFabricQueryClient9_Vtbl, - 0x76f0b4a5_4941_49d7_993c_ad7afc37c6af -); -impl core::ops::Deref for IFabricQueryClient9 { - type Target = IFabricQueryClient8; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricQueryClient9, - windows_core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7, - IFabricQueryClient8 -); -impl IFabricQueryClient9 { - pub unsafe fn BeginGetApplicationTypePagedList( - &self, - querydescription : *const super::FabricTypes:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetApplicationTypePagedList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetApplicationTypePagedList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetApplicationTypePagedList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricQueryClient9 {} -unsafe impl Sync for IFabricQueryClient9 {} -#[repr(C)] -pub struct IFabricQueryClient9_Vtbl { - pub base__: IFabricQueryClient8_Vtbl, - pub BeginGetApplicationTypePagedList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetApplicationTypePagedList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricRepairManagementClient, - IFabricRepairManagementClient_Vtbl, - 0xee483ba5_9018_4c99_9804_be6185db88e6 -); -impl core::ops::Deref for IFabricRepairManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricRepairManagementClient, windows_core::IUnknown); -impl IFabricRepairManagementClient { - pub unsafe fn BeginCreateRepairTask( - &self, - repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateRepairTask)( - windows_core::Interface::as_raw(self), - repairtask, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateRepairTask(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndCreateRepairTask)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginCancelRepairTask( - &self, - requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCancelRepairTask)( - windows_core::Interface::as_raw(self), - requestdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCancelRepairTask(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndCancelRepairTask)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginForceApproveRepairTask( - &self, - requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginForceApproveRepairTask)( - windows_core::Interface::as_raw(self), - requestdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndForceApproveRepairTask(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndForceApproveRepairTask)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginDeleteRepairTask( - &self, - requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteRepairTask)( - windows_core::Interface::as_raw(self), - requestdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteRepairTask(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteRepairTask)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateRepairExecutionState( - &self, - repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateRepairExecutionState)( - windows_core::Interface::as_raw(self), - repairtask, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateRepairExecutionState(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndUpdateRepairExecutionState)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginGetRepairTaskList( - &self, - querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetRepairTaskList)( - windows_core::Interface::as_raw(self), - querydescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetRepairTaskList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetRepairTaskList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricRepairManagementClient {} -unsafe impl Sync for IFabricRepairManagementClient {} -#[repr(C)] -pub struct IFabricRepairManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginCreateRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_TASK, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub BeginCancelRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCancelRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub BeginForceApproveRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndForceApproveRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub BeginDeleteRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteRepairTask: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginUpdateRepairExecutionState: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_TASK, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateRepairExecutionState: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub BeginGetRepairTaskList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetRepairTaskList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricRepairManagementClient2, - IFabricRepairManagementClient2_Vtbl, - 0x5067d775_3baa_48e4_8c72_bb5573cc3fb8 -); -impl core::ops::Deref for IFabricRepairManagementClient2 { - type Target = IFabricRepairManagementClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricRepairManagementClient2, - windows_core::IUnknown, - IFabricRepairManagementClient -); -impl IFabricRepairManagementClient2 { - pub unsafe fn BeginUpdateRepairTaskHealthPolicy( - &self, - updatedescription : *const super::FabricTypes:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateRepairTaskHealthPolicy)( - windows_core::Interface::as_raw(self), - updatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateRepairTaskHealthPolicy( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndUpdateRepairTaskHealthPolicy)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricRepairManagementClient2 {} -unsafe impl Sync for IFabricRepairManagementClient2 {} -#[repr(C)] -pub struct IFabricRepairManagementClient2_Vtbl { - pub base__: IFabricRepairManagementClient_Vtbl, - pub BeginUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricReplicaHealthResult, - IFabricReplicaHealthResult_Vtbl, - 0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15 -); -impl core::ops::Deref for IFabricReplicaHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricReplicaHealthResult, windows_core::IUnknown); -impl IFabricReplicaHealthResult { - pub unsafe fn get_ReplicaHealth(&self) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH { - (windows_core::Interface::vtable(self).get_ReplicaHealth)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricReplicaHealthResult {} -unsafe impl Sync for IFabricReplicaHealthResult {} -#[repr(C)] -pub struct IFabricReplicaHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ReplicaHealth: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH, -} -windows_core::imp::define_interface!( - IFabricResolvedServicePartitionResult, - IFabricResolvedServicePartitionResult_Vtbl, - 0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716 -); -impl core::ops::Deref for IFabricResolvedServicePartitionResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricResolvedServicePartitionResult, - windows_core::IUnknown -); -impl IFabricResolvedServicePartitionResult { - pub unsafe fn get_Partition( - &self, - ) -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION { - (windows_core::Interface::vtable(self).get_Partition)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn GetEndpoint( - &self, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetEndpoint)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn CompareVersion(&self, other: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CompareVersion)( - windows_core::Interface::as_raw(self), - other.param().abi(), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricResolvedServicePartitionResult {} -unsafe impl Sync for IFabricResolvedServicePartitionResult {} -#[repr(C)] -pub struct IFabricResolvedServicePartitionResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Partition: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION, - pub GetEndpoint: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> windows_core::HRESULT, - pub CompareVersion: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i32, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricRestartDeployedCodePackageResult, - IFabricRestartDeployedCodePackageResult_Vtbl, - 0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f -); -impl core::ops::Deref for IFabricRestartDeployedCodePackageResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricRestartDeployedCodePackageResult, - windows_core::IUnknown -); -impl IFabricRestartDeployedCodePackageResult { - pub unsafe fn get_Result( - &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricRestartDeployedCodePackageResult {} -unsafe impl Sync for IFabricRestartDeployedCodePackageResult {} -#[repr(C)] -pub struct IFabricRestartDeployedCodePackageResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT, -} -windows_core::imp::define_interface!( - IFabricRestartNodeResult, - IFabricRestartNodeResult_Vtbl, - 0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9 -); -impl core::ops::Deref for IFabricRestartNodeResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricRestartNodeResult, windows_core::IUnknown); -impl IFabricRestartNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricRestartNodeResult {} -unsafe impl Sync for IFabricRestartNodeResult {} -#[repr(C)] -pub struct IFabricRestartNodeResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, -} -windows_core::imp::define_interface!( - IFabricSecretReferencesResult, - IFabricSecretReferencesResult_Vtbl, - 0xbb8f69de_f667_4fab_820d_274cf4303ab4 -); -impl core::ops::Deref for IFabricSecretReferencesResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricSecretReferencesResult, windows_core::IUnknown); -impl IFabricSecretReferencesResult { - pub unsafe fn get_SecretReferences( - &self, - ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST { - (windows_core::Interface::vtable(self).get_SecretReferences)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricSecretReferencesResult {} -unsafe impl Sync for IFabricSecretReferencesResult {} -#[repr(C)] -pub struct IFabricSecretReferencesResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_SecretReferences: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, -} -windows_core::imp::define_interface!( - IFabricSecretStoreClient, - IFabricSecretStoreClient_Vtbl, - 0x38c4c723_3815_49d8_bdf2_68bfb536b8c9 -); -impl core::ops::Deref for IFabricSecretStoreClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricSecretStoreClient, windows_core::IUnknown); -impl IFabricSecretStoreClient { - pub unsafe fn BeginGetSecrets( - &self, - secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - includevalue: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetSecrets)( - windows_core::Interface::as_raw(self), - secretreferences, - includevalue.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetSecrets( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetSecrets)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginSetSecrets( - &self, - secrets: *const super::FabricTypes::FABRIC_SECRET_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSetSecrets)( - windows_core::Interface::as_raw(self), - secrets, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndSetSecrets( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndSetSecrets)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginRemoveSecrets( - &self, - secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRemoveSecrets)( - windows_core::Interface::as_raw(self), - secretreferences, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRemoveSecrets( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRemoveSecrets)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetSecretVersions( - &self, - secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetSecretVersions)( - windows_core::Interface::as_raw(self), - secretreferences, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetSecretVersions( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetSecretVersions)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricSecretStoreClient {} -unsafe impl Sync for IFabricSecretStoreClient {} -#[repr(C)] -pub struct IFabricSecretStoreClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginGetSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - windows::Win32::Foundation::BOOLEAN, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginSetSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SECRET_LIST, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndSetSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRemoveSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRemoveSecrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetSecretVersions: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetSecretVersions: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricSecretsResult, - IFabricSecretsResult_Vtbl, - 0xfe15a879_0dbe_4841_9cc6_6e92077cd669 -); -impl core::ops::Deref for IFabricSecretsResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricSecretsResult, windows_core::IUnknown); -impl IFabricSecretsResult { - pub unsafe fn get_Secrets(&self) -> *mut super::FabricTypes::FABRIC_SECRET_LIST { - (windows_core::Interface::vtable(self).get_Secrets)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricSecretsResult {} -unsafe impl Sync for IFabricSecretsResult {} -#[repr(C)] -pub struct IFabricSecretsResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Secrets: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECRET_LIST, -} -windows_core::imp::define_interface!( - IFabricServiceDescriptionResult, - IFabricServiceDescriptionResult_Vtbl, - 0x86b4f744_38c7_4dab_b6b4_11c23734c269 -); -impl core::ops::Deref for IFabricServiceDescriptionResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceDescriptionResult, windows_core::IUnknown); -impl IFabricServiceDescriptionResult { - pub unsafe fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION { - (windows_core::Interface::vtable(self).get_Description)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricServiceDescriptionResult {} -unsafe impl Sync for IFabricServiceDescriptionResult {} -#[repr(C)] -pub struct IFabricServiceDescriptionResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, -} -windows_core::imp::define_interface!( - IFabricServiceEndpointsVersion, - IFabricServiceEndpointsVersion_Vtbl, - 0x0a673dc5_2297_4fc5_a38f_482d29144fa5 -); -impl core::ops::Deref for IFabricServiceEndpointsVersion { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceEndpointsVersion, windows_core::IUnknown); -impl IFabricServiceEndpointsVersion { - pub unsafe fn Compare(&self, other: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Compare)( - windows_core::Interface::as_raw(self), - other.param().abi(), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricServiceEndpointsVersion {} -unsafe impl Sync for IFabricServiceEndpointsVersion {} -#[repr(C)] -pub struct IFabricServiceEndpointsVersion_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub Compare: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i32, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceGroupDescriptionResult, - IFabricServiceGroupDescriptionResult_Vtbl, - 0x3ca814d4_e067_48b7_9bdc_9be33810416d -); -impl core::ops::Deref for IFabricServiceGroupDescriptionResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceGroupDescriptionResult, - windows_core::IUnknown -); -impl IFabricServiceGroupDescriptionResult { - pub unsafe fn get_Description( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION { - (windows_core::Interface::vtable(self).get_Description)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricServiceGroupDescriptionResult {} -unsafe impl Sync for IFabricServiceGroupDescriptionResult {} -#[repr(C)] -pub struct IFabricServiceGroupDescriptionResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, -} -windows_core::imp::define_interface!( - IFabricServiceGroupManagementClient, - IFabricServiceGroupManagementClient_Vtbl, - 0x2061227e_0281_4baf_9b19_b2dfb2e63bbe -); -impl core::ops::Deref for IFabricServiceGroupManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceGroupManagementClient, - windows_core::IUnknown -); -impl IFabricServiceGroupManagementClient { - pub unsafe fn BeginCreateServiceGroup( - &self, - description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateServiceGroup)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateServiceGroup)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteServiceGroup( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteServiceGroup)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteServiceGroup)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetServiceGroupDescription( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceGroupDescription)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceGroupDescription( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceGroupDescription)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricServiceGroupManagementClient {} -unsafe impl Sync for IFabricServiceGroupManagementClient {} -#[repr(C)] -pub struct IFabricServiceGroupManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginCreateServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeleteServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceGroupDescription: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceGroupDescription: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceGroupManagementClient2, - IFabricServiceGroupManagementClient2_Vtbl, - 0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64 -); -impl core::ops::Deref for IFabricServiceGroupManagementClient2 { - type Target = IFabricServiceGroupManagementClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceGroupManagementClient2, - windows_core::IUnknown, - IFabricServiceGroupManagementClient -); -impl IFabricServiceGroupManagementClient2 { - pub unsafe fn BeginUpdateServiceGroup( - &self, - name: P0, - servicegroupupdatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateServiceGroup)( - windows_core::Interface::as_raw(self), - name.param().abi(), - servicegroupupdatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateServiceGroup(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpdateServiceGroup)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceGroupManagementClient2 {} -unsafe impl Sync for IFabricServiceGroupManagementClient2 {} -#[repr(C)] -pub struct IFabricServiceGroupManagementClient2_Vtbl { - pub base__: IFabricServiceGroupManagementClient_Vtbl, - pub BeginUpdateServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateServiceGroup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceGroupManagementClient3, - IFabricServiceGroupManagementClient3_Vtbl, - 0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6 -); -impl core::ops::Deref for IFabricServiceGroupManagementClient3 { - type Target = IFabricServiceGroupManagementClient2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceGroupManagementClient3, - windows_core::IUnknown, - IFabricServiceGroupManagementClient, - IFabricServiceGroupManagementClient2 -); -impl IFabricServiceGroupManagementClient3 { - pub unsafe fn BeginCreateServiceGroupFromTemplate( - &self, - applicationname: P0, - servicename: P1, - servicetypename: P2, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - servicename.param().abi(), - servicetypename.param().abi(), - initializationdata.len().try_into().unwrap(), - core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateServiceGroupFromTemplate( - &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceGroupManagementClient3 {} -unsafe impl Sync for IFabricServiceGroupManagementClient3 {} -#[repr(C)] -pub struct IFabricServiceGroupManagementClient3_Vtbl { - pub base__: IFabricServiceGroupManagementClient2_Vtbl, - pub BeginCreateServiceGroupFromTemplate: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *const u8, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndCreateServiceGroupFromTemplate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceGroupManagementClient4, - IFabricServiceGroupManagementClient4_Vtbl, - 0x3c73b32e_9a08_48ca_b3a3_993a2029e37a -); -impl core::ops::Deref for IFabricServiceGroupManagementClient4 { - type Target = IFabricServiceGroupManagementClient3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceGroupManagementClient4, - windows_core::IUnknown, - IFabricServiceGroupManagementClient, - IFabricServiceGroupManagementClient2, - IFabricServiceGroupManagementClient3 -); -impl IFabricServiceGroupManagementClient4 { - pub unsafe fn BeginCreateServiceGroupFromTemplate2( - &self, - servicegroupfromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate2)( - windows_core::Interface::as_raw(self), - servicegroupfromtemplatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateServiceGroupFromTemplate2( - &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceGroupManagementClient4 {} -unsafe impl Sync for IFabricServiceGroupManagementClient4 {} -#[repr(C)] -pub struct IFabricServiceGroupManagementClient4_Vtbl { - pub base__: IFabricServiceGroupManagementClient3_Vtbl, - pub BeginCreateServiceGroupFromTemplate2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndCreateServiceGroupFromTemplate2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceHealthResult, - IFabricServiceHealthResult_Vtbl, - 0x52040bd9_a78e_4308_a30e_7114e3684e76 -); -impl core::ops::Deref for IFabricServiceHealthResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceHealthResult, windows_core::IUnknown); -impl IFabricServiceHealthResult { - pub unsafe fn get_ServiceHealth(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH { - (windows_core::Interface::vtable(self).get_ServiceHealth)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricServiceHealthResult {} -unsafe impl Sync for IFabricServiceHealthResult {} -#[repr(C)] -pub struct IFabricServiceHealthResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ServiceHealth: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH, -} -windows_core::imp::define_interface!( - IFabricServiceManagementClient, - IFabricServiceManagementClient_Vtbl, - 0xf7368189_fd1f_437c_888d_8c89cecc57a0 -); -impl core::ops::Deref for IFabricServiceManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceManagementClient, windows_core::IUnknown); -impl IFabricServiceManagementClient { - pub unsafe fn BeginCreateService( - &self, - description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateService)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateService(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateService)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate( - &self, - applicationname: P0, - servicename: P1, - servicetypename: P2, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate)( - windows_core::Interface::as_raw(self), - applicationname.param().abi(), - servicename.param().abi(), - servicetypename.param().abi(), - initializationdata.len().try_into().unwrap(), - core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndCreateServiceFromTemplate)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteService)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeleteService(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeleteService)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetServiceDescription( - &self, - name: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceDescription)( - windows_core::Interface::as_raw(self), - name.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceDescription( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceDescription)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler( - &self, - name: P0, - keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const core::ffi::c_void, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterServicePartitionResolutionChangeHandler)( - windows_core::Interface::as_raw(self), - name.param().abi(), - keytype, - partitionkey, - callback.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterServicePartitionResolutionChangeHandler)( - windows_core::Interface::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition( - &self, - name: P0, - partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const core::ffi::c_void, - previousresult: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginResolveServicePartition)( - windows_core::Interface::as_raw(self), - name.param().abi(), - partitionkeytype, - partitionkey, - previousresult.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndResolveServicePartition( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndResolveServicePartition)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricServiceManagementClient {} -unsafe impl Sync for IFabricServiceManagementClient {} -#[repr(C)] -pub struct IFabricServiceManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginCreateService: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateService: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginCreateServiceFromTemplate: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - super::FabricTypes::FABRIC_URI, - windows_core::PCWSTR, - u32, - *const u8, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndCreateServiceFromTemplate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeleteService: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteService: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetServiceDescription: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceDescription: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RegisterServicePartitionResolutionChangeHandler: - unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, - *const core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub UnregisterServicePartitionResolutionChangeHandler: - unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - pub BeginResolveServicePartition: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, - *const core::ffi::c_void, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndResolveServicePartition: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceManagementClient2, - IFabricServiceManagementClient2_Vtbl, - 0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa -); -impl core::ops::Deref for IFabricServiceManagementClient2 { - type Target = IFabricServiceManagementClient; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceManagementClient2, - windows_core::IUnknown, - IFabricServiceManagementClient -); -impl IFabricServiceManagementClient2 { - pub unsafe fn BeginGetServiceManifest( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - P3: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetServiceManifest)( - windows_core::Interface::as_raw(self), - applicationtypename.param().abi(), - applicationtypeversion.param().abi(), - servicemanifestname.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetServiceManifest( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetServiceManifest)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginUpdateService( - &self, - name: P0, - serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateService)( - windows_core::Interface::as_raw(self), - name.param().abi(), - serviceupdatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateService(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpdateService)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceManagementClient2 {} -unsafe impl Sync for IFabricServiceManagementClient2 {} -#[repr(C)] -pub struct IFabricServiceManagementClient2_Vtbl { - pub base__: IFabricServiceManagementClient_Vtbl, - pub BeginGetServiceManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - windows_core::PCWSTR, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetServiceManifest: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginUpdateService: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateService: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, + unsafe extern "system" fn BeginDeactivateNode< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + nodename: windows_core::PCWSTR, + intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginDeactivateNode( + this, + core::mem::transmute(&nodename), + core::mem::transmute_copy(&intent), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndDeactivateNode< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndDeactivateNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginActivateNode< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + nodename: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginActivateNode( + this, + core::mem::transmute(&nodename), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndActivateNode< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndActivateNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginProvisionFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + codefilepath: windows_core::PCWSTR, + clustermanifestfilepath: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginProvisionFabric( + this, + core::mem::transmute(&codefilepath), + core::mem::transmute(&clustermanifestfilepath), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndProvisionFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndProvisionFabric( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginUpgradeFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginUpgradeFabric( + this, + core::mem::transmute_copy(&upgradedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpgradeFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndUpgradeFabric( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginGetFabricUpgradeProgress< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginGetFabricUpgradeProgress( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetFabricUpgradeProgress< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::EndGetFabricUpgradeProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + progress: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain( + this, + core::mem::transmute_copy(&progress), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndMoveNextFabricUpgradeDomain< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + nextupgradedomain: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain2( + this, + core::mem::transmute(&nextupgradedomain), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginUnprovisionFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + codeversion: windows_core::PCWSTR, + configversion: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginUnprovisionFabric( + this, + core::mem::transmute(&codeversion), + core::mem::transmute(&configversion), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUnprovisionFabric< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndUnprovisionFabric( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginGetClusterManifest< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginGetClusterManifest( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetClusterManifest< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::EndGetClusterManifest( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginRecoverPartition< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + partitionid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginRecoverPartition( + this, + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRecoverPartition< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndRecoverPartition( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginRecoverServicePartitions< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + servicename: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginRecoverServicePartitions( + this, + core::mem::transmute_copy(&servicename), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRecoverServicePartitions< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndRecoverServicePartitions( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginRecoverSystemPartitions< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient2_Impl::BeginRecoverSystemPartitions( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRecoverSystemPartitions< + Identity: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient2_Impl::EndRecoverSystemPartitions( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricClusterManagementClient_Vtbl::new::(), + BeginDeactivateNode: BeginDeactivateNode::, + EndDeactivateNode: EndDeactivateNode::, + BeginActivateNode: BeginActivateNode::, + EndActivateNode: EndActivateNode::, + BeginProvisionFabric: BeginProvisionFabric::, + EndProvisionFabric: EndProvisionFabric::, + BeginUpgradeFabric: BeginUpgradeFabric::, + EndUpgradeFabric: EndUpgradeFabric::, + BeginGetFabricUpgradeProgress: BeginGetFabricUpgradeProgress::, + EndGetFabricUpgradeProgress: EndGetFabricUpgradeProgress::, + BeginMoveNextFabricUpgradeDomain: BeginMoveNextFabricUpgradeDomain::, + EndMoveNextFabricUpgradeDomain: EndMoveNextFabricUpgradeDomain::, + BeginMoveNextFabricUpgradeDomain2: BeginMoveNextFabricUpgradeDomain2::, + EndMoveNextFabricUpgradeDomain2: EndMoveNextFabricUpgradeDomain2::, + BeginUnprovisionFabric: BeginUnprovisionFabric::, + EndUnprovisionFabric: EndUnprovisionFabric::, + BeginGetClusterManifest: BeginGetClusterManifest::, + EndGetClusterManifest: EndGetClusterManifest::, + BeginRecoverPartition: BeginRecoverPartition::, + EndRecoverPartition: EndRecoverPartition::, + BeginRecoverServicePartitions: BeginRecoverServicePartitions::, + EndRecoverServicePartitions: EndRecoverServicePartitions::, + BeginRecoverSystemPartitions: BeginRecoverSystemPartitions::, + EndRecoverSystemPartitions: EndRecoverSystemPartitions::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient2 {} windows_core::imp::define_interface!( - IFabricServiceManagementClient3, - IFabricServiceManagementClient3_Vtbl, - 0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d + IFabricClusterManagementClient3, + IFabricClusterManagementClient3_Vtbl, + 0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c ); -impl core::ops::Deref for IFabricServiceManagementClient3 { - type Target = IFabricServiceManagementClient2; +impl core::ops::Deref for IFabricClusterManagementClient3 { + type Target = IFabricClusterManagementClient2; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricServiceManagementClient3, + IFabricClusterManagementClient3, windows_core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2 + IFabricClusterManagementClient, + IFabricClusterManagementClient2 ); -impl IFabricServiceManagementClient3 { - pub unsafe fn BeginRemoveReplica( - &self, - description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRemoveReplica)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRemoveReplica(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRemoveReplica)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartReplica( +impl IFabricClusterManagementClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateFabricUpgrade( &self, - description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION, + description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestartReplica)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateFabricUpgrade)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRestartReplica(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndRestartReplica)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceManagementClient3 {} -unsafe impl Sync for IFabricServiceManagementClient3 {} -#[repr(C)] -pub struct IFabricServiceManagementClient3_Vtbl { - pub base__: IFabricServiceManagementClient2_Vtbl, - pub BeginRemoveReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRemoveReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRestartReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRestartReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceManagementClient4, - IFabricServiceManagementClient4_Vtbl, - 0x8180db27_7d0b_43b0_82e0_4a8e022fc238 -); -impl core::ops::Deref for IFabricServiceManagementClient4 { - type Target = IFabricServiceManagementClient3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + (windows_core::Interface::vtable(self).EndUpdateFabricUpgrade)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceManagementClient4, - windows_core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3 -); -impl IFabricServiceManagementClient4 { - pub unsafe fn BeginRegisterServiceNotificationFilter( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStopNode( &self, - description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRegisterServiceNotificationFilter)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStopNode)( + windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndRegisterServiceNotificationFilter( - &self, - context: P0, - ) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStopNode(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndRegisterServiceNotificationFilter)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + (windows_core::Interface::vtable(self).EndStopNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginUnregisterServiceNotificationFilter( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestartNode( &self, - filterid: i64, + restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUnregisterServiceNotificationFilter)( - windows_core::Interface::as_raw(self), - filterid, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestartNode)( + windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndUnregisterServiceNotificationFilter( - &self, - context: P0, - ) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestartNode(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUnregisterServiceNotificationFilter)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceManagementClient4 {} -unsafe impl Sync for IFabricServiceManagementClient4 {} -#[repr(C)] -pub struct IFabricServiceManagementClient4_Vtbl { - pub base__: IFabricServiceManagementClient3_Vtbl, - pub BeginRegisterServiceNotificationFilter: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndRegisterServiceNotificationFilter: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) - -> windows_core::HRESULT, - pub BeginUnregisterServiceNotificationFilter: - unsafe extern "system" fn( - *mut core::ffi::c_void, - i64, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUnregisterServiceNotificationFilter: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceManagementClient5, - IFabricServiceManagementClient5_Vtbl, - 0xf9a70679_8ca3_4e27_9411_483e0c89b1fa -); -impl core::ops::Deref for IFabricServiceManagementClient5 { - type Target = IFabricServiceManagementClient4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + (windows_core::Interface::vtable(self).EndRestartNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceManagementClient5, - windows_core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3, - IFabricServiceManagementClient4 -); -impl IFabricServiceManagementClient5 { - pub unsafe fn BeginDeleteService2( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartNode( &self, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION, + startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeleteService2)( - windows_core::Interface::as_raw(self), - deletedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartNode)( + windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndDeleteService2(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartNode(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndDeleteService2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceManagementClient5 {} -unsafe impl Sync for IFabricServiceManagementClient5 {} -#[repr(C)] -pub struct IFabricServiceManagementClient5_Vtbl { - pub base__: IFabricServiceManagementClient4_Vtbl, - pub BeginDeleteService2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeleteService2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceManagementClient6, - IFabricServiceManagementClient6_Vtbl, - 0x23e4ee1b_049a_48f5_8dd7_b601eace47de -); -impl core::ops::Deref for IFabricServiceManagementClient6 { - type Target = IFabricServiceManagementClient5; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } + unsafe { + (windows_core::Interface::vtable(self).EndStartNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceManagementClient6, - windows_core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3, - IFabricServiceManagementClient4, - IFabricServiceManagementClient5 -); -impl IFabricServiceManagementClient6 { - pub unsafe fn BeginCreateServiceFromTemplate2( - &self, - servicefromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + P4: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate2)( - windows_core::Interface::as_raw(self), - servicefromtemplatedescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).CopyClusterPackage)( + windows_core::Interface::as_raw(self), + imagestoreconnectionstring.param().abi(), + clustermanifestpath.param().abi(), + clustermanifestpathinimagestore.param().abi(), + codepackagepath.param().abi(), + codepackagepathinimagestore.param().abi(), + ) + .ok() + } } - pub unsafe fn EndCreateServiceFromTemplate2(&self, context: P0) -> windows_core::Result<()> + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> windows_core::Result<()> where - P0: windows_core::Param, + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCreateServiceFromTemplate2)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).RemoveClusterPackage)( + windows_core::Interface::as_raw(self), + imagestoreconnectionstring.param().abi(), + clustermanifestpathinimagestore.param().abi(), + codepackagepathinimagestore.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricServiceManagementClient6 {} -unsafe impl Sync for IFabricServiceManagementClient6 {} #[repr(C)] -pub struct IFabricServiceManagementClient6_Vtbl { - pub base__: IFabricServiceManagementClient5_Vtbl, - pub BeginCreateServiceFromTemplate2: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient3_Vtbl { + pub base__: IFabricClusterManagementClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateFabricUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndCreateServiceFromTemplate2: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateFabricUpgrade: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateFabricUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceNotification, - IFabricServiceNotification_Vtbl, - 0x8222c825_08ad_4639_afce_a8988cbd6db3 -); -impl core::ops::Deref for IFabricServiceNotification { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceNotification, windows_core::IUnknown); -impl IFabricServiceNotification { - pub unsafe fn get_Notification(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION { - (windows_core::Interface::vtable(self).get_Notification)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn GetVersion(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetVersion)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricServiceNotification {} -unsafe impl Sync for IFabricServiceNotification {} -#[repr(C)] -pub struct IFabricServiceNotification_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Notification: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION, - pub GetVersion: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateFabricUpgrade: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStopNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, + u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceNotificationEventHandler, - IFabricServiceNotificationEventHandler_Vtbl, - 0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac -); -impl core::ops::Deref for IFabricServiceNotificationEventHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServiceNotificationEventHandler, - windows_core::IUnknown -); -impl IFabricServiceNotificationEventHandler { - pub unsafe fn OnNotification( - &self, - __midl__ifabricservicenotificationeventhandler0000: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnNotification)( - windows_core::Interface::as_raw(self), - __midl__ifabricservicenotificationeventhandler0000 - .param() - .abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricServiceNotificationEventHandler {} -unsafe impl Sync for IFabricServiceNotificationEventHandler {} -#[repr(C)] -pub struct IFabricServiceNotificationEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnNotification: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStopNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStopNode: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServicePartitionResolutionChangeHandler, - IFabricServicePartitionResolutionChangeHandler_Vtbl, - 0xf495715d_8e03_4232_b8d6_1227b39984fc -); -impl core::ops::Deref for IFabricServicePartitionResolutionChangeHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricServicePartitionResolutionChangeHandler, - windows_core::IUnknown -); -impl IFabricServicePartitionResolutionChangeHandler { - pub unsafe fn OnChange( - &self, - source: P0, - handlerid: i64, - partition: P1, - error: windows_core::HRESULT, - ) where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnChange)( - windows_core::Interface::as_raw(self), - source.param().abi(), - handlerid, - partition.param().abi(), - error, - ) - } -} -unsafe impl Send for IFabricServicePartitionResolutionChangeHandler {} -unsafe impl Sync for IFabricServicePartitionResolutionChangeHandler {} -#[repr(C)] -pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnChange: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStopNode: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestartNode: unsafe extern "system" fn( *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, + u32, *mut core::ffi::c_void, - i64, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestartNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestartNode: unsafe extern "system" fn( *mut core::ffi::c_void, - windows_core::HRESULT, - ), -} -windows_core::imp::define_interface!( - IFabricStartNodeResult, - IFabricStartNodeResult_Vtbl, - 0x7e9f51a5_88ac_49b8_958d_329e3334802e -); -impl core::ops::Deref for IFabricStartNodeResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStartNodeResult, windows_core::IUnknown); -impl IFabricStartNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStartNodeResult {} -unsafe impl Sync for IFabricStartNodeResult {} -#[repr(C)] -pub struct IFabricStartNodeResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, -} -windows_core::imp::define_interface!( - IFabricStopNodeResult, - IFabricStopNodeResult_Vtbl, - 0x711d60a6_9623_476c_970c_83059a0b4d55 -); -impl core::ops::Deref for IFabricStopNodeResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStopNodeResult, windows_core::IUnknown); -impl IFabricStopNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStopNodeResult {} -unsafe impl Sync for IFabricStopNodeResult {} -#[repr(C)] -pub struct IFabricStopNodeResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestartNode: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartNode: unsafe extern "system" fn( *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, -} -windows_core::imp::define_interface!( - IFabricTestCommandStatusResult, - IFabricTestCommandStatusResult_Vtbl, - 0x87798f5c_e600_493a_a926_16b6807378e6 -); -impl core::ops::Deref for IFabricTestCommandStatusResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricTestCommandStatusResult, windows_core::IUnknown); -impl IFabricTestCommandStatusResult { - pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST { - (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricTestCommandStatusResult {} -unsafe impl Sync for IFabricTestCommandStatusResult {} -#[repr(C)] -pub struct IFabricTestCommandStatusResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Result: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST, -} -windows_core::imp::define_interface!( - IFabricTestManagementClient, - IFabricTestManagementClient_Vtbl, - 0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28 -); -impl core::ops::Deref for IFabricTestManagementClient { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricTestManagementClient, windows_core::IUnknown); -impl IFabricTestManagementClient { - pub unsafe fn BeginStartPartitionDataLoss( - &self, - invokedatalossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartPartitionDataLoss)( - windows_core::Interface::as_raw(self), - invokedatalossdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStartPartitionDataLoss)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionDataLossProgress( + *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartNode: usize, + pub CopyClusterPackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, + pub RemoveClusterPackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient3_Impl: IFabricClusterManagementClient2_Impl { + fn BeginUpdateFabricUpgrade( &self, - operationid: windows_core::GUID, + description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionDataLossProgress)( - windows_core::Interface::as_raw(self), - core::mem::transmute(operationid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionDataLossProgress( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUpdateFabricUpgrade( &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionDataLossProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginStartPartitionQuorumLoss( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginStopNode( &self, - invokequorumlossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartPartitionQuorumLoss)( - windows_core::Interface::as_raw(self), - invokequorumlossdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStartPartitionQuorumLoss)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionQuorumLossProgress( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndStopNode( &self, - operationid: windows_core::GUID, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginRestartNode( + &self, + restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionQuorumLossProgress)( - windows_core::Interface::as_raw(self), - core::mem::transmute(operationid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionQuorumLossProgress( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRestartNode( &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionQuorumLossProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginStartPartitionRestart( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginStartNode( &self, - restartpartitiondescription : *const super::FabricTypes:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartPartitionRestart)( - windows_core::Interface::as_raw(self), - restartpartitiondescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStartPartitionRestart)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionRestartProgress( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndStartNode( &self, - operationid: windows_core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetPartitionRestartProgress)( - windows_core::Interface::as_raw(self), - core::mem::transmute(operationid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetPartitionRestartProgress( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn CopyClusterPackage( &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetPartitionRestartProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginGetTestCommandStatusList( + imagestoreconnectionstring: &windows_core::PCWSTR, + clustermanifestpath: &windows_core::PCWSTR, + clustermanifestpathinimagestore: &windows_core::PCWSTR, + codepackagepath: &windows_core::PCWSTR, + codepackagepathinimagestore: &windows_core::PCWSTR, + ) -> windows_core::Result<()>; + fn RemoveClusterPackage( &self, - operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, + imagestoreconnectionstring: &windows_core::PCWSTR, + clustermanifestpathinimagestore: &windows_core::PCWSTR, + codepackagepathinimagestore: &windows_core::PCWSTR, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient3_Vtbl { + pub const fn new() -> Self { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetTestCommandStatusList)( - windows_core::Interface::as_raw(self), - operationid, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe extern "system" fn BeginUpdateFabricUpgrade< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient3_Impl::BeginUpdateFabricUpgrade( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpdateFabricUpgrade< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::EndUpdateFabricUpgrade( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginStopNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient3_Impl::BeginStopNode( + this, + core::mem::transmute_copy(&stopnodedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndStopNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::EndStopNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginRestartNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient3_Impl::BeginRestartNode( + this, + core::mem::transmute_copy(&restartnodedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRestartNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::EndRestartNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginStartNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient3_Impl::BeginStartNode( + this, + core::mem::transmute_copy(&startnodedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndStartNode< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::EndStartNode( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn CopyClusterPackage< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + imagestoreconnectionstring: windows_core::PCWSTR, + clustermanifestpath: windows_core::PCWSTR, + clustermanifestpathinimagestore: windows_core::PCWSTR, + codepackagepath: windows_core::PCWSTR, + codepackagepathinimagestore: windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::CopyClusterPackage( + this, + core::mem::transmute(&imagestoreconnectionstring), + core::mem::transmute(&clustermanifestpath), + core::mem::transmute(&clustermanifestpathinimagestore), + core::mem::transmute(&codepackagepath), + core::mem::transmute(&codepackagepathinimagestore), + ) + .into() + } + } + unsafe extern "system" fn RemoveClusterPackage< + Identity: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + imagestoreconnectionstring: windows_core::PCWSTR, + clustermanifestpathinimagestore: windows_core::PCWSTR, + codepackagepathinimagestore: windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient3_Impl::RemoveClusterPackage( + this, + core::mem::transmute(&imagestoreconnectionstring), + core::mem::transmute(&clustermanifestpathinimagestore), + core::mem::transmute(&codepackagepathinimagestore), + ) + .into() + } + } + Self { + base__: IFabricClusterManagementClient2_Vtbl::new::(), + BeginUpdateFabricUpgrade: BeginUpdateFabricUpgrade::, + EndUpdateFabricUpgrade: EndUpdateFabricUpgrade::, + BeginStopNode: BeginStopNode::, + EndStopNode: EndStopNode::, + BeginRestartNode: BeginRestartNode::, + EndRestartNode: EndRestartNode::, + BeginStartNode: BeginStartNode::, + EndStartNode: EndStartNode::, + CopyClusterPackage: CopyClusterPackage::, + RemoveClusterPackage: RemoveClusterPackage::, + } } - pub unsafe fn EndGetTestCommandStatusList( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetTestCommandStatusList)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient3 {} +windows_core::imp::define_interface!( + IFabricClusterManagementClient4, + IFabricClusterManagementClient4_Vtbl, + 0xb6b12671_f283_4d71_a818_0260549bc83e +); +impl core::ops::Deref for IFabricClusterManagementClient4 { + type Target = IFabricClusterManagementClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } } - pub unsafe fn BeginCancelTestCommand( +} +windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient4, + windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3 +); +impl IFabricClusterManagementClient4 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRollbackFabricUpgrade( &self, - invokedatalossdescription : *const super::FabricTypes:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCancelTestCommand)( - windows_core::Interface::as_raw(self), - invokedatalossdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRollbackFabricUpgrade)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndCancelTestCommand(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndCancelTestCommand)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndRollbackFabricUpgrade)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricTestManagementClient {} -unsafe impl Sync for IFabricTestManagementClient {} #[repr(C)] -pub struct IFabricTestManagementClient_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginStartPartitionDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartPartitionDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionDataLossProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionDataLossProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginStartPartitionQuorumLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartPartitionQuorumLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionQuorumLossProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndGetPartitionQuorumLossProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginStartPartitionRestart: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartPartitionRestart: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetPartitionRestartProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetPartitionRestartProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetTestCommandStatusList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetTestCommandStatusList: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginCancelTestCommand: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient4_Vtbl { + pub base__: IFabricClusterManagementClient3_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRollbackFabricUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndCancelTestCommand: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRollbackFabricUpgrade: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRollbackFabricUpgrade: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRollbackFabricUpgrade: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient4_Impl: IFabricClusterManagementClient3_Impl { + fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndRollbackFabricUpgrade( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient4_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginRollbackFabricUpgrade< + Identity: IFabricClusterManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient4_Impl::BeginRollbackFabricUpgrade( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRollbackFabricUpgrade< + Identity: IFabricClusterManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient4_Impl::EndRollbackFabricUpgrade( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricClusterManagementClient3_Vtbl::new::(), + BeginRollbackFabricUpgrade: BeginRollbackFabricUpgrade::, + EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient4 {} windows_core::imp::define_interface!( - IFabricTestManagementClient2, - IFabricTestManagementClient2_Vtbl, - 0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a + IFabricClusterManagementClient5, + IFabricClusterManagementClient5_Vtbl, + 0xa6ddd816_a100_11e4_89d3_123b93f75cba ); -impl core::ops::Deref for IFabricTestManagementClient2 { - type Target = IFabricTestManagementClient; +impl core::ops::Deref for IFabricClusterManagementClient5 { + type Target = IFabricClusterManagementClient4; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricTestManagementClient2, + IFabricClusterManagementClient5, windows_core::IUnknown, - IFabricTestManagementClient + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4 ); -impl IFabricTestManagementClient2 { - pub unsafe fn BeginStartChaos( - &self, - restartpartitiondescription: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartChaos)( - windows_core::Interface::as_raw(self), - restartpartitiondescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStartChaos(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStartChaos)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginStopChaos( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStopChaos)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndStopChaos(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndStopChaos)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginGetChaosReport( +impl IFabricClusterManagementClient5 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginResetPartitionLoad( &self, - getchaosreportdescription: *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + partitionid: windows_core::GUID, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetChaosReport)( - windows_core::Interface::as_raw(self), - getchaosreportdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetChaosReport( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetChaosReport)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginResetPartitionLoad)( + windows_core::Interface::as_raw(self), + core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -unsafe impl Send for IFabricTestManagementClient2 {} -unsafe impl Sync for IFabricTestManagementClient2 {} -#[repr(C)] -pub struct IFabricTestManagementClient2_Vtbl { - pub base__: IFabricTestManagementClient_Vtbl, - pub BeginStartChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginStopChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStopChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetChaosReport: unsafe extern "system" fn( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndResetPartitionLoad)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricClusterManagementClient5_Vtbl { + pub base__: IFabricClusterManagementClient4_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginResetPartitionLoad: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + windows_core::GUID, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetChaosReport: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginResetPartitionLoad: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndResetPartitionLoad: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndResetPartitionLoad: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient5_Impl: IFabricClusterManagementClient4_Impl { + fn BeginResetPartitionLoad( + &self, + partitionid: &windows_core::GUID, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndResetPartitionLoad( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient5_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginResetPartitionLoad< + Identity: IFabricClusterManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + partitionid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient5_Impl::BeginResetPartitionLoad( + this, + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndResetPartitionLoad< + Identity: IFabricClusterManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient5_Impl::EndResetPartitionLoad( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricClusterManagementClient4_Vtbl::new::(), + BeginResetPartitionLoad: BeginResetPartitionLoad::, + EndResetPartitionLoad: EndResetPartitionLoad::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient5 {} windows_core::imp::define_interface!( - IFabricTestManagementClient3, - IFabricTestManagementClient3_Vtbl, - 0xa4b94afd_0cb5_4010_8995_e58e9b6ca373 + IFabricClusterManagementClient6, + IFabricClusterManagementClient6_Vtbl, + 0x9e454ae8_4b8c_4136_884a_37b0b92cc855 ); -impl core::ops::Deref for IFabricTestManagementClient3 { - type Target = IFabricTestManagementClient2; +impl core::ops::Deref for IFabricClusterManagementClient6 { + type Target = IFabricClusterManagementClient5; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricTestManagementClient3, + IFabricClusterManagementClient6, windows_core::IUnknown, - IFabricTestManagementClient, - IFabricTestManagementClient2 + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5 ); -impl IFabricTestManagementClient3 { - pub unsafe fn BeginStartNodeTransition( +impl IFabricClusterManagementClient6 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, - description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION, + enabled: bool, timeoutmilliseconds: u32, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginStartNodeTransition)( - windows_core::Interface::as_raw(self), - description, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self) + .BeginToggleVerboseServicePlacementHealthReporting)( + windows_core::Interface::as_raw(self), + enabled, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndStartNodeTransition(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndStartNodeTransition)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndToggleVerboseServicePlacementHealthReporting)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginGetNodeTransitionProgress( +} +#[repr(C)] +pub struct IFabricClusterManagementClient6_Vtbl { + pub base__: IFabricClusterManagementClient5_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginToggleVerboseServicePlacementHealthReporting: + unsafe extern "system" fn( + *mut core::ffi::c_void, + bool, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginToggleVerboseServicePlacementHealthReporting: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndToggleVerboseServicePlacementHealthReporting: + unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndToggleVerboseServicePlacementHealthReporting: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient6_Impl: IFabricClusterManagementClient5_Impl { + fn BeginToggleVerboseServicePlacementHealthReporting( &self, - operationid: windows_core::GUID, + enabled: bool, timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNodeTransitionProgress)( - windows_core::Interface::as_raw(self), - core::mem::transmute(operationid), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNodeTransitionProgress( + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndToggleVerboseServicePlacementHealthReporting( &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient6_Vtbl { + pub const fn new() -> Self { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNodeTransitionProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting< + Identity: IFabricClusterManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + enabled: bool, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient6_Impl:: BeginToggleVerboseServicePlacementHealthReporting ( this , core::mem::transmute_copy ( & enabled ) , core::mem::transmute_copy ( & timeoutmilliseconds ) , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { context . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + } + } + unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting< + Identity: IFabricClusterManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient6_Impl:: EndToggleVerboseServicePlacementHealthReporting ( this , core::mem::transmute_copy ( & context ) , ) . into ( ) + } + } + Self { + base__: IFabricClusterManagementClient5_Vtbl::new::(), + BeginToggleVerboseServicePlacementHealthReporting: + BeginToggleVerboseServicePlacementHealthReporting::, + EndToggleVerboseServicePlacementHealthReporting: + EndToggleVerboseServicePlacementHealthReporting::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -unsafe impl Send for IFabricTestManagementClient3 {} -unsafe impl Sync for IFabricTestManagementClient3 {} -#[repr(C)] -pub struct IFabricTestManagementClient3_Vtbl { - pub base__: IFabricTestManagementClient2_Vtbl, - pub BeginStartNodeTransition: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndStartNodeTransition: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetNodeTransitionProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::GUID, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNodeTransitionProgress: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient6 {} windows_core::imp::define_interface!( - IFabricTestManagementClient4, - IFabricTestManagementClient4_Vtbl, - 0xb96aa7d4_acc0_4814_89dc_561b0cbb6028 + IFabricClusterManagementClient7, + IFabricClusterManagementClient7_Vtbl, + 0x9b9105ac_d595_4f59_9c94_1ffdbf92a876 ); -impl core::ops::Deref for IFabricTestManagementClient4 { - type Target = IFabricTestManagementClient3; +impl core::ops::Deref for IFabricClusterManagementClient7 { + type Target = IFabricClusterManagementClient6; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricTestManagementClient4, + IFabricClusterManagementClient7, windows_core::IUnknown, - IFabricTestManagementClient, - IFabricTestManagementClient2, - IFabricTestManagementClient3 + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6 ); -impl IFabricTestManagementClient4 { - pub unsafe fn BeginGetChaos( +impl IFabricClusterManagementClient7 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpgradeConfiguration)( + windows_core::Interface::as_raw(self), + startupgradedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpgradeConfiguration)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetChaos)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterConfigurationUpgradeStatus)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetChaos( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( &self, context: P0, - ) -> windows_core::Result + ) -> windows_core::Result where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetChaos)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterConfigurationUpgradeStatus)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn BeginGetChaosSchedule( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetChaosSchedule)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterConfiguration)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetChaosSchedule( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterConfiguration( &self, context: P0, - ) -> windows_core::Result + ) -> windows_core::Result where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetChaosSchedule)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterConfiguration)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn BeginSetChaosSchedule( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetUpgradesPendingApproval( &self, - setchaosscheduledescription : *const super::FabricTypes:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginSetChaosSchedule)( - windows_core::Interface::as_raw(self), - setchaosscheduledescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetUpgradesPendingApproval)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndSetChaosSchedule(&self, context: P0) -> windows_core::Result<()> + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetUpgradesPendingApproval(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndSetChaosSchedule)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndGetUpgradesPendingApproval)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginGetChaosEvents( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginStartApprovedUpgrades( &self, - chaoseventsdescription: *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, timeoutmilliseconds: u32, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetChaosEvents)( - windows_core::Interface::as_raw(self), - chaoseventsdescription, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartApprovedUpgrades)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } - pub unsafe fn EndGetChaosEvents( - &self, - context: P0, - ) -> windows_core::Result + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetChaosEvents)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + (windows_core::Interface::vtable(self).EndStartApprovedUpgrades)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricTestManagementClient4 {} -unsafe impl Sync for IFabricTestManagementClient4 {} #[repr(C)] -pub struct IFabricTestManagementClient4_Vtbl { - pub base__: IFabricTestManagementClient3_Vtbl, - pub BeginGetChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetChaos: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetChaosSchedule: unsafe extern "system" fn( +pub struct IFabricClusterManagementClient7_Vtbl { + pub base__: IFabricClusterManagementClient6_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpgradeConfiguration: unsafe extern "system" fn( *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetChaosSchedule: unsafe extern "system" fn( + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpgradeConfiguration: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpgradeConfiguration: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub BeginSetChaosSchedule: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpgradeConfiguration: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetClusterConfigurationUpgradeStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetClusterConfigurationUpgradeStatus: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterConfigurationUpgradeStatus: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, - u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndSetChaosSchedule: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginGetChaosEvents: unsafe extern "system" fn( + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterConfigurationUpgradeStatus: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetClusterConfiguration: unsafe extern "system" fn( *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndGetChaosEvents: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetClusterConfiguration: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterConfiguration: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricUpgradeOrchestrationServiceStateResult, - IFabricUpgradeOrchestrationServiceStateResult_Vtbl, - 0x413968aa_2eb7_4023_b9dc_0f2160b76a6d -); -impl core::ops::Deref for IFabricUpgradeOrchestrationServiceStateResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricUpgradeOrchestrationServiceStateResult, - windows_core::IUnknown -); -impl IFabricUpgradeOrchestrationServiceStateResult { - pub unsafe fn get_State( - &self, - ) -> *mut super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - (windows_core::Interface::vtable(self).get_State)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricUpgradeOrchestrationServiceStateResult {} -unsafe impl Sync for IFabricUpgradeOrchestrationServiceStateResult {} -#[repr(C)] -pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_State :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE , } -windows_core::imp::define_interface!( - IFabricUpgradeProgressResult, - IFabricUpgradeProgressResult_Vtbl, - 0x2adb07db_f7db_4621_9afc_daabe1e53bf8 -); -impl core::ops::Deref for IFabricUpgradeProgressResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricUpgradeProgressResult, windows_core::IUnknown); -impl IFabricUpgradeProgressResult { - pub unsafe fn get_TargetCodeVersion(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_TargetCodeVersion)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_TargetConfigVersion(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_TargetConfigVersion)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_UPGRADE_STATE { - (windows_core::Interface::vtable(self).get_UpgradeState)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetUpgradeDomains)( - windows_core::Interface::as_raw(self), - itemcount, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetChangedUpgradeDomains( - &self, - previousprogress: P0, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( - windows_core::Interface::as_raw(self), - previousprogress.param().abi(), - itemcount, - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricUpgradeProgressResult {} -unsafe impl Sync for IFabricUpgradeProgressResult {} -#[repr(C)] -pub struct IFabricUpgradeProgressResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_TargetCodeVersion: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub get_TargetConfigVersion: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub get_UpgradeState: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> super::FabricTypes::FABRIC_UPGRADE_STATE, - pub GetUpgradeDomains: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT, - pub GetChangedUpgradeDomains: unsafe extern "system" fn( + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterConfiguration: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetUpgradesPendingApproval: unsafe extern "system" fn( *mut core::ffi::c_void, + u32, *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricUpgradeProgressResult2, - IFabricUpgradeProgressResult2_Vtbl, - 0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75 -); -impl core::ops::Deref for IFabricUpgradeProgressResult2 { - type Target = IFabricUpgradeProgressResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricUpgradeProgressResult2, - windows_core::IUnknown, - IFabricUpgradeProgressResult -); -impl IFabricUpgradeProgressResult2 { - pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { - (windows_core::Interface::vtable(self).get_RollingUpgradeMode)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_NextUpgradeDomain)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricUpgradeProgressResult2 {} -unsafe impl Sync for IFabricUpgradeProgressResult2 {} -#[repr(C)] -pub struct IFabricUpgradeProgressResult2_Vtbl { - pub base__: IFabricUpgradeProgressResult_Vtbl, - pub get_RollingUpgradeMode: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE, - pub get_NextUpgradeDomain: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, -} -windows_core::imp::define_interface!( - IFabricUpgradeProgressResult3, - IFabricUpgradeProgressResult3_Vtbl, - 0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47 -); -impl core::ops::Deref for IFabricUpgradeProgressResult3 { - type Target = IFabricUpgradeProgressResult2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricUpgradeProgressResult3, - windows_core::IUnknown, - IFabricUpgradeProgressResult, - IFabricUpgradeProgressResult2 -); -impl IFabricUpgradeProgressResult3 { - pub unsafe fn get_UpgradeProgress(&self) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS { - (windows_core::Interface::vtable(self).get_UpgradeProgress)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricUpgradeProgressResult3 {} -unsafe impl Sync for IFabricUpgradeProgressResult3 {} -#[repr(C)] -pub struct IFabricUpgradeProgressResult3_Vtbl { - pub base__: IFabricUpgradeProgressResult2_Vtbl, - pub get_UpgradeProgress: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS, -} -pub const FabricClient: windows_core::GUID = - windows_core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); -pub trait IFabricApplicationHealthResult_Impl: Sized { - fn get_ApplicationHealth(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH; -} -impl windows_core::RuntimeName for IFabricApplicationHealthResult {} -impl IFabricApplicationHealthResult_Vtbl { - pub const fn new( - ) -> IFabricApplicationHealthResult_Vtbl - where - Identity: IFabricApplicationHealthResult_Impl, - { - unsafe extern "system" fn get_ApplicationHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_HEALTH - where - Identity: IFabricApplicationHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationHealthResult_Impl::get_ApplicationHealth(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationHealth: get_ApplicationHealth::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetUpgradesPendingApproval: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetUpgradesPendingApproval: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetUpgradesPendingApproval: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginStartApprovedUpgrades: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginStartApprovedUpgrades: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartApprovedUpgrades: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartApprovedUpgrades: usize, } -pub trait IFabricApplicationManagementClient_Impl: Sized { - fn BeginProvisionApplicationType( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient7_Impl: IFabricClusterManagementClient6_Impl { + fn BeginUpgradeConfiguration( &self, - applicationbuildpath: &windows_core::PCWSTR, + startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndProvisionApplicationType( + fn EndUpgradeConfiguration( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; - fn BeginCreateApplication( + fn BeginGetClusterConfigurationUpgradeStatus( &self, - description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndCreateApplication( + fn EndGetClusterConfigurationUpgradeStatus( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginUpgradeApplication( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetClusterConfiguration( &self, - upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndUpgradeApplication( + fn EndGetClusterConfiguration( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginGetApplicationUpgradeProgress( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetUpgradesPendingApproval( &self, - applicationname: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetApplicationUpgradeProgress( + fn EndGetUpgradesPendingApproval( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginMoveNextApplicationUpgradeDomain( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginStartApprovedUpgrades( &self, - progress: Option<&IFabricApplicationUpgradeProgressResult2>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndMoveNextApplicationUpgradeDomain( + fn EndStartApprovedUpgrades( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; - fn BeginDeleteApplication( +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient7_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginUpgradeConfiguration< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::BeginUpgradeConfiguration( + this, + core::mem::transmute_copy(&startupgradedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUpgradeConfiguration< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient7_Impl::EndUpgradeConfiguration( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl:: BeginGetClusterConfigurationUpgradeStatus ( this , core::mem::transmute_copy ( & timeoutmilliseconds ) , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { context . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + } + } + unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::EndGetClusterConfigurationUpgradeStatus( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginGetClusterConfiguration< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::BeginGetClusterConfiguration( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetClusterConfiguration< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::EndGetClusterConfiguration( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginGetUpgradesPendingApproval< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::BeginGetUpgradesPendingApproval( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetUpgradesPendingApproval< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient7_Impl::EndGetUpgradesPendingApproval( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginStartApprovedUpgrades< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient7_Impl::BeginStartApprovedUpgrades( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndStartApprovedUpgrades< + Identity: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricClusterManagementClient7_Impl::EndStartApprovedUpgrades( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricClusterManagementClient6_Vtbl::new::(), + BeginUpgradeConfiguration: BeginUpgradeConfiguration::, + EndUpgradeConfiguration: EndUpgradeConfiguration::, + BeginGetClusterConfigurationUpgradeStatus: BeginGetClusterConfigurationUpgradeStatus::< + Identity, + OFFSET, + >, + EndGetClusterConfigurationUpgradeStatus: EndGetClusterConfigurationUpgradeStatus::< + Identity, + OFFSET, + >, + BeginGetClusterConfiguration: BeginGetClusterConfiguration::, + EndGetClusterConfiguration: EndGetClusterConfiguration::, + BeginGetUpgradesPendingApproval: BeginGetUpgradesPendingApproval::, + EndGetUpgradesPendingApproval: EndGetUpgradesPendingApproval::, + BeginStartApprovedUpgrades: BeginStartApprovedUpgrades::, + EndStartApprovedUpgrades: EndStartApprovedUpgrades::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient7 {} +windows_core::imp::define_interface!( + IFabricClusterManagementClient8, + IFabricClusterManagementClient8_Vtbl, + 0x0b79641c_79a6_4162_904a_840babd08381 +); +impl core::ops::Deref for IFabricClusterManagementClient8 { + type Target = IFabricClusterManagementClient7; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient8, + windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6, + IFabricClusterManagementClient7 +); +impl IFabricClusterManagementClient8 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetClusterManifest2( &self, - applicationname: super::FabricTypes::FABRIC_URI, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeleteApplication( + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterManifest2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterManifest2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginUnprovisionApplicationType( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterManifest2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricClusterManagementClient8_Vtbl { + pub base__: IFabricClusterManagementClient7_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetClusterManifest2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetClusterManifest2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterManifest2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterManifest2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient8_Impl: IFabricClusterManagementClient7_Impl { + fn BeginGetClusterManifest2( &self, - applicationtypename: &windows_core::PCWSTR, - applicationtypeversion: &windows_core::PCWSTR, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndUnprovisionApplicationType( + fn EndGetClusterManifest2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricApplicationManagementClient {} -impl IFabricApplicationManagementClient_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient_Vtbl - where - Identity: IFabricApplicationManagementClient_Impl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient8_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn BeginProvisionApplicationType< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetClusterManifest2< + Identity: IFabricClusterManagementClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationbuildpath: windows_core::PCWSTR, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginProvisionApplicationType( - this, - core::mem::transmute(&applicationbuildpath), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient8_Impl::BeginGetClusterManifest2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndProvisionApplicationType< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetClusterManifest2< + Identity: IFabricClusterManagementClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndProvisionApplicationType( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } - unsafe extern "system" fn BeginCreateApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginCreateApplication( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient8_Impl::EndGetClusterManifest2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndCreateApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndCreateApplication( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + Self { + base__: IFabricClusterManagementClient7_Vtbl::new::(), + BeginGetClusterManifest2: BeginGetClusterManifest2::, + EndGetClusterManifest2: EndGetClusterManifest2::, } - unsafe extern "system" fn BeginUpgradeApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginUpgradeApplication( - this, - core::mem::transmute_copy(&upgradedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient8 {} +windows_core::imp::define_interface!( + IFabricClusterManagementClient9, + IFabricClusterManagementClient9_Vtbl, + 0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e +); +impl core::ops::Deref for IFabricClusterManagementClient9 { + type Target = IFabricClusterManagementClient8; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient9, + windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6, + IFabricClusterManagementClient7, + IFabricClusterManagementClient8 +); +impl IFabricClusterManagementClient9 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetUpgradeOrchestrationServiceState( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetUpgradeOrchestrationServiceState)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndUpgradeApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndUpgradeApplication( - this, - windows_core::from_raw_borrowed(&context), + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetUpgradeOrchestrationServiceState)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, ) - .into() + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetApplicationUpgradeProgress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginGetApplicationUpgradeProgress( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginSetUpgradeOrchestrationServiceState( + &self, + state: P0, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P0: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginSetUpgradeOrchestrationServiceState)( + windows_core::Interface::as_raw(self), + state.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetApplicationUpgradeProgress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::EndGetApplicationUpgradeProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndSetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndSetUpgradeOrchestrationServiceState)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricClusterManagementClient9_Vtbl { + pub base__: IFabricClusterManagementClient8_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetUpgradeOrchestrationServiceState: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetUpgradeOrchestrationServiceState: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetUpgradeOrchestrationServiceState: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginSetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginSetUpgradeOrchestrationServiceState: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndSetUpgradeOrchestrationServiceState: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndSetUpgradeOrchestrationServiceState: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricClusterManagementClient9_Impl: IFabricClusterManagementClient8_Impl { + fn BeginGetUpgradeOrchestrationServiceState( + &self, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetUpgradeOrchestrationServiceState( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginSetUpgradeOrchestrationServiceState( + &self, + state: &windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndSetUpgradeOrchestrationServiceState( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricClusterManagementClient9_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState< + Identity: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - progress: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginMoveNextApplicationUpgradeDomain( - this, - windows_core::from_raw_borrowed(&progress), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient9_Impl::BeginGetUpgradeOrchestrationServiceState( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState< + Identity: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndMoveNextApplicationUpgradeDomain( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } - unsafe extern "system" fn BeginDeleteApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginDeleteApplication( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient9_Impl::EndGetUpgradeOrchestrationServiceState( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndDeleteApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndDeleteApplication( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } - unsafe extern "system" fn BeginUnprovisionApplicationType< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState< + Identity: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationtypename: windows_core::PCWSTR, - applicationtypeversion: windows_core::PCWSTR, + state: windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient_Impl::BeginUnprovisionApplicationType( - this, - core::mem::transmute(&applicationtypename), - core::mem::transmute(&applicationtypeversion), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient9_Impl::BeginSetUpgradeOrchestrationServiceState( + this, + core::mem::transmute(&state), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndUnprovisionApplicationType< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState< + Identity: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient_Impl::EndUnprovisionApplicationType( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricClusterManagementClient9_Impl::EndSetUpgradeOrchestrationServiceState( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginProvisionApplicationType: BeginProvisionApplicationType::, - EndProvisionApplicationType: EndProvisionApplicationType::, - BeginCreateApplication: BeginCreateApplication::, - EndCreateApplication: EndCreateApplication::, - BeginUpgradeApplication: BeginUpgradeApplication::, - EndUpgradeApplication: EndUpgradeApplication::, - BeginGetApplicationUpgradeProgress: BeginGetApplicationUpgradeProgress::< + base__: IFabricClusterManagementClient8_Vtbl::new::(), + BeginGetUpgradeOrchestrationServiceState: BeginGetUpgradeOrchestrationServiceState::< Identity, OFFSET, >, - EndGetApplicationUpgradeProgress: EndGetApplicationUpgradeProgress::, - BeginMoveNextApplicationUpgradeDomain: BeginMoveNextApplicationUpgradeDomain::< + EndGetUpgradeOrchestrationServiceState: EndGetUpgradeOrchestrationServiceState::< Identity, OFFSET, >, - EndMoveNextApplicationUpgradeDomain: EndMoveNextApplicationUpgradeDomain::< + BeginSetUpgradeOrchestrationServiceState: BeginSetUpgradeOrchestrationServiceState::< + Identity, + OFFSET, + >, + EndSetUpgradeOrchestrationServiceState: EndSetUpgradeOrchestrationServiceState::< Identity, OFFSET, >, - BeginDeleteApplication: BeginDeleteApplication::, - EndDeleteApplication: EndDeleteApplication::, - BeginUnprovisionApplicationType: BeginUnprovisionApplicationType::, - EndUnprovisionApplicationType: EndUnprovisionApplicationType::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricApplicationManagementClient10_Impl: - Sized + IFabricApplicationManagementClient9_Impl -{ - fn BeginProvisionApplicationType3( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricClusterManagementClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricClusterManagementClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricClusterManagementClient9 {} +windows_core::imp::define_interface!( + IFabricDeployedApplicationHealthResult, + IFabricDeployedApplicationHealthResult_Vtbl, + 0x4df50bf4_7c28_4210_94f7_50625df6c942 +); +windows_core::imp::interface_hierarchy!( + IFabricDeployedApplicationHealthResult, + windows_core::IUnknown +); +impl IFabricDeployedApplicationHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedApplicationHealth( &self, - description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndProvisionApplicationType3( + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedApplicationHealth)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricDeployedApplicationHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_DeployedApplicationHealth: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_DeployedApplicationHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricDeployedApplicationHealthResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedApplicationHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH; } -impl windows_core::RuntimeName for IFabricApplicationManagementClient10 {} -impl IFabricApplicationManagementClient10_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient10_Vtbl - where - Identity: IFabricApplicationManagementClient10_Impl, - { - unsafe extern "system" fn BeginProvisionApplicationType3< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricDeployedApplicationHealthResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_DeployedApplicationHealth< + Identity: IFabricDeployedApplicationHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description : *const super::FabricTypes:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient10_Impl::BeginProvisionApplicationType3( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDeployedApplicationHealthResult_Impl::get_DeployedApplicationHealth(this) } } - unsafe extern "system" fn EndProvisionApplicationType3< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_DeployedApplicationHealth: get_DeployedApplicationHealth::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricDeployedApplicationHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricDeployedApplicationHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricDeployedApplicationHealthResult {} +windows_core::imp::define_interface!( + IFabricDeployedServicePackageHealthResult, + IFabricDeployedServicePackageHealthResult_Vtbl, + 0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1 +); +windows_core::imp::interface_hierarchy!( + IFabricDeployedServicePackageHealthResult, + windows_core::IUnknown +); +impl IFabricDeployedServicePackageHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedServicePackageHealth( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedServicePackageHealth)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricDeployedServicePackageHealthResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedServicePackageHealth :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedServicePackageHealth :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricDeployedServicePackageHealthResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedServicePackageHealth( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricDeployedServicePackageHealthResult_Vtbl { + pub const fn new< + Identity: IFabricDeployedServicePackageHealthResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedServicePackageHealth< + Identity: IFabricDeployedServicePackageHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient10_Impl::EndProvisionApplicationType3( - this, - windows_core::from_raw_borrowed(&context), + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDeployedServicePackageHealthResult_Impl::get_DeployedServicePackageHealth( + this, + ) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricDeployedServicePackageHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricDeployedServicePackageHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricDeployedServicePackageHealthResult {} +windows_core::imp::define_interface!( + IFabricFaultManagementClient, + IFabricFaultManagementClient_Vtbl, + 0x769e1838_8726_4dcd_a3c0_211673a6967a +); +windows_core::imp::interface_hierarchy!(IFabricFaultManagementClient, windows_core::IUnknown); +impl IFabricFaultManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestartNode( + &self, + description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestartNode)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestartNode( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndRestartNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartNode( + &self, + description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartNode)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartNode( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndStartNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStopNode( + &self, + description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStopNode)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStopNode(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndStopNode)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginMovePrimary( + &self, + description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMovePrimary)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndMovePrimary( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndMovePrimary)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginMoveSecondary( + &self, + description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginMoveSecondary)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, ) - .into() - } - Self { - base__: IFabricApplicationManagementClient9_Vtbl::new::(), - BeginProvisionApplicationType3: BeginProvisionApplicationType3::, - EndProvisionApplicationType3: EndProvisionApplicationType3::, + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndMoveSecondary( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndMoveSecondary)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricApplicationManagementClient2_Impl: - Sized + IFabricApplicationManagementClient_Impl -{ - fn BeginGetApplicationManifest( +#[repr(C)] +pub struct IFabricFaultManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestartNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestartNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestartNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestartNode: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartNode: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStopNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStopNode: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStopNode: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStopNode: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestartDeployedCodePackage: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestartDeployedCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestartDeployedCodePackage: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginMovePrimary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginMovePrimary: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndMovePrimary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMovePrimary: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginMoveSecondary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginMoveSecondary: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndMoveSecondary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndMoveSecondary: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricFaultManagementClient_Impl: windows_core::IUnknownImpl { + fn BeginRestartNode( &self, - applicationtypename: &windows_core::PCWSTR, - applicationtypeversion: &windows_core::PCWSTR, + description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetApplicationManifest( + fn EndRestartNode( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginMoveNextApplicationUpgradeDomain2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginStartNode( &self, - applicationname: super::FabricTypes::FABRIC_URI, - nextupgradedomain: &windows_core::PCWSTR, + description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndMoveNextApplicationUpgradeDomain2( + fn EndStartNode( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricApplicationManagementClient2 {} -impl IFabricApplicationManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient2_Vtbl - where - Identity: IFabricApplicationManagementClient2_Impl, - { - unsafe extern "system" fn BeginGetApplicationManifest< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationtypename: windows_core::PCWSTR, - applicationtypeversion: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient2_Impl::BeginGetApplicationManifest( - this, - core::mem::transmute(&applicationtypename), - core::mem::transmute(&applicationtypeversion), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationManifest< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient2_Impl::EndGetApplicationManifest( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - nextupgradedomain: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient2_Impl::BeginMoveNextApplicationUpgradeDomain2( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute(&nextupgradedomain), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient2_Impl::EndMoveNextApplicationUpgradeDomain2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } - Self { - base__: IFabricApplicationManagementClient_Vtbl::new::(), - BeginGetApplicationManifest: BeginGetApplicationManifest::, - EndGetApplicationManifest: EndGetApplicationManifest::, - BeginMoveNextApplicationUpgradeDomain2: BeginMoveNextApplicationUpgradeDomain2::< - Identity, - OFFSET, - >, - EndMoveNextApplicationUpgradeDomain2: EndMoveNextApplicationUpgradeDomain2::< - Identity, - OFFSET, - >, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient3_Impl: - Sized + IFabricApplicationManagementClient2_Impl -{ - fn BeginUpdateApplicationUpgrade( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginStopNode( &self, - description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndUpdateApplicationUpgrade( + fn EndStopNode( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; fn BeginRestartDeployedCodePackage( &self, - restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRestartDeployedCodePackage( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn CopyApplicationPackage( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginMovePrimary( &self, - imagestoreconnectionstring: &windows_core::PCWSTR, - applicationpackagepath: &windows_core::PCWSTR, - applicationpackagepathinimagestore: &windows_core::PCWSTR, - ) -> windows_core::Result<()>; - fn RemoveApplicationPackage( + description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMovePrimary( &self, - imagestoreconnectionstring: &windows_core::PCWSTR, - applicationpackagepathinimagestore: &windows_core::PCWSTR, - ) -> windows_core::Result<()>; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginMoveSecondary( + &self, + description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndMoveSecondary( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricApplicationManagementClient3 {} -impl IFabricApplicationManagementClient3_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient3_Vtbl - where - Identity: IFabricApplicationManagementClient3_Impl, - { - unsafe extern "system" fn BeginUpdateApplicationUpgrade< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricFaultManagementClient_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginRestartNode< + Identity: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginRestartNode( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndRestartNode< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndRestartNode( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginStartNode< + Identity: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient3_Impl::BeginUpdateApplicationUpgrade( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginStartNode( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndUpdateApplicationUpgrade< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndStartNode< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient3_Impl::EndUpdateApplicationUpgrade( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndStartNode( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginStopNode< + Identity: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginStopNode( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndStopNode< + Identity: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndStopNode( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: windows_core::IUnknownImpl, + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - restartcodepackagedescription : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + description : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient3_Impl::BeginRestartDeployedCodePackage( - this, - core::mem::transmute_copy(&restartcodepackagedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginRestartDeployedCodePackage( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: windows_core::IUnknownImpl, + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient3_Impl::EndRestartDeployedCodePackage( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndRestartDeployedCodePackage( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn CopyApplicationPackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginMovePrimary< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - imagestoreconnectionstring: windows_core::PCWSTR, - applicationpackagepath: windows_core::PCWSTR, - applicationpackagepathinimagestore: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient3_Impl::CopyApplicationPackage( - this, - core::mem::transmute(&imagestoreconnectionstring), - core::mem::transmute(&applicationpackagepath), - core::mem::transmute(&applicationpackagepathinimagestore), - ) - .into() + description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginMovePrimary( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn RemoveApplicationPackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndMovePrimary< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - imagestoreconnectionstring: windows_core::PCWSTR, - applicationpackagepathinimagestore: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient3_Impl::RemoveApplicationPackage( - this, - core::mem::transmute(&imagestoreconnectionstring), - core::mem::transmute(&applicationpackagepathinimagestore), - ) - .into() - } - Self { - base__: IFabricApplicationManagementClient2_Vtbl::new::(), - BeginUpdateApplicationUpgrade: BeginUpdateApplicationUpgrade::, - EndUpdateApplicationUpgrade: EndUpdateApplicationUpgrade::, - BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::, - EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, - CopyApplicationPackage: CopyApplicationPackage::, - RemoveApplicationPackage: RemoveApplicationPackage::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndMovePrimary( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient4_Impl: - Sized + IFabricApplicationManagementClient3_Impl -{ - fn BeginDeployServicePackageToNode( - &self, - applicationtypename: &windows_core::PCWSTR, - applicationtypeversion: &windows_core::PCWSTR, - servicemanifestname: &windows_core::PCWSTR, - sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeployServicePackageToNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricApplicationManagementClient4 {} -impl IFabricApplicationManagementClient4_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient4_Vtbl - where - Identity: IFabricApplicationManagementClient4_Impl, - { - unsafe extern "system" fn BeginDeployServicePackageToNode< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginMoveSecondary< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationtypename: windows_core::PCWSTR, - applicationtypeversion: windows_core::PCWSTR, - servicemanifestname: windows_core::PCWSTR, - sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: windows_core::PCWSTR, + description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient4_Impl::BeginDeployServicePackageToNode( - this, - core::mem::transmute(&applicationtypename), - core::mem::transmute(&applicationtypeversion), - core::mem::transmute(&servicemanifestname), - core::mem::transmute_copy(&sharingpolicy), - core::mem::transmute(&nodename), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::BeginMoveSecondary( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } - unsafe extern "system" fn EndDeployServicePackageToNode< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndMoveSecondary< + Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient4_Impl::EndDeployServicePackageToNode( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricFaultManagementClient_Impl::EndMoveSecondary( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: IFabricApplicationManagementClient3_Vtbl::new::(), - BeginDeployServicePackageToNode: BeginDeployServicePackageToNode::, - EndDeployServicePackageToNode: EndDeployServicePackageToNode::, + base__: windows_core::IUnknown_Vtbl::new::(), + BeginRestartNode: BeginRestartNode::, + EndRestartNode: EndRestartNode::, + BeginStartNode: BeginStartNode::, + EndStartNode: EndStartNode::, + BeginStopNode: BeginStopNode::, + EndStopNode: EndStopNode::, + BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::, + EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, + BeginMovePrimary: BeginMovePrimary::, + EndMovePrimary: EndMovePrimary::, + BeginMoveSecondary: BeginMoveSecondary::, + EndMoveSecondary: EndMoveSecondary::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationManagementClient5_Impl: - Sized + IFabricApplicationManagementClient4_Impl -{ - fn BeginRollbackApplicationUpgrade( - &self, - applicationname: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRollbackApplicationUpgrade( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricFaultManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricFaultManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricFaultManagementClient {} +windows_core::imp::define_interface!( + IFabricGatewayInformationResult, + IFabricGatewayInformationResult_Vtbl, + 0xa57e7740_fa33_448e_9f35_8bf802a713aa +); +windows_core::imp::interface_hierarchy!(IFabricGatewayInformationResult, windows_core::IUnknown); +impl IFabricGatewayInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_GatewayInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_GatewayInformation)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricApplicationManagementClient5 {} -impl IFabricApplicationManagementClient5_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient5_Vtbl - where - Identity: IFabricApplicationManagementClient5_Impl, +#[repr(C)] +pub struct IFabricGatewayInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_GatewayInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_GatewayInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGatewayInformationResult_Impl: windows_core::IUnknownImpl { + fn get_GatewayInformation(&self) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGatewayInformationResult_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn BeginRollbackApplicationUpgrade< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_GatewayInformation< + Identity: IFabricGatewayInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient5_Impl::BeginRollbackApplicationUpgrade( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGatewayInformationResult_Impl::get_GatewayInformation(this) } } - unsafe extern "system" fn EndRollbackApplicationUpgrade< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient5_Impl::EndRollbackApplicationUpgrade( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricApplicationManagementClient4_Vtbl::new::(), - BeginRollbackApplicationUpgrade: BeginRollbackApplicationUpgrade::, - EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_GatewayInformation: get_GatewayInformation::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGatewayInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGatewayInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGatewayInformationResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationListResult, + IFabricGetApplicationListResult_Vtbl, + 0xf038c61e_7059_41b6_8dea_d304a2080f46 +); +windows_core::imp::interface_hierarchy!(IFabricGetApplicationListResult, windows_core::IUnknown); +impl IFabricGetApplicationListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationList( + &self, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationList)( + windows_core::Interface::as_raw(self), + ) + } } } -pub trait IFabricApplicationManagementClient6_Impl: - Sized + IFabricApplicationManagementClient5_Impl -{ - fn BeginUpdateApplication( - &self, - applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUpdateApplication( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; +#[repr(C)] +pub struct IFabricGetApplicationListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ApplicationList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationList: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationListResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationList(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST; } -impl windows_core::RuntimeName for IFabricApplicationManagementClient6 {} -impl IFabricApplicationManagementClient6_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient6_Vtbl - where - Identity: IFabricApplicationManagementClient6_Impl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationListResult_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn BeginUpdateApplication< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_ApplicationList< + Identity: IFabricGetApplicationListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationupdatedescription : *const super::FabricTypes:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient6_Impl::BeginUpdateApplication( - this, - core::mem::transmute_copy(&applicationupdatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationListResult_Impl::get_ApplicationList(this) } } - unsafe extern "system" fn EndUpdateApplication< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient6_Impl::EndUpdateApplication( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricApplicationManagementClient5_Vtbl::new::(), - BeginUpdateApplication: BeginUpdateApplication::, - EndUpdateApplication: EndUpdateApplication::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationList: get_ApplicationList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationManagementClient7_Impl: - Sized + IFabricApplicationManagementClient6_Impl -{ - fn BeginDeleteApplication2( - &self, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeleteApplication2( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationListResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationListResult2, + IFabricGetApplicationListResult2_Vtbl, + 0x6637a860_26bc_4f1a_902f_f418fcfe1e51 +); +impl core::ops::Deref for IFabricGetApplicationListResult2 { + type Target = IFabricGetApplicationListResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricApplicationManagementClient7 {} -impl IFabricApplicationManagementClient7_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient7_Vtbl - where - Identity: IFabricApplicationManagementClient7_Impl, +windows_core::imp::interface_hierarchy!( + IFabricGetApplicationListResult2, + windows_core::IUnknown, + IFabricGetApplicationListResult +); +impl IFabricGetApplicationListResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetApplicationListResult2_Vtbl { + pub base__: IFabricGetApplicationListResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationListResult2_Impl: IFabricGetApplicationListResult_Impl { + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationListResult2_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn BeginDeleteApplication2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetApplicationListResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient7_Impl::BeginDeleteApplication2( - this, - core::mem::transmute_copy(&deletedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationListResult2_Impl::get_PagingStatus(this) } } - unsafe extern "system" fn EndDeleteApplication2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient7_Impl::EndDeleteApplication2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricApplicationManagementClient6_Vtbl::new::(), - BeginDeleteApplication2: BeginDeleteApplication2::, - EndDeleteApplication2: EndDeleteApplication2::, + base__: IFabricGetApplicationListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricApplicationManagementClient8_Impl: - Sized + IFabricApplicationManagementClient7_Impl -{ - fn BeginProvisionApplicationType2( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationListResult2 {} +windows_core::imp::define_interface!( + IFabricGetApplicationLoadInformationResult, + IFabricGetApplicationLoadInformationResult_Vtbl, + 0x38fd0512_7586_4bd5_9616_b7070cf025c0 +); +windows_core::imp::interface_hierarchy!( + IFabricGetApplicationLoadInformationResult, + windows_core::IUnknown +); +impl IFabricGetApplicationLoadInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationLoadInformation( &self, - description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndProvisionApplicationType2( + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationLoadInformation)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetApplicationLoadInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ApplicationLoadInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationLoadInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationLoadInformationResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION; } -impl windows_core::RuntimeName for IFabricApplicationManagementClient8 {} -impl IFabricApplicationManagementClient8_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient8_Vtbl - where - Identity: IFabricApplicationManagementClient8_Impl, - { - unsafe extern "system" fn BeginProvisionApplicationType2< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationLoadInformationResult_Vtbl { + pub const fn new< + Identity: IFabricGetApplicationLoadInformationResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ApplicationLoadInformation< + Identity: IFabricGetApplicationLoadInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient8_Impl::BeginProvisionApplicationType2( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationLoadInformationResult_Impl::get_ApplicationLoadInformation( + this, + ) } } - unsafe extern "system" fn EndProvisionApplicationType2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient8_Impl::EndProvisionApplicationType2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricApplicationManagementClient7_Vtbl::new::(), - BeginProvisionApplicationType2: BeginProvisionApplicationType2::, - EndProvisionApplicationType2: EndProvisionApplicationType2::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationLoadInformation: get_ApplicationLoadInformation::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationManagementClient9_Impl: - Sized + IFabricApplicationManagementClient8_Impl -{ - fn BeginUnprovisionApplicationType2( - &self, - description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUnprovisionApplicationType2( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationLoadInformationResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationNameResult, + IFabricGetApplicationNameResult_Vtbl, + 0x258dbcc8_ac9a_47ff_838b_57ff506c73b1 +); +windows_core::imp::interface_hierarchy!(IFabricGetApplicationNameResult, windows_core::IUnknown); +impl IFabricGetApplicationNameResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricApplicationManagementClient9 {} -impl IFabricApplicationManagementClient9_Vtbl { - pub const fn new( - ) -> IFabricApplicationManagementClient9_Vtbl - where - Identity: IFabricApplicationManagementClient9_Impl, - { - unsafe extern "system" fn BeginUnprovisionApplicationType2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationManagementClient9_Impl::BeginUnprovisionApplicationType2( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationName)( + windows_core::Interface::as_raw(self), + ) } - unsafe extern "system" fn EndUnprovisionApplicationType2< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetApplicationNameResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ApplicationName: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationName: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationNameResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationName(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationNameResult_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn get_ApplicationName< + Identity: IFabricGetApplicationNameResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationManagementClient9_Impl::EndUnprovisionApplicationType2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationNameResult_Impl::get_ApplicationName(this) + } } Self { - base__: IFabricApplicationManagementClient8_Vtbl::new::(), - BeginUnprovisionApplicationType2: BeginUnprovisionApplicationType2::, - EndUnprovisionApplicationType2: EndUnprovisionApplicationType2::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationName: get_ApplicationName::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationUpgradeProgressResult_Impl: Sized { - fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI; - fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR; - fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR; - fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE; - fn GetUpgradeDomains( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationNameResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationNameResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationNameResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationNetworkListResult, + IFabricGetApplicationNetworkListResult_Vtbl, + 0x4f9d0390_aa08_4dee_ba49_62891eb47c37 +); +windows_core::imp::interface_hierarchy!( + IFabricGetApplicationNetworkListResult, + windows_core::IUnknown +); +impl IFabricGetApplicationNetworkListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationNetworkList( &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; - fn GetChangedUpgradeDomains( + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationNetworkList)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetApplicationNetworkListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ApplicationNetworkList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ApplicationNetworkList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationNetworkListResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationNetworkList( &self, - previousprogress: Option<&IFabricApplicationUpgradeProgressResult>, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; } -impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult {} -impl IFabricApplicationUpgradeProgressResult_Vtbl { - pub const fn new( - ) -> IFabricApplicationUpgradeProgressResult_Vtbl - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - unsafe extern "system" fn get_ApplicationName< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_URI - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationName(this) - } - unsafe extern "system" fn get_ApplicationTypeName< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationNetworkListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ApplicationNetworkList< + Identity: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationTypeName(this) + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationNetworkListResult_Impl::get_ApplicationNetworkList(this) + } } - unsafe extern "system" fn get_TargetApplicationTypeVersion< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult_Impl::get_TargetApplicationTypeVersion(this) + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationNetworkListResult_Impl::get_PagingStatus(this) + } } - unsafe extern "system" fn get_UpgradeState< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult_Impl::get_UpgradeState(this) + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationNetworkList: get_ApplicationNetworkList::, + get_PagingStatus: get_PagingStatus::, } - unsafe extern "system" fn GetUpgradeDomains< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationUpgradeProgressResult_Impl::GetUpgradeDomains( - this, - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationNetworkListResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationTypeListResult, + IFabricGetApplicationTypeListResult_Vtbl, + 0x944f7a70_224e_4191_8dd1_bba46dc88dd2 +); +windows_core::imp::interface_hierarchy!( + IFabricGetApplicationTypeListResult, + windows_core::IUnknown +); +impl IFabricGetApplicationTypeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationTypeList)( + windows_core::Interface::as_raw(self), + ) } - unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetApplicationTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ApplicationTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ApplicationTypeList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationTypeListResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationTypeListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ApplicationTypeList< + Identity: IFabricGetApplicationTypeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - previousprogress: *mut core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT - where - Identity: IFabricApplicationUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricApplicationUpgradeProgressResult_Impl::GetChangedUpgradeDomains( - this, - windows_core::from_raw_borrowed(&previousprogress), - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationTypeListResult_Impl::get_ApplicationTypeList(this) } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, - get_ApplicationTypeName: get_ApplicationTypeName::, - get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::, - get_UpgradeState: get_UpgradeState::, - GetUpgradeDomains: GetUpgradeDomains::, - GetChangedUpgradeDomains: GetChangedUpgradeDomains::, + get_ApplicationTypeList: get_ApplicationTypeList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationUpgradeProgressResult2_Impl: - Sized + IFabricApplicationUpgradeProgressResult_Impl -{ - fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE; - fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationTypeListResult {} +windows_core::imp::define_interface!( + IFabricGetApplicationTypePagedListResult, + IFabricGetApplicationTypePagedListResult_Vtbl, + 0x5d8dde9c_05e8_428d_b494_43873d7c2db8 +); +windows_core::imp::interface_hierarchy!( + IFabricGetApplicationTypePagedListResult, + windows_core::IUnknown +); +impl IFabricGetApplicationTypePagedListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationTypePagedList( + &self, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationTypePagedList)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} -impl IFabricApplicationUpgradeProgressResult2_Vtbl { - pub const fn new( - ) -> IFabricApplicationUpgradeProgressResult2_Vtbl - where - Identity: IFabricApplicationUpgradeProgressResult2_Impl, - { - unsafe extern "system" fn get_RollingUpgradeMode< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetApplicationTypePagedListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ApplicationTypePagedList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ApplicationTypePagedList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetApplicationTypePagedListResult_Impl: windows_core::IUnknownImpl { + fn get_ApplicationTypePagedList( + &self, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetApplicationTypePagedListResult_Vtbl { + pub const fn new< + Identity: IFabricGetApplicationTypePagedListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ApplicationTypePagedList< + Identity: IFabricGetApplicationTypePagedListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE - where - Identity: IFabricApplicationUpgradeProgressResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this) + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationTypePagedListResult_Impl::get_ApplicationTypePagedList(this) + } } - unsafe extern "system" fn get_NextUpgradeDomain< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetApplicationTypePagedListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricApplicationUpgradeProgressResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this) + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetApplicationTypePagedListResult_Impl::get_PagingStatus(this) + } } Self { - base__: IFabricApplicationUpgradeProgressResult_Vtbl::new::(), - get_RollingUpgradeMode: get_RollingUpgradeMode::, - get_NextUpgradeDomain: get_NextUpgradeDomain::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ApplicationTypePagedList: get_ApplicationTypePagedList::, + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricApplicationUpgradeProgressResult3_Impl: - Sized + IFabricApplicationUpgradeProgressResult2_Impl -{ - fn get_UpgradeProgress(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS; -} -impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} -impl IFabricApplicationUpgradeProgressResult3_Vtbl { - pub const fn new( - ) -> IFabricApplicationUpgradeProgressResult3_Vtbl - where - Identity: IFabricApplicationUpgradeProgressResult3_Impl, - { - unsafe extern "system" fn get_UpgradeProgress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS - where - Identity: IFabricApplicationUpgradeProgressResult3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricApplicationUpgradeProgressResult3_Impl::get_UpgradeProgress(this) - } - Self { - base__: IFabricApplicationUpgradeProgressResult2_Vtbl::new::(), - get_UpgradeProgress: get_UpgradeProgress::, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetApplicationTypePagedListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetApplicationTypePagedListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetApplicationTypePagedListResult {} +windows_core::imp::define_interface!( + IFabricGetClusterHealthChunkResult, + IFabricGetClusterHealthChunkResult_Vtbl, + 0x7fefcf06_c840_4d8a_9cc7_36f080e0e121 +); +windows_core::imp::interface_hierarchy!(IFabricGetClusterHealthChunkResult, windows_core::IUnknown); +impl IFabricGetClusterHealthChunkResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ClusterHealthChunk( + &self, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK { + unsafe { + (windows_core::Interface::vtable(self).get_ClusterHealthChunk)( + windows_core::Interface::as_raw(self), + ) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } } -pub trait IFabricChaosDescriptionResult_Impl: Sized { - fn get_ChaosDescriptionResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION; +#[repr(C)] +pub struct IFabricGetClusterHealthChunkResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ClusterHealthChunk: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ClusterHealthChunk: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetClusterHealthChunkResult_Impl: windows_core::IUnknownImpl { + fn get_ClusterHealthChunk(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK; } -impl windows_core::RuntimeName for IFabricChaosDescriptionResult {} -impl IFabricChaosDescriptionResult_Vtbl { - pub const fn new( - ) -> IFabricChaosDescriptionResult_Vtbl - where - Identity: IFabricChaosDescriptionResult_Impl, - { - unsafe extern "system" fn get_ChaosDescriptionResult< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetClusterHealthChunkResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ClusterHealthChunk< + Identity: IFabricGetClusterHealthChunkResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_DESCRIPTION - where - Identity: IFabricChaosDescriptionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricChaosDescriptionResult_Impl::get_ChaosDescriptionResult(this) + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetClusterHealthChunkResult_Impl::get_ClusterHealthChunk(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ChaosDescriptionResult: get_ChaosDescriptionResult::, + get_ClusterHealthChunk: get_ClusterHealthChunk::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricChaosEventsSegmentResult_Impl: Sized { - fn get_ChaosEventsSegmentResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT; -} -impl windows_core::RuntimeName for IFabricChaosEventsSegmentResult {} -impl IFabricChaosEventsSegmentResult_Vtbl { - pub const fn new( - ) -> IFabricChaosEventsSegmentResult_Vtbl - where - Identity: IFabricChaosEventsSegmentResult_Impl, - { - unsafe extern "system" fn get_ChaosEventsSegmentResult< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT - where - Identity: IFabricChaosEventsSegmentResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricChaosEventsSegmentResult_Impl::get_ChaosEventsSegmentResult(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetClusterHealthChunkResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetClusterHealthChunkResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetClusterHealthChunkResult {} +windows_core::imp::define_interface!( + IFabricGetClusterLoadInformationResult, + IFabricGetClusterLoadInformationResult_Vtbl, + 0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf +); +windows_core::imp::interface_hierarchy!( + IFabricGetClusterLoadInformationResult, + windows_core::IUnknown +); +impl IFabricGetClusterLoadInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ClusterLoadInformation( + &self, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_ClusterLoadInformation)( + windows_core::Interface::as_raw(self), + ) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } } -pub trait IFabricChaosReportResult_Impl: Sized { - fn get_ChaosReportResult(&self) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT; +#[repr(C)] +pub struct IFabricGetClusterLoadInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ClusterLoadInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ClusterLoadInformation: usize, } -impl windows_core::RuntimeName for IFabricChaosReportResult {} -impl IFabricChaosReportResult_Vtbl { - pub const fn new( - ) -> IFabricChaosReportResult_Vtbl - where - Identity: IFabricChaosReportResult_Impl, - { - unsafe extern "system" fn get_ChaosReportResult< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetClusterLoadInformationResult_Impl: windows_core::IUnknownImpl { + fn get_ClusterLoadInformation( + &self, + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetClusterLoadInformationResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ClusterLoadInformation< + Identity: IFabricGetClusterLoadInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_REPORT - where - Identity: IFabricChaosReportResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricChaosReportResult_Impl::get_ChaosReportResult(this) + ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetClusterLoadInformationResult_Impl::get_ClusterLoadInformation(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ChaosReportResult: get_ChaosReportResult::, + get_ClusterLoadInformation: get_ClusterLoadInformation::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricChaosScheduleDescriptionResult_Impl: Sized { - fn get_ChaosScheduleDescriptionResult( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetClusterLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetClusterLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetClusterLoadInformationResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedApplicationListResult, + IFabricGetDeployedApplicationListResult_Vtbl, + 0x5722b789_3936_4c33_9f7a_342967457612 +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedApplicationListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedApplicationListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedApplicationList( &self, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedApplicationList)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricChaosScheduleDescriptionResult {} -impl IFabricChaosScheduleDescriptionResult_Vtbl { - pub const fn new( - ) -> IFabricChaosScheduleDescriptionResult_Vtbl - where - Identity: IFabricChaosScheduleDescriptionResult_Impl, - { - unsafe extern "system" fn get_ChaosScheduleDescriptionResult< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetDeployedApplicationListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedApplicationList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedApplicationList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedApplicationListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedApplicationList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedApplicationListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedApplicationListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedApplicationList< + Identity: IFabricGetDeployedApplicationListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION - where - Identity: IFabricChaosScheduleDescriptionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricChaosScheduleDescriptionResult_Impl::get_ChaosScheduleDescriptionResult(this) + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedApplicationListResult_Impl::get_DeployedApplicationList(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::< - Identity, - OFFSET, - >, + get_DeployedApplicationList: get_DeployedApplicationList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClientConnectionEventHandler_Impl: Sized { - fn OnConnected( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedApplicationListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedApplicationPagedListResult, + IFabricGetDeployedApplicationPagedListResult_Vtbl, + 0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846 +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedApplicationPagedListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedApplicationPagedListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedApplicationPagedList( &self, - __midl__ifabricclientconnectioneventhandler0000: Option<&IFabricGatewayInformationResult>, - ) -> windows_core::Result<()>; - fn OnDisconnected( + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedApplicationPagedList)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedApplicationPagedList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedApplicationPagedListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedApplicationPagedList( &self, - __midl__ifabricclientconnectioneventhandler0001: Option<&IFabricGatewayInformationResult>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; } -impl windows_core::RuntimeName for IFabricClientConnectionEventHandler {} -impl IFabricClientConnectionEventHandler_Vtbl { - pub const fn new( - ) -> IFabricClientConnectionEventHandler_Vtbl - where - Identity: IFabricClientConnectionEventHandler_Impl, - { - unsafe extern "system" fn OnConnected< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedApplicationPagedListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedApplicationPagedListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedApplicationPagedList< + Identity: IFabricGetDeployedApplicationPagedListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0000: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClientConnectionEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientConnectionEventHandler_Impl::OnConnected( - this, - windows_core::from_raw_borrowed(&__midl__ifabricclientconnectioneventhandler0000), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedApplicationPagedListResult_Impl::get_DeployedApplicationPagedList( + this, + ) + } } - unsafe extern "system" fn OnDisconnected< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetDeployedApplicationPagedListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0001: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClientConnectionEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientConnectionEventHandler_Impl::OnDisconnected( - this, - windows_core::from_raw_borrowed(&__midl__ifabricclientconnectioneventhandler0001), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedApplicationPagedListResult_Impl::get_PagingStatus(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - OnConnected: OnConnected::, - OnDisconnected: OnDisconnected::, + get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::, + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClientConnectionEventHandler2_Impl: - Sized + IFabricClientConnectionEventHandler_Impl -{ - fn OnClaimsRetrieval( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedApplicationPagedListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedApplicationPagedListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedCodePackageListResult, + IFabricGetDeployedCodePackageListResult_Vtbl, + 0x3f390652_c0dc_4919_8a7f_8ae1e827de0c +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedCodePackageListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedCodePackageListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedCodePackageList( &self, - metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> windows_core::Result; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedCodePackageList)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClientConnectionEventHandler2 {} -impl IFabricClientConnectionEventHandler2_Vtbl { - pub const fn new( - ) -> IFabricClientConnectionEventHandler2_Vtbl - where - Identity: IFabricClientConnectionEventHandler2_Impl, - { - unsafe extern "system" fn OnClaimsRetrieval< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetDeployedCodePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedCodePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedCodePackageList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedCodePackageListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedCodePackageList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedCodePackageListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedCodePackageListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedCodePackageList< + Identity: IFabricGetDeployedCodePackageListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA, - token: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClientConnectionEventHandler2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClientConnectionEventHandler2_Impl::OnClaimsRetrieval( - this, - core::mem::transmute_copy(&metadata), - ) { - Ok(ok__) => { - token.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedCodePackageListResult_Impl::get_DeployedCodePackageList(this) } } Self { - base__: IFabricClientConnectionEventHandler_Vtbl::new::(), - OnClaimsRetrieval: OnClaimsRetrieval::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_DeployedCodePackageList: get_DeployedCodePackageList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedCodePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedCodePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedCodePackageListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedNetworkCodePackageListResult, + IFabricGetDeployedNetworkCodePackageListResult_Vtbl, + 0x6586d264_a96e_4f46_9388_189de5d61d6d +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedNetworkCodePackageListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedNetworkCodePackageListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedNetworkCodePackageList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedNetworkCodePackageList)( + windows_core::Interface::as_raw(self), + ) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } } } -pub trait IFabricClientSettings_Impl: Sized { - fn SetSecurityCredentials( +#[repr(C)] +pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedNetworkCodePackageList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedNetworkCodePackageList( &self, - securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, - ) -> windows_core::Result<()>; - fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; } -impl windows_core::RuntimeName for IFabricClientSettings {} -impl IFabricClientSettings_Vtbl { - pub const fn new( - ) -> IFabricClientSettings_Vtbl - where - Identity: IFabricClientSettings_Impl, - { - unsafe extern "system" fn SetSecurityCredentials< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedNetworkCodePackageList< + Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, - ) -> windows_core::HRESULT - where - Identity: IFabricClientSettings_Impl, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientSettings_Impl::SetSecurityCredentials( - this, - core::mem::transmute_copy(&securitycredentials), - ) - .into() + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedNetworkCodePackageListResult_Impl:: get_DeployedNetworkCodePackageList ( this , ) + } } - unsafe extern "system" fn SetKeepAlive< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - keepaliveintervalinseconds: u32, - ) -> windows_core::HRESULT - where - Identity: IFabricClientSettings_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientSettings_Impl::SetKeepAlive( - this, - core::mem::transmute_copy(&keepaliveintervalinseconds), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedNetworkCodePackageListResult_Impl::get_PagingStatus(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - SetSecurityCredentials: SetSecurityCredentials::, - SetKeepAlive: SetKeepAlive::, + get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::< + Identity, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClientSettings2_Impl: Sized + IFabricClientSettings_Impl { - fn GetSettings(&self) -> windows_core::Result; - fn SetSettings( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedNetworkCodePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedNetworkCodePackageListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedNetworkListResult, + IFabricGetDeployedNetworkListResult_Vtbl, + 0x347f5d8c_1abd_48e1_a7d1_9083556dafd3 +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedNetworkListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedNetworkListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedNetworkList( &self, - fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedNetworkList)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClientSettings2 {} -impl IFabricClientSettings2_Vtbl { - pub const fn new( - ) -> IFabricClientSettings2_Vtbl - where - Identity: IFabricClientSettings2_Impl, - { - unsafe extern "system" fn GetSettings< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetDeployedNetworkListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedNetworkList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedNetworkList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedNetworkListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedNetworkList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedNetworkListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_DeployedNetworkList< + Identity: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClientSettings2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClientSettings2_Impl::GetSettings(this) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedNetworkListResult_Impl::get_DeployedNetworkList(this) } } - unsafe extern "system" fn SetSettings< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS, - ) -> windows_core::HRESULT - where - Identity: IFabricClientSettings2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientSettings2_Impl::SetSettings( - this, - core::mem::transmute_copy(&fabricclientsettings), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedNetworkListResult_Impl::get_PagingStatus(this) + } } Self { - base__: IFabricClientSettings_Vtbl::new::(), - GetSettings: GetSettings::, - SetSettings: SetSettings::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_DeployedNetworkList: get_DeployedNetworkList::, + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricClientSettingsResult_Impl: Sized { - fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedNetworkListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedReplicaListResult, + IFabricGetDeployedReplicaListResult_Vtbl, + 0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5 +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedReplicaListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedReplicaListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedReplicaList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedReplicaList)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClientSettingsResult {} -impl IFabricClientSettingsResult_Vtbl { - pub const fn new( - ) -> IFabricClientSettingsResult_Vtbl - where - Identity: IFabricClientSettingsResult_Impl, - { - unsafe extern "system" fn get_Settings< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetDeployedReplicaListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedReplicaList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedReplicaList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedReplicaListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedReplicaList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedReplicaListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_DeployedReplicaList< + Identity: IFabricGetDeployedReplicaListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLIENT_SETTINGS - where - Identity: IFabricClientSettingsResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClientSettingsResult_Impl::get_Settings(this) + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedReplicaListResult_Impl::get_DeployedReplicaList(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_Settings: get_Settings::, + get_DeployedReplicaList: get_DeployedReplicaList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClusterHealthResult_Impl: Sized { - fn get_ClusterHealth(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedReplicaListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedReplicaListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedReplicaListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedServicePackageListResult, + IFabricGetDeployedServicePackageListResult_Vtbl, + 0x65851388_0421_4107_977b_39f4e15440d4 +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServicePackageListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedServicePackageListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedServicePackageList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedServicePackageList)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClusterHealthResult {} -impl IFabricClusterHealthResult_Vtbl { - pub const fn new( - ) -> IFabricClusterHealthResult_Vtbl - where - Identity: IFabricClusterHealthResult_Impl, - { - unsafe extern "system" fn get_ClusterHealth< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetDeployedServicePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedServicePackageList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedServicePackageList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedServicePackageListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedServicePackageList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedServicePackageListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedServicePackageListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedServicePackageList< + Identity: IFabricGetDeployedServicePackageListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH - where - Identity: IFabricClusterHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterHealthResult_Impl::get_ClusterHealth(this) + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedServicePackageListResult_Impl::get_DeployedServicePackageList( + this, + ) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ClusterHealth: get_ClusterHealth::, + get_DeployedServicePackageList: get_DeployedServicePackageList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient_Impl: Sized { - fn BeginNodeStateRemoved( - &self, - nodename: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndNodeStateRemoved( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginRecoverPartitions( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRecoverPartitions( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedServicePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedServicePackageListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedServicePackageListResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedServiceReplicaDetailResult, + IFabricGetDeployedServiceReplicaDetailResult_Vtbl, + 0x6d9d355e_89cf_4928_b758_b11ca4664fbe +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServiceReplicaDetailResult, + windows_core::IUnknown +); +impl IFabricGetDeployedServiceReplicaDetailResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicaDetail( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricClusterManagementClient {} -impl IFabricClusterManagementClient_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient_Vtbl - where - Identity: IFabricClusterManagementClient_Impl, - { - unsafe extern "system" fn BeginNodeStateRemoved< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - nodename: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient_Impl::BeginNodeStateRemoved( - this, - core::mem::transmute(&nodename), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndNodeStateRemoved< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient_Impl::EndNodeStateRemoved( - this, - windows_core::from_raw_borrowed(&context), + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicaDetail)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginRecoverPartitions< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ReplicaDetail :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ReplicaDetail :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: windows_core::IUnknownImpl { + fn get_ReplicaDetail( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ReplicaDetail< + Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient_Impl, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient_Impl::BeginRecoverPartitions( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedServiceReplicaDetailResult_Impl::get_ReplicaDetail(this) } } - unsafe extern "system" fn EndRecoverPartitions< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ReplicaDetail: get_ReplicaDetail::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedServiceReplicaDetailResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedServiceReplicaDetailResult {} +windows_core::imp::define_interface!( + IFabricGetDeployedServiceTypeListResult, + IFabricGetDeployedServiceTypeListResult_Vtbl, + 0xdba68c7a_3f77_49bb_b611_ff94df062b8d +); +windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServiceTypeListResult, + windows_core::IUnknown +); +impl IFabricGetDeployedServiceTypeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_DeployedServiceTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_DeployedServiceTypeList)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetDeployedServiceTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_DeployedServiceTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_DeployedServiceTypeList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetDeployedServiceTypeListResult_Impl: windows_core::IUnknownImpl { + fn get_DeployedServiceTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetDeployedServiceTypeListResult_Vtbl { + pub const fn new< + Identity: IFabricGetDeployedServiceTypeListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_DeployedServiceTypeList< + Identity: IFabricGetDeployedServiceTypeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient_Impl::EndRecoverPartitions( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetDeployedServiceTypeListResult_Impl::get_DeployedServiceTypeList(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - BeginNodeStateRemoved: BeginNodeStateRemoved::, - EndNodeStateRemoved: EndNodeStateRemoved::, - BeginRecoverPartitions: BeginRecoverPartitions::, - EndRecoverPartitions: EndRecoverPartitions::, + get_DeployedServiceTypeList: get_DeployedServiceTypeList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient10_Impl: - Sized + IFabricClusterManagementClient9_Impl -{ - fn BeginGetClusterConfiguration2( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetDeployedServiceTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetDeployedServiceTypeListResult {} +windows_core::imp::define_interface!( + IFabricGetNetworkApplicationListResult, + IFabricGetNetworkApplicationListResult_Vtbl, + 0xad1f51ff_e244_498e_9f72_609b01124b84 +); +windows_core::imp::interface_hierarchy!( + IFabricGetNetworkApplicationListResult, + windows_core::IUnknown +); +impl IFabricGetNetworkApplicationListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NetworkApplicationList( &self, - apiversion: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterConfiguration2( + ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_NetworkApplicationList)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetNetworkApplicationListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_NetworkApplicationList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_NetworkApplicationList :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PagingStatus :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PAGING_STATUS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PagingStatus :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNetworkApplicationListResult_Impl: windows_core::IUnknownImpl { + fn get_NetworkApplicationList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; } -impl windows_core::RuntimeName for IFabricClusterManagementClient10 {} -impl IFabricClusterManagementClient10_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient10_Vtbl - where - Identity: IFabricClusterManagementClient10_Impl, - { - unsafe extern "system" fn BeginGetClusterConfiguration2< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNetworkApplicationListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_NetworkApplicationList< + Identity: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - apiversion: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient10_Impl::BeginGetClusterConfiguration2( - this, - core::mem::transmute(&apiversion), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkApplicationListResult_Impl::get_NetworkApplicationList(this) } } - unsafe extern "system" fn EndGetClusterConfiguration2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient10_Impl::EndGetClusterConfiguration2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkApplicationListResult_Impl::get_PagingStatus(this) } } Self { - base__: IFabricClusterManagementClient9_Vtbl::new::(), - BeginGetClusterConfiguration2: BeginGetClusterConfiguration2::, - EndGetClusterConfiguration2: EndGetClusterConfiguration2::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_NetworkApplicationList: get_NetworkApplicationList::, + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient2_Impl: - Sized + IFabricClusterManagementClient_Impl -{ - fn BeginDeactivateNode( - &self, - nodename: &windows_core::PCWSTR, - intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeactivateNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginActivateNode( - &self, - nodename: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndActivateNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginProvisionFabric( - &self, - codefilepath: &windows_core::PCWSTR, - clustermanifestfilepath: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndProvisionFabric( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginUpgradeFabric( - &self, - upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUpgradeFabric( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginGetFabricUpgradeProgress( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetFabricUpgradeProgress( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginMoveNextFabricUpgradeDomain( - &self, - progress: Option<&IFabricUpgradeProgressResult2>, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndMoveNextFabricUpgradeDomain( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginMoveNextFabricUpgradeDomain2( - &self, - nextupgradedomain: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndMoveNextFabricUpgradeDomain2( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginUnprovisionFabric( - &self, - codeversion: &windows_core::PCWSTR, - configversion: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUnprovisionFabric( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginGetClusterManifest( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterManifest( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginRecoverPartition( - &self, - partitionid: &windows_core::GUID, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRecoverPartition( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginRecoverServicePartitions( - &self, - servicename: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRecoverServicePartitions( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginRecoverSystemPartitions( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRecoverSystemPartitions( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNetworkApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNetworkApplicationListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNetworkApplicationListResult {} +windows_core::imp::define_interface!( + IFabricGetNetworkListResult, + IFabricGetNetworkListResult_Vtbl, + 0xbd777a0f_2020_40bb_8f23_8756649cce47 +); +windows_core::imp::interface_hierarchy!(IFabricGetNetworkListResult, windows_core::IUnknown); +impl IFabricGetNetworkListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NetworkList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricClusterManagementClient2 {} -impl IFabricClusterManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient2_Vtbl - where - Identity: IFabricClusterManagementClient2_Impl, - { - unsafe extern "system" fn BeginDeactivateNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - nodename: windows_core::PCWSTR, - intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginDeactivateNode( - this, - core::mem::transmute(&nodename), - core::mem::transmute_copy(&intent), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + ) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_NetworkList)( + windows_core::Interface::as_raw(self), + ) } - unsafe extern "system" fn EndDeactivateNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndDeactivateNode( - this, - windows_core::from_raw_borrowed(&context), + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginActivateNode< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetNetworkListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NetworkList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NetworkList: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNetworkListResult_Impl: windows_core::IUnknownImpl { + fn get_NetworkList(&self) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNetworkListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_NetworkList< + Identity: IFabricGetNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - nodename: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginActivateNode( - this, - core::mem::transmute(&nodename), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkListResult_Impl::get_NetworkList(this) } } - unsafe extern "system" fn EndActivateNode< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetNetworkListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndActivateNode( - this, - windows_core::from_raw_borrowed(&context), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkListResult_Impl::get_PagingStatus(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_NetworkList: get_NetworkList::, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNetworkListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNetworkListResult {} +windows_core::imp::define_interface!( + IFabricGetNetworkNodeListResult, + IFabricGetNetworkNodeListResult_Vtbl, + 0x3ba780e9_58eb_478d_bc89_42c89e19d083 +); +windows_core::imp::interface_hierarchy!(IFabricGetNetworkNodeListResult, windows_core::IUnknown); +impl IFabricGetNetworkNodeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NetworkNodeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_NetworkNodeList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginProvisionFabric< - Identity: windows_core::IUnknownImpl, + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetNetworkNodeListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NetworkNodeList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NetworkNodeList: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNetworkNodeListResult_Impl: windows_core::IUnknownImpl { + fn get_NetworkNodeList(&self) + -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNetworkNodeListResult_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn get_NetworkNodeList< + Identity: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - codefilepath: windows_core::PCWSTR, - clustermanifestfilepath: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginProvisionFabric( - this, - core::mem::transmute(&codefilepath), - core::mem::transmute(&clustermanifestfilepath), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkNodeListResult_Impl::get_NetworkNodeList(this) } } - unsafe extern "system" fn EndProvisionFabric< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndProvisionFabric( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNetworkNodeListResult_Impl::get_PagingStatus(this) + } } - unsafe extern "system" fn BeginUpgradeFabric< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_NetworkNodeList: get_NetworkNodeList::, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNetworkNodeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNetworkNodeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNetworkNodeListResult {} +windows_core::imp::define_interface!( + IFabricGetNodeListResult, + IFabricGetNodeListResult_Vtbl, + 0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe +); +windows_core::imp::interface_hierarchy!(IFabricGetNodeListResult, windows_core::IUnknown); +impl IFabricGetNodeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NodeList(&self) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_NodeList)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricGetNodeListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NodeList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NodeList: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNodeListResult_Impl: windows_core::IUnknownImpl { + fn get_NodeList(&self) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNodeListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_NodeList< + Identity: IFabricGetNodeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginUpgradeFabric( - this, - core::mem::transmute_copy(&upgradedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNodeListResult_Impl::get_NodeList(this) } } - unsafe extern "system" fn EndUpgradeFabric< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndUpgradeFabric( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_NodeList: get_NodeList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNodeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNodeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNodeListResult {} +windows_core::imp::define_interface!( + IFabricGetNodeListResult2, + IFabricGetNodeListResult2_Vtbl, + 0x4a0f2da7_f851_44e5_8e12_aa521076097a +); +impl core::ops::Deref for IFabricGetNodeListResult2 { + type Target = IFabricGetNodeListResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricGetNodeListResult2, + windows_core::IUnknown, + IFabricGetNodeListResult +); +impl IFabricGetNodeListResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginGetFabricUpgradeProgress< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetNodeListResult2_Vtbl { + pub base__: IFabricGetNodeListResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNodeListResult2_Impl: IFabricGetNodeListResult_Impl { + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNodeListResult2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetNodeListResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginGetFabricUpgradeProgress( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNodeListResult2_Impl::get_PagingStatus(this) } } - unsafe extern "system" fn EndGetFabricUpgradeProgress< - Identity: windows_core::IUnknownImpl, + Self { + base__: IFabricGetNodeListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNodeListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNodeListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNodeListResult2 {} +windows_core::imp::define_interface!( + IFabricGetNodeLoadInformationResult, + IFabricGetNodeLoadInformationResult_Vtbl, + 0x4332eb3a_aed6_86fe_c2fa_653123dea09b +); +windows_core::imp::interface_hierarchy!( + IFabricGetNodeLoadInformationResult, + windows_core::IUnknown +); +impl IFabricGetNodeLoadInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NodeLoadInformation( + &self, + ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_NodeLoadInformation)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetNodeLoadInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NodeLoadInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NodeLoadInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetNodeLoadInformationResult_Impl: windows_core::IUnknownImpl { + fn get_NodeLoadInformation(&self) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetNodeLoadInformationResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_NodeLoadInformation< + Identity: IFabricGetNodeLoadInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::EndGetFabricUpgradeProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetNodeLoadInformationResult_Impl::get_NodeLoadInformation(this) } } - unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_NodeLoadInformation: get_NodeLoadInformation::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetNodeLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetNodeLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetNodeLoadInformationResult {} +windows_core::imp::define_interface!( + IFabricGetPartitionListResult, + IFabricGetPartitionListResult_Vtbl, + 0xafc1266c_967b_4769_9f8a_b249c5887ee6 +); +windows_core::imp::interface_hierarchy!(IFabricGetPartitionListResult, windows_core::IUnknown); +impl IFabricGetPartitionListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PartitionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_PartitionList)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetPartitionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_PartitionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_PartitionList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetPartitionListResult_Impl: windows_core::IUnknownImpl { + fn get_PartitionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetPartitionListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PartitionList< + Identity: IFabricGetPartitionListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - progress: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain( - this, - windows_core::from_raw_borrowed(&progress), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetPartitionListResult_Impl::get_PartitionList(this) } } - unsafe extern "system" fn EndMoveNextFabricUpgradeDomain< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_PartitionList: get_PartitionList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetPartitionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetPartitionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetPartitionListResult {} +windows_core::imp::define_interface!( + IFabricGetPartitionListResult2, + IFabricGetPartitionListResult2_Vtbl, + 0xb131b99a_d251_47b2_9d08_24ddd6793206 +); +impl core::ops::Deref for IFabricGetPartitionListResult2 { + type Target = IFabricGetPartitionListResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricGetPartitionListResult2, + windows_core::IUnknown, + IFabricGetPartitionListResult +); +impl IFabricGetPartitionListResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetPartitionListResult2_Vtbl { + pub base__: IFabricGetPartitionListResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetPartitionListResult2_Impl: IFabricGetPartitionListResult_Impl { + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetPartitionListResult2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetPartitionListResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - nextupgradedomain: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain2( - this, - core::mem::transmute(&nextupgradedomain), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetPartitionListResult2_Impl::get_PagingStatus(this) } } - unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain2( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: IFabricGetPartitionListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetPartitionListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetPartitionListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetPartitionListResult2 {} +windows_core::imp::define_interface!( + IFabricGetPartitionLoadInformationResult, + IFabricGetPartitionLoadInformationResult_Vtbl, + 0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7 +); +windows_core::imp::interface_hierarchy!( + IFabricGetPartitionLoadInformationResult, + windows_core::IUnknown +); +impl IFabricGetPartitionLoadInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PartitionLoadInformation( + &self, + ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_PartitionLoadInformation)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginUnprovisionFabric< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetPartitionLoadInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PartitionLoadInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PartitionLoadInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetPartitionLoadInformationResult_Impl: windows_core::IUnknownImpl { + fn get_PartitionLoadInformation( + &self, + ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetPartitionLoadInformationResult_Vtbl { + pub const fn new< + Identity: IFabricGetPartitionLoadInformationResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_PartitionLoadInformation< + Identity: IFabricGetPartitionLoadInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - codeversion: windows_core::PCWSTR, - configversion: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginUnprovisionFabric( - this, - core::mem::transmute(&codeversion), - core::mem::transmute(&configversion), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetPartitionLoadInformationResult_Impl::get_PartitionLoadInformation(this) } } - unsafe extern "system" fn EndUnprovisionFabric< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndUnprovisionFabric( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_PartitionLoadInformation: get_PartitionLoadInformation::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetPartitionLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetPartitionLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetPartitionLoadInformationResult {} +windows_core::imp::define_interface!( + IFabricGetProvisionedCodeVersionListResult, + IFabricGetProvisionedCodeVersionListResult_Vtbl, + 0xd042bdb6_4364_4818_b395_0e6b1a22cb11 +); +windows_core::imp::interface_hierarchy!( + IFabricGetProvisionedCodeVersionListResult, + windows_core::IUnknown +); +impl IFabricGetProvisionedCodeVersionListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ProvisionedCodeVersionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ProvisionedCodeVersionList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginGetClusterManifest< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ProvisionedCodeVersionList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetProvisionedCodeVersionListResult_Impl: windows_core::IUnknownImpl { + fn get_ProvisionedCodeVersionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetProvisionedCodeVersionListResult_Vtbl { + pub const fn new< + Identity: IFabricGetProvisionedCodeVersionListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ProvisionedCodeVersionList< + Identity: IFabricGetProvisionedCodeVersionListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginGetClusterManifest( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetProvisionedCodeVersionListResult_Impl::get_ProvisionedCodeVersionList( + this, + ) } } - unsafe extern "system" fn EndGetClusterManifest< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetProvisionedCodeVersionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetProvisionedCodeVersionListResult {} +windows_core::imp::define_interface!( + IFabricGetProvisionedConfigVersionListResult, + IFabricGetProvisionedConfigVersionListResult_Vtbl, + 0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e +); +windows_core::imp::interface_hierarchy!( + IFabricGetProvisionedConfigVersionListResult, + windows_core::IUnknown +); +impl IFabricGetProvisionedConfigVersionListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ProvisionedConfigVersionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ProvisionedConfigVersionList)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ProvisionedConfigVersionList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetProvisionedConfigVersionListResult_Impl: windows_core::IUnknownImpl { + fn get_ProvisionedConfigVersionList( + &self, + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetProvisionedConfigVersionListResult_Vtbl { + pub const fn new< + Identity: IFabricGetProvisionedConfigVersionListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ProvisionedConfigVersionList< + Identity: IFabricGetProvisionedConfigVersionListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::EndGetClusterManifest( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetProvisionedConfigVersionListResult_Impl::get_ProvisionedConfigVersionList( + this, + ) } } - unsafe extern "system" fn BeginRecoverPartition< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetProvisionedConfigVersionListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetProvisionedConfigVersionListResult {} +windows_core::imp::define_interface!( + IFabricGetRepairTaskListResult, + IFabricGetRepairTaskListResult_Vtbl, + 0x576b2462_5f69_4351_87c7_3ec2d1654a22 +); +windows_core::imp::interface_hierarchy!(IFabricGetRepairTaskListResult, windows_core::IUnknown); +impl IFabricGetRepairTaskListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Tasks(&self) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_Tasks)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricGetRepairTaskListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Tasks: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Tasks: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetRepairTaskListResult_Impl: windows_core::IUnknownImpl { + fn get_Tasks(&self) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetRepairTaskListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Tasks< + Identity: IFabricGetRepairTaskListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - partitionid: windows_core::GUID, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginRecoverPartition( - this, - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetRepairTaskListResult_Impl::get_Tasks(this) } } - unsafe extern "system" fn EndRecoverPartition< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndRecoverPartition( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Tasks: get_Tasks::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetRepairTaskListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetRepairTaskListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetRepairTaskListResult {} +windows_core::imp::define_interface!( + IFabricGetReplicaListResult, + IFabricGetReplicaListResult_Vtbl, + 0xe00d3761_3ac5_407d_a04f_1b59486217cf +); +windows_core::imp::interface_hierarchy!(IFabricGetReplicaListResult, windows_core::IUnknown); +impl IFabricGetReplicaListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicaList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicaList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginRecoverServicePartitions< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetReplicaListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ReplicaList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ReplicaList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetReplicaListResult_Impl: windows_core::IUnknownImpl { + fn get_ReplicaList(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetReplicaListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ReplicaList< + Identity: IFabricGetReplicaListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - servicename: super::FabricTypes::FABRIC_URI, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginRecoverServicePartitions( - this, - core::mem::transmute_copy(&servicename), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetReplicaListResult_Impl::get_ReplicaList(this) } } - unsafe extern "system" fn EndRecoverServicePartitions< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndRecoverServicePartitions( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ReplicaList: get_ReplicaList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetReplicaListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetReplicaListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetReplicaListResult {} +windows_core::imp::define_interface!( + IFabricGetReplicaListResult2, + IFabricGetReplicaListResult2_Vtbl, + 0x0bc12f86_c157_4c0d_b274_01fb09145934 +); +impl core::ops::Deref for IFabricGetReplicaListResult2 { + type Target = IFabricGetReplicaListResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricGetReplicaListResult2, + windows_core::IUnknown, + IFabricGetReplicaListResult +); +impl IFabricGetReplicaListResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginRecoverSystemPartitions< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetReplicaListResult2_Vtbl { + pub base__: IFabricGetReplicaListResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetReplicaListResult2_Impl: IFabricGetReplicaListResult_Impl { + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetReplicaListResult2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetReplicaListResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient2_Impl::BeginRecoverSystemPartitions( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetReplicaListResult2_Impl::get_PagingStatus(this) } } - unsafe extern "system" fn EndRecoverSystemPartitions< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient2_Impl::EndRecoverSystemPartitions( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricClusterManagementClient_Vtbl::new::(), - BeginDeactivateNode: BeginDeactivateNode::, - EndDeactivateNode: EndDeactivateNode::, - BeginActivateNode: BeginActivateNode::, - EndActivateNode: EndActivateNode::, - BeginProvisionFabric: BeginProvisionFabric::, - EndProvisionFabric: EndProvisionFabric::, - BeginUpgradeFabric: BeginUpgradeFabric::, - EndUpgradeFabric: EndUpgradeFabric::, - BeginGetFabricUpgradeProgress: BeginGetFabricUpgradeProgress::, - EndGetFabricUpgradeProgress: EndGetFabricUpgradeProgress::, - BeginMoveNextFabricUpgradeDomain: BeginMoveNextFabricUpgradeDomain::, - EndMoveNextFabricUpgradeDomain: EndMoveNextFabricUpgradeDomain::, - BeginMoveNextFabricUpgradeDomain2: BeginMoveNextFabricUpgradeDomain2::, - EndMoveNextFabricUpgradeDomain2: EndMoveNextFabricUpgradeDomain2::, - BeginUnprovisionFabric: BeginUnprovisionFabric::, - EndUnprovisionFabric: EndUnprovisionFabric::, - BeginGetClusterManifest: BeginGetClusterManifest::, - EndGetClusterManifest: EndGetClusterManifest::, - BeginRecoverPartition: BeginRecoverPartition::, - EndRecoverPartition: EndRecoverPartition::, - BeginRecoverServicePartitions: BeginRecoverServicePartitions::, - EndRecoverServicePartitions: EndRecoverServicePartitions::, - BeginRecoverSystemPartitions: BeginRecoverSystemPartitions::, - EndRecoverSystemPartitions: EndRecoverSystemPartitions::, + base__: IFabricGetReplicaListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricClusterManagementClient3_Impl: - Sized + IFabricClusterManagementClient2_Impl -{ - fn BeginUpdateFabricUpgrade( - &self, - description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUpdateFabricUpgrade( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginStopNode( - &self, - stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndStopNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginRestartNode( - &self, - restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRestartNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginStartNode( - &self, - startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndStartNode( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn CopyClusterPackage( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetReplicaListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetReplicaListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetReplicaListResult2 {} +windows_core::imp::define_interface!( + IFabricGetReplicaLoadInformationResult, + IFabricGetReplicaLoadInformationResult_Vtbl, + 0xe4190ca0_225c_11e4_8c21_0800200c9a66 +); +windows_core::imp::interface_hierarchy!( + IFabricGetReplicaLoadInformationResult, + windows_core::IUnknown +); +impl IFabricGetReplicaLoadInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicaLoadInformation( &self, - imagestoreconnectionstring: &windows_core::PCWSTR, - clustermanifestpath: &windows_core::PCWSTR, - clustermanifestpathinimagestore: &windows_core::PCWSTR, - codepackagepath: &windows_core::PCWSTR, - codepackagepathinimagestore: &windows_core::PCWSTR, - ) -> windows_core::Result<()>; - fn RemoveClusterPackage( + ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicaLoadInformation)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetReplicaLoadInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ReplicaLoadInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ReplicaLoadInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetReplicaLoadInformationResult_Impl: windows_core::IUnknownImpl { + fn get_ReplicaLoadInformation( &self, - imagestoreconnectionstring: &windows_core::PCWSTR, - clustermanifestpathinimagestore: &windows_core::PCWSTR, - codepackagepathinimagestore: &windows_core::PCWSTR, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION; } -impl windows_core::RuntimeName for IFabricClusterManagementClient3 {} -impl IFabricClusterManagementClient3_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient3_Vtbl - where - Identity: IFabricClusterManagementClient3_Impl, - { - unsafe extern "system" fn BeginUpdateFabricUpgrade< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetReplicaLoadInformationResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ReplicaLoadInformation< + Identity: IFabricGetReplicaLoadInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient3_Impl::BeginUpdateFabricUpgrade( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetReplicaLoadInformationResult_Impl::get_ReplicaLoadInformation(this) } } - unsafe extern "system" fn EndUpdateFabricUpgrade< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::EndUpdateFabricUpgrade( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ReplicaLoadInformation: get_ReplicaLoadInformation::, } - unsafe extern "system" fn BeginStopNode< - Identity: windows_core::IUnknownImpl, + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetReplicaLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetReplicaLoadInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetReplicaLoadInformationResult {} +windows_core::imp::define_interface!( + IFabricGetRollingUpgradeMonitoringPolicyResult, + IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl, + 0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9 +); +windows_core::imp::interface_hierarchy!( + IFabricGetRollingUpgradeMonitoringPolicyResult, + windows_core::IUnknown +); +impl IFabricGetRollingUpgradeMonitoringPolicyResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Policy( + &self, + ) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + unsafe { + (windows_core::Interface::vtable(self).get_Policy)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_Policy :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_ROLLING_UPGRADE_MONITORING_POLICY , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_Policy :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: windows_core::IUnknownImpl { + fn get_Policy(&self) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { + pub const fn new< + Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_Policy< + Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient3_Impl::BeginStopNode( - this, - core::mem::transmute_copy(&stopnodedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetRollingUpgradeMonitoringPolicyResult_Impl::get_Policy(this) } } - unsafe extern "system" fn EndStopNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::EndStopNode( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Policy: get_Policy::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetRollingUpgradeMonitoringPolicyResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetRollingUpgradeMonitoringPolicyResult {} +windows_core::imp::define_interface!( + IFabricGetServiceGroupMemberListResult, + IFabricGetServiceGroupMemberListResult_Vtbl, + 0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166 +); +windows_core::imp::interface_hierarchy!( + IFabricGetServiceGroupMemberListResult, + windows_core::IUnknown +); +impl IFabricGetServiceGroupMemberListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceGroupMemberList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceGroupMemberList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginRestartNode< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetServiceGroupMemberListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ServiceGroupMemberList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ServiceGroupMemberList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceGroupMemberListResult_Impl: windows_core::IUnknownImpl { + fn get_ServiceGroupMemberList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceGroupMemberListResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ServiceGroupMemberList< + Identity: IFabricGetServiceGroupMemberListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient3_Impl::BeginRestartNode( - this, - core::mem::transmute_copy(&restartnodedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceGroupMemberListResult_Impl::get_ServiceGroupMemberList(this) } } - unsafe extern "system" fn EndRestartNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::EndRestartNode( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ServiceGroupMemberList: get_ServiceGroupMemberList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceGroupMemberListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceGroupMemberListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceGroupMemberListResult {} +windows_core::imp::define_interface!( + IFabricGetServiceGroupMemberTypeListResult, + IFabricGetServiceGroupMemberTypeListResult_Vtbl, + 0x5e572763_29a9_463a_b602_1332c0f60e6b +); +windows_core::imp::interface_hierarchy!( + IFabricGetServiceGroupMemberTypeListResult, + windows_core::IUnknown +); +impl IFabricGetServiceGroupMemberTypeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceGroupMemberTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceGroupMemberTypeList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginStartNode< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ServiceGroupMemberTypeList :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: windows_core::IUnknownImpl { + fn get_ServiceGroupMemberTypeList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { + pub const fn new< + Identity: IFabricGetServiceGroupMemberTypeListResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_ServiceGroupMemberTypeList< + Identity: IFabricGetServiceGroupMemberTypeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient3_Impl::BeginStartNode( - this, - core::mem::transmute_copy(&startnodedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceGroupMemberTypeListResult_Impl::get_ServiceGroupMemberTypeList( + this, + ) } } - unsafe extern "system" fn EndStartNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::EndStartNode( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceGroupMemberTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceGroupMemberTypeListResult {} +windows_core::imp::define_interface!( + IFabricGetServiceListResult, + IFabricGetServiceListResult_Vtbl, + 0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185 +); +windows_core::imp::interface_hierarchy!(IFabricGetServiceListResult, windows_core::IUnknown); +impl IFabricGetServiceListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceList( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceList)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn CopyClusterPackage< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetServiceListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ServiceList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ServiceList: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceListResult_Impl: windows_core::IUnknownImpl { + fn get_ServiceList(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceListResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ServiceList< + Identity: IFabricGetServiceListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - imagestoreconnectionstring: windows_core::PCWSTR, - clustermanifestpath: windows_core::PCWSTR, - clustermanifestpathinimagestore: windows_core::PCWSTR, - codepackagepath: windows_core::PCWSTR, - codepackagepathinimagestore: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::CopyClusterPackage( - this, - core::mem::transmute(&imagestoreconnectionstring), - core::mem::transmute(&clustermanifestpath), - core::mem::transmute(&clustermanifestpathinimagestore), - core::mem::transmute(&codepackagepath), - core::mem::transmute(&codepackagepathinimagestore), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceListResult_Impl::get_ServiceList(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ServiceList: get_ServiceList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceListResult {} +windows_core::imp::define_interface!( + IFabricGetServiceListResult2, + IFabricGetServiceListResult2_Vtbl, + 0x30263683_4b25_4ec3_86d7_94ed86e7a8bf +); +impl core::ops::Deref for IFabricGetServiceListResult2 { + type Target = IFabricGetServiceListResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricGetServiceListResult2, + windows_core::IUnknown, + IFabricGetServiceListResult +); +impl IFabricGetServiceListResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_PagingStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn RemoveClusterPackage< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricGetServiceListResult2_Vtbl { + pub base__: IFabricGetServiceListResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PagingStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PagingStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceListResult2_Impl: IFabricGetServiceListResult_Impl { + fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceListResult2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PagingStatus< + Identity: IFabricGetServiceListResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - imagestoreconnectionstring: windows_core::PCWSTR, - clustermanifestpathinimagestore: windows_core::PCWSTR, - codepackagepathinimagestore: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient3_Impl::RemoveClusterPackage( - this, - core::mem::transmute(&imagestoreconnectionstring), - core::mem::transmute(&clustermanifestpathinimagestore), - core::mem::transmute(&codepackagepathinimagestore), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceListResult2_Impl::get_PagingStatus(this) + } } Self { - base__: IFabricClusterManagementClient2_Vtbl::new::(), - BeginUpdateFabricUpgrade: BeginUpdateFabricUpgrade::, - EndUpdateFabricUpgrade: EndUpdateFabricUpgrade::, - BeginStopNode: BeginStopNode::, - EndStopNode: EndStopNode::, - BeginRestartNode: BeginRestartNode::, - EndRestartNode: EndRestartNode::, - BeginStartNode: BeginStartNode::, - EndStartNode: EndStartNode::, - CopyClusterPackage: CopyClusterPackage::, - RemoveClusterPackage: RemoveClusterPackage::, + base__: IFabricGetServiceListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricClusterManagementClient4_Impl: - Sized + IFabricClusterManagementClient3_Impl -{ - fn BeginRollbackFabricUpgrade( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndRollbackFabricUpgrade( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceListResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceListResult2 {} +windows_core::imp::define_interface!( + IFabricGetServiceNameResult, + IFabricGetServiceNameResult_Vtbl, + 0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c +); +windows_core::imp::interface_hierarchy!(IFabricGetServiceNameResult, windows_core::IUnknown); +impl IFabricGetServiceNameResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceName)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClusterManagementClient4 {} -impl IFabricClusterManagementClient4_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient4_Vtbl - where - Identity: IFabricClusterManagementClient4_Impl, - { - unsafe extern "system" fn BeginRollbackFabricUpgrade< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricGetServiceNameResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ServiceName: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ServiceName: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceNameResult_Impl: windows_core::IUnknownImpl { + fn get_ServiceName(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceNameResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_ServiceName< + Identity: IFabricGetServiceNameResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient4_Impl::BeginRollbackFabricUpgrade( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceNameResult_Impl::get_ServiceName(this) } } - unsafe extern "system" fn EndRollbackFabricUpgrade< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient4_Impl::EndRollbackFabricUpgrade( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricClusterManagementClient3_Vtbl::new::(), - BeginRollbackFabricUpgrade: BeginRollbackFabricUpgrade::, - EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ServiceName: get_ServiceName::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient5_Impl: - Sized + IFabricClusterManagementClient4_Impl -{ - fn BeginResetPartitionLoad( - &self, - partitionid: &windows_core::GUID, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndResetPartitionLoad( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceNameResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceNameResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceNameResult {} +windows_core::imp::define_interface!( + IFabricGetServiceTypeListResult, + IFabricGetServiceTypeListResult_Vtbl, + 0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b +); +windows_core::imp::interface_hierarchy!(IFabricGetServiceTypeListResult, windows_core::IUnknown); +impl IFabricGetServiceTypeListResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceTypeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceTypeList)( + windows_core::Interface::as_raw(self), + ) + } + } } -impl windows_core::RuntimeName for IFabricClusterManagementClient5 {} -impl IFabricClusterManagementClient5_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient5_Vtbl - where - Identity: IFabricClusterManagementClient5_Impl, +#[repr(C)] +pub struct IFabricGetServiceTypeListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ServiceTypeList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ServiceTypeList: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetServiceTypeListResult_Impl: windows_core::IUnknownImpl { + fn get_ServiceTypeList(&self) + -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetServiceTypeListResult_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn BeginResetPartitionLoad< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_ServiceTypeList< + Identity: IFabricGetServiceTypeListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - partitionid: windows_core::GUID, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient5_Impl::BeginResetPartitionLoad( - this, - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetServiceTypeListResult_Impl::get_ServiceTypeList(this) } } - unsafe extern "system" fn EndResetPartitionLoad< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient5_Impl::EndResetPartitionLoad( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } Self { - base__: IFabricClusterManagementClient4_Vtbl::new::(), - BeginResetPartitionLoad: BeginResetPartitionLoad::, - EndResetPartitionLoad: EndResetPartitionLoad::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_ServiceTypeList: get_ServiceTypeList::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient6_Impl: - Sized + IFabricClusterManagementClient5_Impl -{ - fn BeginToggleVerboseServicePlacementHealthReporting( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetServiceTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetServiceTypeListResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetServiceTypeListResult {} +windows_core::imp::define_interface!( + IFabricGetUnplacedReplicaInformationResult, + IFabricGetUnplacedReplicaInformationResult_Vtbl, + 0x9d86a611_3fd3_451b_9495_6a831f417473 +); +windows_core::imp::interface_hierarchy!( + IFabricGetUnplacedReplicaInformationResult, + windows_core::IUnknown +); +impl IFabricGetUnplacedReplicaInformationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_UnplacedReplicaInformation( &self, - enabled: windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndToggleVerboseServicePlacementHealthReporting( + ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION { + unsafe { + (windows_core::Interface::vtable(self).get_UnplacedReplicaInformation)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_UnplacedReplicaInformation: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_UnplacedReplicaInformation: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetUnplacedReplicaInformationResult_Impl: windows_core::IUnknownImpl { + fn get_UnplacedReplicaInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION; } -impl windows_core::RuntimeName for IFabricClusterManagementClient6 {} -impl IFabricClusterManagementClient6_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient6_Vtbl - where - Identity: IFabricClusterManagementClient6_Impl, - { - unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - enabled: windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient6_Impl:: BeginToggleVerboseServicePlacementHealthReporting ( this , core::mem::transmute_copy ( & enabled ) , core::mem::transmute_copy ( & timeoutmilliseconds ) , windows_core::from_raw_borrowed ( & callback ) , ) { Ok ( ok__ ) => { context . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } - } - unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricGetUnplacedReplicaInformationResult_Vtbl { + pub const fn new< + Identity: IFabricGetUnplacedReplicaInformationResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_UnplacedReplicaInformation< + Identity: IFabricGetUnplacedReplicaInformationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient6_Impl::EndToggleVerboseServicePlacementHealthReporting( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetUnplacedReplicaInformationResult_Impl::get_UnplacedReplicaInformation( + this, + ) + } } Self { - base__: IFabricClusterManagementClient5_Vtbl::new::(), - BeginToggleVerboseServicePlacementHealthReporting: - BeginToggleVerboseServicePlacementHealthReporting::, - EndToggleVerboseServicePlacementHealthReporting: - EndToggleVerboseServicePlacementHealthReporting::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricClusterManagementClient7_Impl: - Sized + IFabricClusterManagementClient6_Impl -{ - fn BeginUpgradeConfiguration( - &self, - startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUpgradeConfiguration( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginGetClusterConfigurationUpgradeStatus( - &self, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterConfigurationUpgradeStatus( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetUnplacedReplicaInformationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetUnplacedReplicaInformationResult {} +windows_core::imp::define_interface!( + IFabricHealthClient, + IFabricHealthClient_Vtbl, + 0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43 +); +windows_core::imp::interface_hierarchy!(IFabricHealthClient, windows_core::IUnknown); +impl IFabricHealthClient { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetClusterConfiguration( + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportHealth)( + windows_core::Interface::as_raw(self), + healthreport, + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetClusterHealth( &self, + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterConfiguration( + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterHealth)( + windows_core::Interface::as_raw(self), + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetUpgradesPendingApproval( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNodeHealth( &self, + nodename: P0, + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetUpgradesPendingApproval( + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNodeHealth)( + windows_core::Interface::as_raw(self), + nodename.param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginStartApprovedUpgrades( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationHealth( &self, + applicationname: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndStartApprovedUpgrades( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricClusterManagementClient7 {} -impl IFabricClusterManagementClient7_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient7_Vtbl + callback: P3, + ) -> windows_core::Result where - Identity: IFabricClusterManagementClient7_Impl, + P3: windows_core::Param, { - unsafe extern "system" fn BeginUpgradeConfiguration< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::BeginUpgradeConfiguration( - this, - core::mem::transmute_copy(&startupgradedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpgradeConfiguration< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient7_Impl::EndUpgradeConfiguration( - this, - windows_core::from_raw_borrowed(&context), + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationHealth)( + windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, ) - .into() - } - unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::BeginGetClusterConfigurationUpgradeStatus( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::EndGetClusterConfigurationUpgradeStatus( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetClusterConfiguration< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::BeginGetClusterConfiguration( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterConfiguration< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::EndGetClusterConfiguration( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetUpgradesPendingApproval< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::BeginGetUpgradesPendingApproval( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetUpgradesPendingApproval< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient7_Impl::EndGetUpgradesPendingApproval( - this, - windows_core::from_raw_borrowed(&context), + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationHealth( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, ) - .into() + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginStartApprovedUpgrades< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient7_Impl::BeginStartApprovedUpgrades( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartApprovedUpgrades< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricClusterManagementClient7_Impl::EndStartApprovedUpgrades( - this, - windows_core::from_raw_borrowed(&context), + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceHealth( + &self, + servicename: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceHealth)( + windows_core::Interface::as_raw(self), + servicename, + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, ) - .into() - } - Self { - base__: IFabricClusterManagementClient6_Vtbl::new::(), - BeginUpgradeConfiguration: BeginUpgradeConfiguration::, - EndUpgradeConfiguration: EndUpgradeConfiguration::, - BeginGetClusterConfigurationUpgradeStatus: BeginGetClusterConfigurationUpgradeStatus::< - Identity, - OFFSET, - >, - EndGetClusterConfigurationUpgradeStatus: EndGetClusterConfigurationUpgradeStatus::< - Identity, - OFFSET, - >, - BeginGetClusterConfiguration: BeginGetClusterConfiguration::, - EndGetClusterConfiguration: EndGetClusterConfiguration::, - BeginGetUpgradesPendingApproval: BeginGetUpgradesPendingApproval::, - EndGetUpgradesPendingApproval: EndGetUpgradesPendingApproval::, - BeginStartApprovedUpgrades: BeginStartApprovedUpgrades::, - EndStartApprovedUpgrades: EndStartApprovedUpgrades::, + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceHealth( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricClusterManagementClient8_Impl: - Sized + IFabricClusterManagementClient7_Impl -{ - fn BeginGetClusterManifest2( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetPartitionHealth( &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + partitionid: windows_core::GUID, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterManifest2( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricClusterManagementClient8 {} -impl IFabricClusterManagementClient8_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient8_Vtbl + callback: P3, + ) -> windows_core::Result where - Identity: IFabricClusterManagementClient8_Impl, + P3: windows_core::Param, { - unsafe extern "system" fn BeginGetClusterManifest2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient8_Impl::BeginGetClusterManifest2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterManifest2< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient8_Impl::EndGetClusterManifest2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: IFabricClusterManagementClient7_Vtbl::new::(), - BeginGetClusterManifest2: BeginGetClusterManifest2::, - EndGetClusterManifest2: EndGetClusterManifest2::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionHealth)( + windows_core::Interface::as_raw(self), + core::mem::transmute(partitionid), + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionHealth( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricClusterManagementClient9_Impl: - Sized + IFabricClusterManagementClient8_Impl -{ - fn BeginGetUpgradeOrchestrationServiceState( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetReplicaHealth( &self, + partitionid: windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetUpgradeOrchestrationServiceState( + callback: P4, + ) -> windows_core::Result + where + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetReplicaHealth)( + windows_core::Interface::as_raw(self), + core::mem::transmute(partitionid), + replicaid, + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetReplicaHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginSetUpgradeOrchestrationServiceState( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetReplicaHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedApplicationHealth( &self, - state: &windows_core::PCWSTR, + applicationname: super::FabricTypes::FABRIC_URI, + nodename: P1, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndSetUpgradeOrchestrationServiceState( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricClusterManagementClient9 {} -impl IFabricClusterManagementClient9_Vtbl { - pub const fn new( - ) -> IFabricClusterManagementClient9_Vtbl + callback: P4, + ) -> windows_core::Result where - Identity: IFabricClusterManagementClient9_Impl, + P1: windows_core::Param, + P4: windows_core::Param, { - unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient9_Impl::BeginGetUpgradeOrchestrationServiceState( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient9_Impl::EndGetUpgradeOrchestrationServiceState( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - state: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient9_Impl::BeginSetUpgradeOrchestrationServiceState( - this, - core::mem::transmute(&state), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth)( + windows_core::Interface::as_raw(self), + applicationname, + nodename.param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricClusterManagementClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricClusterManagementClient9_Impl::EndSetUpgradeOrchestrationServiceState( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedApplicationHealth( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: IFabricClusterManagementClient8_Vtbl::new::(), - BeginGetUpgradeOrchestrationServiceState: BeginGetUpgradeOrchestrationServiceState::< - Identity, - OFFSET, - >, - EndGetUpgradeOrchestrationServiceState: EndGetUpgradeOrchestrationServiceState::< - Identity, - OFFSET, - >, - BeginSetUpgradeOrchestrationServiceState: BeginSetUpgradeOrchestrationServiceState::< - Identity, - OFFSET, - >, - EndSetUpgradeOrchestrationServiceState: EndSetUpgradeOrchestrationServiceState::< - Identity, - OFFSET, - >, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + servicemanifestname: P1, + nodename: P2, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P5, + ) -> windows_core::Result + where + P1: windows_core::Param, + P2: windows_core::Param, + P5: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth)( + windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.param().abi(), + nodename.param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedServicePackageHealth( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricDeployedApplicationHealthResult_Impl: Sized { - fn get_DeployedApplicationHealth( +#[repr(C)] +pub struct IFabricHealthClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_REPORT, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetClusterHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetClusterHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNodeHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNodeHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetPartitionHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetPartitionHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetReplicaHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + i64, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetReplicaHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetReplicaHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetReplicaHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedApplicationHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedApplicationHealth: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedServicePackageHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedServicePackageHealth: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedServicePackageHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedServicePackageHealth: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricHealthClient_Impl: windows_core::IUnknownImpl { + fn ReportHealth( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH; -} -impl windows_core::RuntimeName for IFabricDeployedApplicationHealthResult {} -impl IFabricDeployedApplicationHealthResult_Vtbl { - pub const fn new( - ) -> IFabricDeployedApplicationHealthResult_Vtbl - where - Identity: IFabricDeployedApplicationHealthResult_Impl, - { - unsafe extern "system" fn get_DeployedApplicationHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH - where - Identity: IFabricDeployedApplicationHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDeployedApplicationHealthResult_Impl::get_DeployedApplicationHealth(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedApplicationHealth: get_DeployedApplicationHealth::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricDeployedServicePackageHealthResult_Impl: Sized { - fn get_DeployedServicePackageHealth( + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + ) -> windows_core::Result<()>; + fn BeginGetClusterHealth( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH; -} -impl windows_core::RuntimeName for IFabricDeployedServicePackageHealthResult {} -impl IFabricDeployedServicePackageHealthResult_Vtbl { - pub const fn new( - ) -> IFabricDeployedServicePackageHealthResult_Vtbl - where - Identity: IFabricDeployedServicePackageHealthResult_Impl, - { - unsafe extern "system" fn get_DeployedServicePackageHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH - where - Identity: IFabricDeployedServicePackageHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDeployedServicePackageHealthResult_Impl::get_DeployedServicePackageHealth(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricFaultManagementClient_Impl: Sized { - fn BeginRestartNode( + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetClusterHealth( &self, - description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetNodeHealth( + &self, + nodename: &windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndRestartNode( + fn EndGetNodeHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginStartNode( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetApplicationHealth( &self, - description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, + applicationname: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndStartNode( + fn EndGetApplicationHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginStopNode( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetServiceHealth( &self, - description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + servicename: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndStopNode( + fn EndGetServiceHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginRestartDeployedCodePackage( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetPartitionHealth( &self, - description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + partitionid: &windows_core::GUID, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndRestartDeployedCodePackage( + fn EndGetPartitionHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginMovePrimary( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetReplicaHealth( &self, - description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + partitionid: &windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndMovePrimary( + fn EndGetReplicaHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginMoveSecondary( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedApplicationHealth( &self, - description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + applicationname: super::FabricTypes::FABRIC_URI, + nodename: &windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndMoveSecondary( + fn EndGetDeployedApplicationHealth( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + servicemanifestname: &windows_core::PCWSTR, + nodename: &windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetDeployedServicePackageHealth( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricFaultManagementClient {} -impl IFabricFaultManagementClient_Vtbl { - pub const fn new( - ) -> IFabricFaultManagementClient_Vtbl - where - Identity: IFabricFaultManagementClient_Impl, - { - unsafe extern "system" fn BeginRestartNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginRestartNode( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndRestartNode( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginStartNode< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginStartNode( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartNode< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricHealthClient_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn ReportHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndStartNode( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricHealthClient_Impl::ReportHealth( + this, + core::mem::transmute_copy(&healthreport), + ) + .into() } } - unsafe extern "system" fn BeginStopNode< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetClusterHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2, + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginStopNode( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetClusterHealth( + this, + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndStopNode< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetClusterHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndStopNode( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetClusterHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetNodeHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description : *const super::FabricTypes:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + nodename: windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginRestartDeployedCodePackage( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetNodeHealth( + this, + core::mem::transmute(&nodename), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetNodeHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndRestartDeployedCodePackage( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetNodeHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginMovePrimary< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetApplicationHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + applicationname: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginMovePrimary( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetApplicationHealth( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndMovePrimary< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetApplicationHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndMovePrimary( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetApplicationHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginMoveSecondary< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetServiceHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + servicename: super::FabricTypes::FABRIC_URI, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::BeginMoveSecondary( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetServiceHealth( + this, + core::mem::transmute_copy(&servicename), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndMoveSecondary< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetServiceHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricFaultManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricFaultManagementClient_Impl::EndMoveSecondary( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetServiceHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginRestartNode: BeginRestartNode::, - EndRestartNode: EndRestartNode::, - BeginStartNode: BeginStartNode::, - EndStartNode: EndStartNode::, - BeginStopNode: BeginStopNode::, - EndStopNode: EndStopNode::, - BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::, - EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, - BeginMovePrimary: BeginMovePrimary::, - EndMovePrimary: EndMovePrimary::, - BeginMoveSecondary: BeginMoveSecondary::, - EndMoveSecondary: EndMoveSecondary::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGatewayInformationResult_Impl: Sized { - fn get_GatewayInformation(&self) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION; -} -impl windows_core::RuntimeName for IFabricGatewayInformationResult {} -impl IFabricGatewayInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGatewayInformationResult_Vtbl - where - Identity: IFabricGatewayInformationResult_Impl, - { - unsafe extern "system" fn get_GatewayInformation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_GATEWAY_INFORMATION - where - Identity: IFabricGatewayInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGatewayInformationResult_Impl::get_GatewayInformation(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_GatewayInformation: get_GatewayInformation::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationListResult_Impl: Sized { - fn get_ApplicationList(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetApplicationListResult {} -impl IFabricGetApplicationListResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationListResult_Vtbl - where - Identity: IFabricGetApplicationListResult_Impl, - { - unsafe extern "system" fn get_ApplicationList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST - where - Identity: IFabricGetApplicationListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationListResult_Impl::get_ApplicationList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationList: get_ApplicationList::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationListResult2_Impl: - Sized + IFabricGetApplicationListResult_Impl -{ - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetApplicationListResult2 {} -impl IFabricGetApplicationListResult2_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationListResult2_Vtbl - where - Identity: IFabricGetApplicationListResult2_Impl, - { - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetApplicationListResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationListResult2_Impl::get_PagingStatus(this) - } - Self { - base__: IFabricGetApplicationListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetApplicationLoadInformationResult_Impl: Sized { - fn get_ApplicationLoadInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION; -} -impl windows_core::RuntimeName for IFabricGetApplicationLoadInformationResult {} -impl IFabricGetApplicationLoadInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationLoadInformationResult_Vtbl - where - Identity: IFabricGetApplicationLoadInformationResult_Impl, - { - unsafe extern "system" fn get_ApplicationLoadInformation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION - where - Identity: IFabricGetApplicationLoadInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationLoadInformationResult_Impl::get_ApplicationLoadInformation(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationLoadInformation: get_ApplicationLoadInformation::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationNameResult_Impl: Sized { - fn get_ApplicationName(&self) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT; -} -impl windows_core::RuntimeName for IFabricGetApplicationNameResult {} -impl IFabricGetApplicationNameResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationNameResult_Vtbl - where - Identity: IFabricGetApplicationNameResult_Impl, - { - unsafe extern "system" fn get_ApplicationName< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetPartitionHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT - where - Identity: IFabricGetApplicationNameResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationNameResult_Impl::get_ApplicationName(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, + partitionid: windows_core::GUID, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetPartitionHealth( + this, + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationNetworkListResult_Impl: Sized { - fn get_ApplicationNetworkList( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetApplicationNetworkListResult {} -impl IFabricGetApplicationNetworkListResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationNetworkListResult_Vtbl - where - Identity: IFabricGetApplicationNetworkListResult_Impl, - { - unsafe extern "system" fn get_ApplicationNetworkList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetPartitionHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST - where - Identity: IFabricGetApplicationNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationNetworkListResult_Impl::get_ApplicationNetworkList(this) + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetPartitionHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetReplicaHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetApplicationNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationNetworkListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationNetworkList: get_ApplicationNetworkList::, - get_PagingStatus: get_PagingStatus::, + partitionid: windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetReplicaHealth( + this, + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&replicaid), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationTypeListResult_Impl: Sized { - fn get_ApplicationTypeList( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetApplicationTypeListResult {} -impl IFabricGetApplicationTypeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationTypeListResult_Vtbl - where - Identity: IFabricGetApplicationTypeListResult_Impl, - { - unsafe extern "system" fn get_ApplicationTypeList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetReplicaHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST - where - Identity: IFabricGetApplicationTypeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationTypeListResult_Impl::get_ApplicationTypeList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationTypeList: get_ApplicationTypeList::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationTypePagedListResult_Impl: Sized { - fn get_ApplicationTypePagedList( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetApplicationTypePagedListResult {} -impl IFabricGetApplicationTypePagedListResult_Vtbl { - pub const fn new( - ) -> IFabricGetApplicationTypePagedListResult_Vtbl - where - Identity: IFabricGetApplicationTypePagedListResult_Impl, - { - unsafe extern "system" fn get_ApplicationTypePagedList< - Identity: windows_core::IUnknownImpl, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetReplicaHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginGetDeployedApplicationHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST - where - Identity: IFabricGetApplicationTypePagedListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationTypePagedListResult_Impl::get_ApplicationTypePagedList(this) + applicationname: super::FabricTypes::FABRIC_URI, + nodename: windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetDeployedApplicationHealth( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute(&nodename), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedApplicationHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetApplicationTypePagedListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetApplicationTypePagedListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ApplicationTypePagedList: get_ApplicationTypePagedList::, - get_PagingStatus: get_PagingStatus::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetDeployedApplicationHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetClusterHealthChunkResult_Impl: Sized { - fn get_ClusterHealthChunk(&self) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK; -} -impl windows_core::RuntimeName for IFabricGetClusterHealthChunkResult {} -impl IFabricGetClusterHealthChunkResult_Vtbl { - pub const fn new( - ) -> IFabricGetClusterHealthChunkResult_Vtbl - where - Identity: IFabricGetClusterHealthChunkResult_Impl, - { - unsafe extern "system" fn get_ClusterHealthChunk< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetDeployedServicePackageHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK - where - Identity: IFabricGetClusterHealthChunkResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetClusterHealthChunkResult_Impl::get_ClusterHealthChunk(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ClusterHealthChunk: get_ClusterHealthChunk::, + applicationname: super::FabricTypes::FABRIC_URI, + servicemanifestname: windows_core::PCWSTR, + nodename: windows_core::PCWSTR, + healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::BeginGetDeployedServicePackageHealth( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute(&servicemanifestname), + core::mem::transmute(&nodename), + core::mem::transmute_copy(&healthpolicy), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetClusterLoadInformationResult_Impl: Sized { - fn get_ClusterLoadInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION; -} -impl windows_core::RuntimeName for IFabricGetClusterLoadInformationResult {} -impl IFabricGetClusterLoadInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetClusterLoadInformationResult_Vtbl - where - Identity: IFabricGetClusterLoadInformationResult_Impl, - { - unsafe extern "system" fn get_ClusterLoadInformation< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedServicePackageHealth< + Identity: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION - where - Identity: IFabricGetClusterLoadInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetClusterLoadInformationResult_Impl::get_ClusterLoadInformation(this) + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient_Impl::EndGetDeployedServicePackageHealth( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ClusterLoadInformation: get_ClusterLoadInformation::, + ReportHealth: ReportHealth::, + BeginGetClusterHealth: BeginGetClusterHealth::, + EndGetClusterHealth: EndGetClusterHealth::, + BeginGetNodeHealth: BeginGetNodeHealth::, + EndGetNodeHealth: EndGetNodeHealth::, + BeginGetApplicationHealth: BeginGetApplicationHealth::, + EndGetApplicationHealth: EndGetApplicationHealth::, + BeginGetServiceHealth: BeginGetServiceHealth::, + EndGetServiceHealth: EndGetServiceHealth::, + BeginGetPartitionHealth: BeginGetPartitionHealth::, + EndGetPartitionHealth: EndGetPartitionHealth::, + BeginGetReplicaHealth: BeginGetReplicaHealth::, + EndGetReplicaHealth: EndGetReplicaHealth::, + BeginGetDeployedApplicationHealth: BeginGetDeployedApplicationHealth::, + EndGetDeployedApplicationHealth: EndGetDeployedApplicationHealth::, + BeginGetDeployedServicePackageHealth: BeginGetDeployedServicePackageHealth::< + Identity, + OFFSET, + >, + EndGetDeployedServicePackageHealth: EndGetDeployedServicePackageHealth::< + Identity, + OFFSET, + >, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricGetDeployedApplicationListResult_Impl: Sized { - fn get_DeployedApplicationList( - &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricHealthClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricHealthClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricHealthClient {} +windows_core::imp::define_interface!( + IFabricHealthClient2, + IFabricHealthClient2_Vtbl, + 0x66cbc014_d7b3_4f81_a498_e580feb9a1f5 +); +impl core::ops::Deref for IFabricHealthClient2 { + type Target = IFabricHealthClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricGetDeployedApplicationListResult {} -impl IFabricGetDeployedApplicationListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedApplicationListResult_Vtbl +windows_core::imp::interface_hierarchy!( + IFabricHealthClient2, + windows_core::IUnknown, + IFabricHealthClient +); +impl IFabricHealthClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetClusterHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetDeployedApplicationListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_DeployedApplicationList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedApplicationListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedApplicationListResult_Impl::get_DeployedApplicationList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedApplicationList: get_DeployedApplicationList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedApplicationPagedListResult_Impl: Sized { - fn get_DeployedApplicationPagedList( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} -impl IFabricGetDeployedApplicationPagedListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedApplicationPagedListResult_Vtbl + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetDeployedApplicationPagedListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_DeployedApplicationPagedList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedApplicationPagedListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedApplicationPagedListResult_Impl::get_DeployedApplicationPagedList( - this, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetDeployedApplicationPagedListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedApplicationPagedListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID } -} -pub trait IFabricGetDeployedCodePackageListResult_Impl: Sized { - fn get_DeployedCodePackageList( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNodeHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetDeployedCodePackageListResult {} -impl IFabricGetDeployedCodePackageListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedCodePackageListResult_Vtbl + querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetDeployedCodePackageListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_DeployedCodePackageList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedCodePackageListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedCodePackageListResult_Impl::get_DeployedCodePackageList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedCodePackageList: get_DeployedCodePackageList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNodeHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: Sized { - fn get_DeployedNetworkCodePackageList( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} -impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedNetworkCodePackageListResult_Vtbl + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_DeployedNetworkCodePackageList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedNetworkCodePackageListResult_Impl::get_DeployedNetworkCodePackageList( - this, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, ) - } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedNetworkCodePackageListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::< - Identity, - OFFSET, - >, - get_PagingStatus: get_PagingStatus::, + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricGetDeployedNetworkListResult_Impl: Sized { - fn get_DeployedNetworkList( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetDeployedNetworkListResult {} -impl IFabricGetDeployedNetworkListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedNetworkListResult_Vtbl + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetDeployedNetworkListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_DeployedNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedNetworkListResult_Impl::get_DeployedNetworkList(this) - } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetDeployedNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedNetworkListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedNetworkList: get_DeployedNetworkList::, - get_PagingStatus: get_PagingStatus::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedReplicaListResult_Impl: Sized { - fn get_DeployedReplicaList( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetDeployedReplicaListResult {} -impl IFabricGetDeployedReplicaListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedReplicaListResult_Vtbl + querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetDeployedReplicaListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_DeployedReplicaList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedReplicaListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedReplicaListResult_Impl::get_DeployedReplicaList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedReplicaList: get_DeployedReplicaList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServicePackageListResult_Impl: Sized { - fn get_DeployedServicePackageList( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetDeployedServicePackageListResult {} -impl IFabricGetDeployedServicePackageListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedServicePackageListResult_Vtbl + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetDeployedServicePackageListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_DeployedServicePackageList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedServicePackageListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedServicePackageListResult_Impl::get_DeployedServicePackageList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedServicePackageList: get_DeployedServicePackageList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: Sized { - fn get_ReplicaDetail( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetPartitionHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM; -} -impl windows_core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} -impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedServiceReplicaDetailResult_Vtbl + querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_ReplicaDetail< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM - where - Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedServiceReplicaDetailResult_Impl::get_ReplicaDetail(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ReplicaDetail: get_ReplicaDetail::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServiceTypeListResult_Impl: Sized { - fn get_DeployedServiceTypeList( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} -impl IFabricGetDeployedServiceTypeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetDeployedServiceTypeListResult_Vtbl + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetDeployedServiceTypeListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_DeployedServiceTypeList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST - where - Identity: IFabricGetDeployedServiceTypeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetDeployedServiceTypeListResult_Impl::get_DeployedServiceTypeList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_DeployedServiceTypeList: get_DeployedServiceTypeList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkApplicationListResult_Impl: Sized { - fn get_NetworkApplicationList( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetReplicaHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetNetworkApplicationListResult {} -impl IFabricGetNetworkApplicationListResult_Vtbl { - pub const fn new( - ) -> IFabricGetNetworkApplicationListResult_Vtbl + querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetNetworkApplicationListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_NetworkApplicationList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST - where - Identity: IFabricGetNetworkApplicationListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkApplicationListResult_Impl::get_NetworkApplicationList(this) - } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetNetworkApplicationListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkApplicationListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NetworkApplicationList: get_NetworkApplicationList::, - get_PagingStatus: get_PagingStatus::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetReplicaHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkListResult_Impl: Sized { - fn get_NetworkList(&self) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetNetworkListResult {} -impl IFabricGetNetworkListResult_Vtbl { - pub const fn new( - ) -> IFabricGetNetworkListResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetReplicaHealth2( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetNetworkListResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_NetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST - where - Identity: IFabricGetNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkListResult_Impl::get_NetworkList(this) - } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetNetworkListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NetworkList: get_NetworkList::, - get_PagingStatus: get_PagingStatus::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetReplicaHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkNodeListResult_Impl: Sized { - fn get_NetworkNodeList(&self) - -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetNetworkNodeListResult {} -impl IFabricGetNetworkNodeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetNetworkNodeListResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetNetworkNodeListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_NetworkNodeList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST - where - Identity: IFabricGetNetworkNodeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkNodeListResult_Impl::get_NetworkNodeList(this) - } - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetNetworkNodeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNetworkNodeListResult_Impl::get_PagingStatus(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NetworkNodeList: get_NetworkNodeList::, - get_PagingStatus: get_PagingStatus::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedApplicationHealth2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricGetNodeListResult_Impl: Sized { - fn get_NodeList(&self) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetNodeListResult {} -impl IFabricGetNodeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetNodeListResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetNodeListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_NodeList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST - where - Identity: IFabricGetNodeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNodeListResult_Impl::get_NodeList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NodeList: get_NodeList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth2)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNodeListResult2_Impl: Sized + IFabricGetNodeListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetNodeListResult2 {} -impl IFabricGetNodeListResult2_Vtbl { - pub const fn new( - ) -> IFabricGetNodeListResult2_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedServicePackageHealth2( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricGetNodeListResult2_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetNodeListResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNodeListResult2_Impl::get_PagingStatus(this) - } - Self { - base__: IFabricGetNodeListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } } -pub trait IFabricGetNodeLoadInformationResult_Impl: Sized { - fn get_NodeLoadInformation(&self) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION; +#[repr(C)] +pub struct IFabricHealthClient2_Vtbl { + pub base__: IFabricHealthClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetClusterHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetClusterHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNodeHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNodeHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetPartitionHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetPartitionHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetReplicaHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetReplicaHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetReplicaHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetReplicaHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedApplicationHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedApplicationHealth2: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedServicePackageHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedServicePackageHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedServicePackageHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedServicePackageHealth2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricHealthClient2_Impl: IFabricHealthClient_Impl { + fn BeginGetClusterHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetClusterHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetNodeHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetNodeHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetApplicationHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetApplicationHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetServiceHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetServiceHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetPartitionHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetPartitionHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetReplicaHealth2( + &self, + querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetReplicaHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetDeployedApplicationHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetDeployedServicePackageHealth2( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricGetNodeLoadInformationResult {} -impl IFabricGetNodeLoadInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetNodeLoadInformationResult_Vtbl - where - Identity: IFabricGetNodeLoadInformationResult_Impl, - { - unsafe extern "system" fn get_NodeLoadInformation< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricHealthClient2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginGetClusterHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION - where - Identity: IFabricGetNodeLoadInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetNodeLoadInformationResult_Impl::get_NodeLoadInformation(this) + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetClusterHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NodeLoadInformation: get_NodeLoadInformation::, + unsafe extern "system" fn EndGetClusterHealth2< + Identity: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetClusterHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetPartitionListResult_Impl: Sized { - fn get_PartitionList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetPartitionListResult {} -impl IFabricGetPartitionListResult_Vtbl { - pub const fn new( - ) -> IFabricGetPartitionListResult_Vtbl - where - Identity: IFabricGetPartitionListResult_Impl, - { - unsafe extern "system" fn get_PartitionList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetNodeHealth2< + Identity: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetNodeHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetNodeHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST - where - Identity: IFabricGetPartitionListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetPartitionListResult_Impl::get_PartitionList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_PartitionList: get_PartitionList::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetNodeHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetPartitionListResult2_Impl: Sized + IFabricGetPartitionListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetPartitionListResult2 {} -impl IFabricGetPartitionListResult2_Vtbl { - pub const fn new( - ) -> IFabricGetPartitionListResult2_Vtbl - where - Identity: IFabricGetPartitionListResult2_Impl, - { - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetApplicationHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetPartitionListResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetPartitionListResult2_Impl::get_PagingStatus(this) - } - Self { - base__: IFabricGetPartitionListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, + querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetApplicationHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetPartitionLoadInformationResult_Impl: Sized { - fn get_PartitionLoadInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION; -} -impl windows_core::RuntimeName for IFabricGetPartitionLoadInformationResult {} -impl IFabricGetPartitionLoadInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetPartitionLoadInformationResult_Vtbl - where - Identity: IFabricGetPartitionLoadInformationResult_Impl, - { - unsafe extern "system" fn get_PartitionLoadInformation< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetApplicationHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION - where - Identity: IFabricGetPartitionLoadInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetPartitionLoadInformationResult_Impl::get_PartitionLoadInformation(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_PartitionLoadInformation: get_PartitionLoadInformation::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetApplicationHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetProvisionedCodeVersionListResult_Impl: Sized { - fn get_ProvisionedCodeVersionList( - &self, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} -impl IFabricGetProvisionedCodeVersionListResult_Vtbl { - pub const fn new( - ) -> IFabricGetProvisionedCodeVersionListResult_Vtbl - where - Identity: IFabricGetProvisionedCodeVersionListResult_Impl, - { - unsafe extern "system" fn get_ProvisionedCodeVersionList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetServiceHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST - where - Identity: IFabricGetProvisionedCodeVersionListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetProvisionedCodeVersionListResult_Impl::get_ProvisionedCodeVersionList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetServiceHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetProvisionedConfigVersionListResult_Impl: Sized { - fn get_ProvisionedConfigVersionList( - &self, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} -impl IFabricGetProvisionedConfigVersionListResult_Vtbl { - pub const fn new( - ) -> IFabricGetProvisionedConfigVersionListResult_Vtbl - where - Identity: IFabricGetProvisionedConfigVersionListResult_Impl, - { - unsafe extern "system" fn get_ProvisionedConfigVersionList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetServiceHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST - where - Identity: IFabricGetProvisionedConfigVersionListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetProvisionedConfigVersionListResult_Impl::get_ProvisionedConfigVersionList( - this, - ) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetServiceHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetRepairTaskListResult_Impl: Sized { - fn get_Tasks(&self) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST; -} -impl windows_core::RuntimeName for IFabricGetRepairTaskListResult {} -impl IFabricGetRepairTaskListResult_Vtbl { - pub const fn new( - ) -> IFabricGetRepairTaskListResult_Vtbl - where - Identity: IFabricGetRepairTaskListResult_Impl, - { - unsafe extern "system" fn get_Tasks< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetPartitionHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPAIR_TASK_LIST - where - Identity: IFabricGetRepairTaskListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetRepairTaskListResult_Impl::get_Tasks(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Tasks: get_Tasks::, + querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetPartitionHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetReplicaListResult_Impl: Sized { - fn get_ReplicaList(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetReplicaListResult {} -impl IFabricGetReplicaListResult_Vtbl { - pub const fn new( - ) -> IFabricGetReplicaListResult_Vtbl - where - Identity: IFabricGetReplicaListResult_Impl, - { - unsafe extern "system" fn get_ReplicaList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetPartitionHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST - where - Identity: IFabricGetReplicaListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetReplicaListResult_Impl::get_ReplicaList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ReplicaList: get_ReplicaList::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetPartitionHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetReplicaListResult2_Impl: Sized + IFabricGetReplicaListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; -} -impl windows_core::RuntimeName for IFabricGetReplicaListResult2 {} -impl IFabricGetReplicaListResult2_Vtbl { - pub const fn new( - ) -> IFabricGetReplicaListResult2_Vtbl - where - Identity: IFabricGetReplicaListResult2_Impl, - { - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetReplicaHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetReplicaListResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetReplicaListResult2_Impl::get_PagingStatus(this) - } - Self { - base__: IFabricGetReplicaListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, + querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetReplicaHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetReplicaLoadInformationResult_Impl: Sized { - fn get_ReplicaLoadInformation( - &self, - ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION; -} -impl windows_core::RuntimeName for IFabricGetReplicaLoadInformationResult {} -impl IFabricGetReplicaLoadInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetReplicaLoadInformationResult_Vtbl - where - Identity: IFabricGetReplicaLoadInformationResult_Impl, - { - unsafe extern "system" fn get_ReplicaLoadInformation< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetReplicaHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION - where - Identity: IFabricGetReplicaLoadInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetReplicaLoadInformationResult_Impl::get_ReplicaLoadInformation(this) + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetReplicaHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ReplicaLoadInformation: get_ReplicaLoadInformation::, + unsafe extern "system" fn BeginGetDeployedApplicationHealth2< + Identity: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetDeployedApplicationHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: Sized { - fn get_Policy(&self) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY; -} -impl windows_core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} -impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { - pub const fn new( - ) -> IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl - where - Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, - { - unsafe extern "system" fn get_Policy< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedApplicationHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY - where - Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetRollingUpgradeMonitoringPolicyResult_Impl::get_Policy(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Policy: get_Policy::, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetDeployedApplicationHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceGroupMemberListResult_Impl: Sized { - fn get_ServiceGroupMemberList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetServiceGroupMemberListResult {} -impl IFabricGetServiceGroupMemberListResult_Vtbl { - pub const fn new( - ) -> IFabricGetServiceGroupMemberListResult_Vtbl - where - Identity: IFabricGetServiceGroupMemberListResult_Impl, - { - unsafe extern "system" fn get_ServiceGroupMemberList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetDeployedServicePackageHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST - where - Identity: IFabricGetServiceGroupMemberListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceGroupMemberListResult_Impl::get_ServiceGroupMemberList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ServiceGroupMemberList: get_ServiceGroupMemberList::, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::BeginGetDeployedServicePackageHealth2( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: Sized { - fn get_ServiceGroupMemberTypeList( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST; -} -impl windows_core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} -impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetServiceGroupMemberTypeListResult_Vtbl - where - Identity: IFabricGetServiceGroupMemberTypeListResult_Impl, - { - unsafe extern "system" fn get_ServiceGroupMemberTypeList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedServicePackageHealth2< + Identity: IFabricHealthClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST - where - Identity: IFabricGetServiceGroupMemberTypeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceGroupMemberTypeListResult_Impl::get_ServiceGroupMemberTypeList(this) + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient2_Impl::EndGetDeployedServicePackageHealth2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::, + base__: IFabricHealthClient_Vtbl::new::(), + BeginGetClusterHealth2: BeginGetClusterHealth2::, + EndGetClusterHealth2: EndGetClusterHealth2::, + BeginGetNodeHealth2: BeginGetNodeHealth2::, + EndGetNodeHealth2: EndGetNodeHealth2::, + BeginGetApplicationHealth2: BeginGetApplicationHealth2::, + EndGetApplicationHealth2: EndGetApplicationHealth2::, + BeginGetServiceHealth2: BeginGetServiceHealth2::, + EndGetServiceHealth2: EndGetServiceHealth2::, + BeginGetPartitionHealth2: BeginGetPartitionHealth2::, + EndGetPartitionHealth2: EndGetPartitionHealth2::, + BeginGetReplicaHealth2: BeginGetReplicaHealth2::, + EndGetReplicaHealth2: EndGetReplicaHealth2::, + BeginGetDeployedApplicationHealth2: BeginGetDeployedApplicationHealth2::< + Identity, + OFFSET, + >, + EndGetDeployedApplicationHealth2: EndGetDeployedApplicationHealth2::, + BeginGetDeployedServicePackageHealth2: BeginGetDeployedServicePackageHealth2::< + Identity, + OFFSET, + >, + EndGetDeployedServicePackageHealth2: EndGetDeployedServicePackageHealth2::< + Identity, + OFFSET, + >, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricGetServiceListResult_Impl: Sized { - fn get_ServiceList(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST; +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricHealthClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricHealthClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricHealthClient2 {} +windows_core::imp::define_interface!( + IFabricHealthClient3, + IFabricHealthClient3_Vtbl, + 0xdd3e4497_3373_458d_ad22_c88ebd27493e +); +impl core::ops::Deref for IFabricHealthClient3 { + type Target = IFabricHealthClient2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricGetServiceListResult {} -impl IFabricGetServiceListResult_Vtbl { - pub const fn new( - ) -> IFabricGetServiceListResult_Vtbl +windows_core::imp::interface_hierarchy!( + IFabricHealthClient3, + windows_core::IUnknown, + IFabricHealthClient, + IFabricHealthClient2 +); +impl IFabricHealthClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetClusterHealthChunk( + &self, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricGetServiceListResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_ServiceList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST - where - Identity: IFabricGetServiceListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceListResult_Impl::get_ServiceList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ServiceList: get_ServiceList::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterHealthChunk)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterHealthChunk( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterHealthChunk)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricGetServiceListResult2_Impl: Sized + IFabricGetServiceListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS; +#[repr(C)] +pub struct IFabricHealthClient3_Vtbl { + pub base__: IFabricHealthClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetClusterHealthChunk: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetClusterHealthChunk: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterHealthChunk: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterHealthChunk: usize, } -impl windows_core::RuntimeName for IFabricGetServiceListResult2 {} -impl IFabricGetServiceListResult2_Vtbl { - pub const fn new( - ) -> IFabricGetServiceListResult2_Vtbl - where - Identity: IFabricGetServiceListResult2_Impl, - { - unsafe extern "system" fn get_PagingStatus< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricHealthClient3_Impl: IFabricHealthClient2_Impl { + fn BeginGetClusterHealthChunk( + &self, + querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndGetClusterHealthChunk( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricHealthClient3_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginGetClusterHealthChunk< + Identity: IFabricHealthClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PAGING_STATUS - where - Identity: IFabricGetServiceListResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceListResult2_Impl::get_PagingStatus(this) - } - Self { - base__: IFabricGetServiceListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, + querydescription : *const super::FabricTypes:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient3_Impl::BeginGetClusterHealthChunk( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetServiceNameResult_Impl: Sized { - fn get_ServiceName(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT; -} -impl windows_core::RuntimeName for IFabricGetServiceNameResult {} -impl IFabricGetServiceNameResult_Vtbl { - pub const fn new( - ) -> IFabricGetServiceNameResult_Vtbl - where - Identity: IFabricGetServiceNameResult_Impl, - { - unsafe extern "system" fn get_ServiceName< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetClusterHealthChunk< + Identity: IFabricHealthClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT - where - Identity: IFabricGetServiceNameResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceNameResult_Impl::get_ServiceName(this) + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricHealthClient3_Impl::EndGetClusterHealthChunk( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ServiceName: get_ServiceName::, + base__: IFabricHealthClient2_Vtbl::new::(), + BeginGetClusterHealthChunk: BeginGetClusterHealthChunk::, + EndGetClusterHealthChunk: EndGetClusterHealthChunk::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricGetServiceTypeListResult_Impl: Sized { - fn get_ServiceTypeList(&self) - -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST; +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricHealthClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricHealthClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricHealthClient3 {} +windows_core::imp::define_interface!( + IFabricHealthClient4, + IFabricHealthClient4_Vtbl, + 0x9f0401af_4909_404f_8696_0a71bd753e98 +); +impl core::ops::Deref for IFabricHealthClient4 { + type Target = IFabricHealthClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricGetServiceTypeListResult {} -impl IFabricGetServiceTypeListResult_Vtbl { - pub const fn new( - ) -> IFabricGetServiceTypeListResult_Vtbl - where - Identity: IFabricGetServiceTypeListResult_Impl, - { - unsafe extern "system" fn get_ServiceTypeList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST - where - Identity: IFabricGetServiceTypeListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetServiceTypeListResult_Impl::get_ServiceTypeList(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ServiceTypeList: get_ServiceTypeList::, +windows_core::imp::interface_hierarchy!( + IFabricHealthClient4, + windows_core::IUnknown, + IFabricHealthClient, + IFabricHealthClient2, + IFabricHealthClient3 +); +impl IFabricHealthClient4 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportHealth2( + &self, + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportHealth2)( + windows_core::Interface::as_raw(self), + healthreport, + sendoptions, + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } } -pub trait IFabricGetUnplacedReplicaInformationResult_Impl: Sized { - fn get_UnplacedReplicaInformation( +#[repr(C)] +pub struct IFabricHealthClient4_Vtbl { + pub base__: IFabricHealthClient3_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_REPORT, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportHealth2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricHealthClient4_Impl: IFabricHealthClient3_Impl { + fn ReportHealth2( &self, - ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION; + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} -impl IFabricGetUnplacedReplicaInformationResult_Vtbl { - pub const fn new( - ) -> IFabricGetUnplacedReplicaInformationResult_Vtbl - where - Identity: IFabricGetUnplacedReplicaInformationResult_Impl, - { - unsafe extern "system" fn get_UnplacedReplicaInformation< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricHealthClient4_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn ReportHealth2< + Identity: IFabricHealthClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION - where - Identity: IFabricGetUnplacedReplicaInformationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetUnplacedReplicaInformationResult_Impl::get_UnplacedReplicaInformation(this) + healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricHealthClient4_Impl::ReportHealth2( + this, + core::mem::transmute_copy(&healthreport), + core::mem::transmute_copy(&sendoptions), + ) + .into() + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::, + base__: IFabricHealthClient3_Vtbl::new::(), + ReportHealth2: ReportHealth2::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricHealthClient_Impl: Sized { - fn ReportHealth( - &self, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - ) -> windows_core::Result<()>; - fn BeginGetClusterHealth( - &self, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterHealth( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetNodeHealth( - &self, - nodename: &windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetNodeHealth( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetApplicationHealth( - &self, - applicationname: super::FabricTypes::FABRIC_URI, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetApplicationHealth( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetServiceHealth( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricHealthClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricHealthClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricHealthClient4 {} +windows_core::imp::define_interface!( + IFabricInfrastructureServiceClient, + IFabricInfrastructureServiceClient_Vtbl, + 0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49 +); +windows_core::imp::interface_hierarchy!(IFabricInfrastructureServiceClient, windows_core::IUnknown); +impl IFabricInfrastructureServiceClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginInvokeInfrastructureCommand( &self, servicename: super::FabricTypes::FABRIC_URI, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetServiceHealth( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetPartitionHealth( - &self, - partitionid: &windows_core::GUID, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + command: P1, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetPartitionHealth( + callback: P3, + ) -> windows_core::Result + where + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginInvokeInfrastructureCommand)( + windows_core::Interface::as_raw(self), + servicename, + command.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndInvokeInfrastructureCommand( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetReplicaHealth( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndInvokeInfrastructureCommand)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginInvokeInfrastructureQuery( &self, - partitionid: &windows_core::GUID, - replicaid: i64, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + servicename: super::FabricTypes::FABRIC_URI, + command: P1, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetReplicaHealth( + callback: P3, + ) -> windows_core::Result + where + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginInvokeInfrastructureQuery)( + windows_core::Interface::as_raw(self), + servicename, + command.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndInvokeInfrastructureQuery( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedApplicationHealth( + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndInvokeInfrastructureQuery)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricInfrastructureServiceClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginInvokeInfrastructureCommand: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginInvokeInfrastructureCommand: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndInvokeInfrastructureCommand: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndInvokeInfrastructureCommand: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginInvokeInfrastructureQuery: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginInvokeInfrastructureQuery: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndInvokeInfrastructureQuery: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndInvokeInfrastructureQuery: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricInfrastructureServiceClient_Impl: windows_core::IUnknownImpl { + fn BeginInvokeInfrastructureCommand( &self, - applicationname: super::FabricTypes::FABRIC_URI, - nodename: &windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + servicename: super::FabricTypes::FABRIC_URI, + command: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetDeployedApplicationHealth( + fn EndInvokeInfrastructureCommand( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedServicePackageHealth( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginInvokeInfrastructureQuery( &self, - applicationname: super::FabricTypes::FABRIC_URI, - servicemanifestname: &windows_core::PCWSTR, - nodename: &windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + servicename: super::FabricTypes::FABRIC_URI, + command: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetDeployedServicePackageHealth( + fn EndInvokeInfrastructureQuery( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricHealthClient {} -impl IFabricHealthClient_Vtbl { - pub const fn new( - ) -> IFabricHealthClient_Vtbl - where - Identity: IFabricHealthClient_Impl, - { - unsafe extern "system" fn ReportHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricHealthClient_Impl::ReportHealth(this, core::mem::transmute_copy(&healthreport)) - .into() - } - unsafe extern "system" fn BeginGetClusterHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetClusterHealth( - this, - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetClusterHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetNodeHealth< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricInfrastructureServiceClient_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn BeginInvokeInfrastructureCommand< + Identity: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - nodename: windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY, + servicename: super::FabricTypes::FABRIC_URI, + command: windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetNodeHealth( - this, - core::mem::transmute(&nodename), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureCommand( + this, + core::mem::transmute_copy(&servicename), + core::mem::transmute(&command), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetNodeHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndInvokeInfrastructureCommand< + Identity: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetNodeHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureCommand( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetApplicationHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginInvokeInfrastructureQuery< + Identity: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, + servicename: super::FabricTypes::FABRIC_URI, + command: windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetApplicationHealth( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureQuery( + this, + core::mem::transmute_copy(&servicename), + core::mem::transmute(&command), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetApplicationHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndInvokeInfrastructureQuery< + Identity: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetApplicationHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureQuery( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetServiceHealth< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::, + EndInvokeInfrastructureCommand: EndInvokeInfrastructureCommand::, + BeginInvokeInfrastructureQuery: BeginInvokeInfrastructureQuery::, + EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricInfrastructureServiceClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricInfrastructureServiceClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricInfrastructureServiceClient {} +windows_core::imp::define_interface!( + IFabricMovePrimaryResult, + IFabricMovePrimaryResult_Vtbl, + 0x66ac03f5_e61c_47a2_80fe_49309a02c92c +); +windows_core::imp::interface_hierarchy!(IFabricMovePrimaryResult, windows_core::IUnknown); +impl IFabricMovePrimaryResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricMovePrimaryResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricMovePrimaryResult_Impl: windows_core::IUnknownImpl { + fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricMovePrimaryResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Result< + Identity: IFabricMovePrimaryResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - servicename: super::FabricTypes::FABRIC_URI, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetServiceHealth( - this, - core::mem::transmute_copy(&servicename), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricMovePrimaryResult_Impl::get_Result(this) } } - unsafe extern "system" fn EndGetServiceHealth< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricMovePrimaryResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricMovePrimaryResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricMovePrimaryResult {} +windows_core::imp::define_interface!( + IFabricMoveSecondaryResult, + IFabricMoveSecondaryResult_Vtbl, + 0x60fe896a_b690_4abb_94fd_86c615d29bee +); +windows_core::imp::interface_hierarchy!(IFabricMoveSecondaryResult, windows_core::IUnknown); +impl IFabricMoveSecondaryResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricMoveSecondaryResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricMoveSecondaryResult_Impl: windows_core::IUnknownImpl { + fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricMoveSecondaryResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Result< + Identity: IFabricMoveSecondaryResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetServiceHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricMoveSecondaryResult_Impl::get_Result(this) } } - unsafe extern "system" fn BeginGetPartitionHealth< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricMoveSecondaryResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricMoveSecondaryResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricMoveSecondaryResult {} +windows_core::imp::define_interface!( + IFabricNameEnumerationResult, + IFabricNameEnumerationResult_Vtbl, + 0x557e8105_f4f4_4fd3_9d21_075f34e2f98c +); +windows_core::imp::interface_hierarchy!(IFabricNameEnumerationResult, windows_core::IUnknown); +impl IFabricNameEnumerationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_EnumerationStatus)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetNames( + &self, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetNames)( + windows_core::Interface::as_raw(self), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricNameEnumerationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_EnumerationStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_EnumerationStatus: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetNames: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_URI, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetNames: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricNameEnumerationResult_Impl: windows_core::IUnknownImpl { + fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS; + fn GetNames( + &self, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI>; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricNameEnumerationResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_EnumerationStatus< + Identity: IFabricNameEnumerationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - partitionid: windows_core::GUID, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetPartitionHealth( - this, - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNameEnumerationResult_Impl::get_EnumerationStatus(this) } } - unsafe extern "system" fn EndGetPartitionHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetNames< + Identity: IFabricNameEnumerationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetPartitionHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + itemcount: *mut u32, + buffereditems: *mut *mut super::FabricTypes::FABRIC_URI, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNameEnumerationResult_Impl::GetNames( + this, + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetReplicaHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - partitionid: windows_core::GUID, - replicaid: i64, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetReplicaHealth( - this, - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&replicaid), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_EnumerationStatus: get_EnumerationStatus::, + GetNames: GetNames::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricNameEnumerationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricNameEnumerationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricNameEnumerationResult {} +windows_core::imp::define_interface!( + IFabricNetworkManagementClient, + IFabricNetworkManagementClient_Vtbl, + 0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398 +); +windows_core::imp::interface_hierarchy!(IFabricNetworkManagementClient, windows_core::IUnknown); +impl IFabricNetworkManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateNetwork( + &self, + networkname: P0, + description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateNetwork)( + windows_core::Interface::as_raw(self), + networkname.param().abi(), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateNetwork(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateNetwork)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteNetwork( + &self, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteNetwork)( + windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteNetwork(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteNetwork)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNetworkList( + &self, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNetworkList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNetworkList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNetworkList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNetworkApplicationList( + &self, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNetworkApplicationList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNetworkApplicationList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNetworkApplicationList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetReplicaHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetReplicaHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNetworkNodeList( + &self, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNetworkNodeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetDeployedApplicationHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - nodename: windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetDeployedApplicationHealth( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute(&nodename), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNetworkNodeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNetworkNodeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetDeployedApplicationHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetDeployedApplicationHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationNetworkList( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationNetworkList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetDeployedServicePackageHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - applicationname: super::FabricTypes::FABRIC_URI, - servicemanifestname: windows_core::PCWSTR, - nodename: windows_core::PCWSTR, - healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::BeginGetDeployedServicePackageHealth( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute(&servicemanifestname), - core::mem::transmute(&nodename), - core::mem::transmute_copy(&healthpolicy), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationNetworkList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationNetworkList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetDeployedServicePackageHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient_Impl::EndGetDeployedServicePackageHealth( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedNetworkList( + &self, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedNetworkList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - ReportHealth: ReportHealth::, - BeginGetClusterHealth: BeginGetClusterHealth::, - EndGetClusterHealth: EndGetClusterHealth::, - BeginGetNodeHealth: BeginGetNodeHealth::, - EndGetNodeHealth: EndGetNodeHealth::, - BeginGetApplicationHealth: BeginGetApplicationHealth::, - EndGetApplicationHealth: EndGetApplicationHealth::, - BeginGetServiceHealth: BeginGetServiceHealth::, - EndGetServiceHealth: EndGetServiceHealth::, - BeginGetPartitionHealth: BeginGetPartitionHealth::, - EndGetPartitionHealth: EndGetPartitionHealth::, - BeginGetReplicaHealth: BeginGetReplicaHealth::, - EndGetReplicaHealth: EndGetReplicaHealth::, - BeginGetDeployedApplicationHealth: BeginGetDeployedApplicationHealth::, - EndGetDeployedApplicationHealth: EndGetDeployedApplicationHealth::, - BeginGetDeployedServicePackageHealth: BeginGetDeployedServicePackageHealth::< - Identity, - OFFSET, - >, - EndGetDeployedServicePackageHealth: EndGetDeployedServicePackageHealth::< - Identity, - OFFSET, - >, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedNetworkList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedNetworkList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedNetworkCodePackageList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedNetworkCodePackageList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedNetworkCodePackageList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedNetworkCodePackageList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricHealthClient2_Impl: Sized + IFabricHealthClient_Impl { - fn BeginGetClusterHealth2( +#[repr(C)] +pub struct IFabricNetworkManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateNetwork: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateNetwork: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateNetwork: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateNetwork: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteNetwork: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteNetwork: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteNetwork: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteNetwork: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNetworkList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNetworkList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNetworkApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNetworkApplicationList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNetworkApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNetworkApplicationList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNetworkNodeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNetworkNodeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNetworkNodeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNetworkNodeList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationNetworkList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationNetworkList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedNetworkList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedNetworkList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedNetworkList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedNetworkCodePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedNetworkCodePackageList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedNetworkCodePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedNetworkCodePackageList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricNetworkManagementClient_Impl: windows_core::IUnknownImpl { + fn BeginCreateNetwork( &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + networkname: &windows_core::PCWSTR, + description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetClusterHealth2( + fn EndCreateNetwork( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetNodeHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginDeleteNetwork( &self, - querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetNodeHealth2( + fn EndDeleteNetwork( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetApplicationHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginGetNetworkList( &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetApplicationHealth2( + fn EndGetNetworkList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetServiceHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetNetworkApplicationList( &self, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetServiceHealth2( + fn EndGetNetworkApplicationList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetPartitionHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetNetworkNodeList( &self, - querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetPartitionHealth2( + fn EndGetNetworkNodeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetReplicaHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetApplicationNetworkList( &self, - querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetReplicaHealth2( + fn EndGetApplicationNetworkList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedApplicationHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedNetworkList( &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetDeployedApplicationHealth2( + fn EndGetDeployedNetworkList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedServicePackageHealth2( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginGetDeployedNetworkCodePackageList( &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; - fn EndGetDeployedServicePackageHealth2( + fn EndGetDeployedNetworkCodePackageList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricHealthClient2 {} -impl IFabricHealthClient2_Vtbl { - pub const fn new( - ) -> IFabricHealthClient2_Vtbl - where - Identity: IFabricHealthClient2_Impl, - { - unsafe extern "system" fn BeginGetClusterHealth2< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricNetworkManagementClient_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginCreateNetwork< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + networkname: windows_core::PCWSTR, + description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetClusterHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginCreateNetwork( + this, + core::mem::transmute(&networkname), + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetClusterHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndCreateNetwork< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetClusterHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNetworkManagementClient_Impl::EndCreateNetwork( + this, + core::mem::transmute_copy(&context), + ) + .into() } } - unsafe extern "system" fn BeginGetNodeHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginDeleteNetwork< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetNodeHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginDeleteNetwork( + this, + core::mem::transmute_copy(&deletedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetNodeHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndDeleteNetwork< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetNodeHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNetworkManagementClient_Impl::EndDeleteNetwork( + this, + core::mem::transmute_copy(&context), + ) + .into() } } - unsafe extern "system" fn BeginGetApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetApplicationHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetNetworkList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetApplicationHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetNetworkList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetServiceHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetNetworkApplicationList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + querydescription : *const super::FabricTypes:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetServiceHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetNetworkApplicationList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetServiceHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetNetworkApplicationList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetServiceHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetNetworkApplicationList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetPartitionHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetNetworkNodeList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetPartitionHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetNetworkNodeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetPartitionHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetNetworkNodeList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetPartitionHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetNetworkNodeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetReplicaHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetApplicationNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetReplicaHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetApplicationNetworkList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetReplicaHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetApplicationNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetReplicaHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetApplicationNetworkList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetDeployedApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetDeployedNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetDeployedApplicationHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetDeployedApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedNetworkList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetDeployedApplicationHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginGetDeployedServicePackageHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::BeginGetDeployedServicePackageHealth2( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkCodePackageList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetDeployedServicePackageHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndGetDeployedNetworkCodePackageList< + Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient2_Impl::EndGetDeployedServicePackageHealth2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkCodePackageList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { - base__: IFabricHealthClient_Vtbl::new::(), - BeginGetClusterHealth2: BeginGetClusterHealth2::, - EndGetClusterHealth2: EndGetClusterHealth2::, - BeginGetNodeHealth2: BeginGetNodeHealth2::, - EndGetNodeHealth2: EndGetNodeHealth2::, - BeginGetApplicationHealth2: BeginGetApplicationHealth2::, - EndGetApplicationHealth2: EndGetApplicationHealth2::, - BeginGetServiceHealth2: BeginGetServiceHealth2::, - EndGetServiceHealth2: EndGetServiceHealth2::, - BeginGetPartitionHealth2: BeginGetPartitionHealth2::, - EndGetPartitionHealth2: EndGetPartitionHealth2::, - BeginGetReplicaHealth2: BeginGetReplicaHealth2::, - EndGetReplicaHealth2: EndGetReplicaHealth2::, - BeginGetDeployedApplicationHealth2: BeginGetDeployedApplicationHealth2::< - Identity, - OFFSET, - >, - EndGetDeployedApplicationHealth2: EndGetDeployedApplicationHealth2::, - BeginGetDeployedServicePackageHealth2: BeginGetDeployedServicePackageHealth2::< + base__: windows_core::IUnknown_Vtbl::new::(), + BeginCreateNetwork: BeginCreateNetwork::, + EndCreateNetwork: EndCreateNetwork::, + BeginDeleteNetwork: BeginDeleteNetwork::, + EndDeleteNetwork: EndDeleteNetwork::, + BeginGetNetworkList: BeginGetNetworkList::, + EndGetNetworkList: EndGetNetworkList::, + BeginGetNetworkApplicationList: BeginGetNetworkApplicationList::, + EndGetNetworkApplicationList: EndGetNetworkApplicationList::, + BeginGetNetworkNodeList: BeginGetNetworkNodeList::, + EndGetNetworkNodeList: EndGetNetworkNodeList::, + BeginGetApplicationNetworkList: BeginGetApplicationNetworkList::, + EndGetApplicationNetworkList: EndGetApplicationNetworkList::, + BeginGetDeployedNetworkList: BeginGetDeployedNetworkList::, + EndGetDeployedNetworkList: EndGetDeployedNetworkList::, + BeginGetDeployedNetworkCodePackageList: BeginGetDeployedNetworkCodePackageList::< Identity, OFFSET, >, - EndGetDeployedServicePackageHealth2: EndGetDeployedServicePackageHealth2::< + EndGetDeployedNetworkCodePackageList: EndGetDeployedNetworkCodePackageList::< Identity, OFFSET, >, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricNetworkManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricNetworkManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricNetworkManagementClient {} +windows_core::imp::define_interface!( + IFabricNodeHealthResult, + IFabricNodeHealthResult_Vtbl, + 0xe461f70b_51b8_4b73_9f35_e38e5ac68719 +); +windows_core::imp::interface_hierarchy!(IFabricNodeHealthResult, windows_core::IUnknown); +impl IFabricNodeHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NodeHealth(&self) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_NodeHealth)(windows_core::Interface::as_raw( + self, + )) + } } } -pub trait IFabricHealthClient3_Impl: Sized + IFabricHealthClient2_Impl { - fn BeginGetClusterHealthChunk( - &self, - querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetClusterHealthChunk( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; +#[repr(C)] +pub struct IFabricNodeHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NodeHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NODE_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NodeHealth: usize, } -impl windows_core::RuntimeName for IFabricHealthClient3 {} -impl IFabricHealthClient3_Vtbl { - pub const fn new( - ) -> IFabricHealthClient3_Vtbl - where - Identity: IFabricHealthClient3_Impl, - { - unsafe extern "system" fn BeginGetClusterHealthChunk< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient3_Impl::BeginGetClusterHealthChunk( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterHealthChunk< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricNodeHealthResult_Impl: windows_core::IUnknownImpl { + fn get_NodeHealth(&self) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricNodeHealthResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_NodeHealth< + Identity: IFabricNodeHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricHealthClient3_Impl::EndGetClusterHealthChunk( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNodeHealthResult_Impl::get_NodeHealth(this) } } Self { - base__: IFabricHealthClient2_Vtbl::new::(), - BeginGetClusterHealthChunk: BeginGetClusterHealthChunk::, - EndGetClusterHealthChunk: EndGetClusterHealthChunk::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_NodeHealth: get_NodeHealth::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricHealthClient4_Impl: Sized + IFabricHealthClient3_Impl { - fn ReportHealth2( - &self, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()>; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricNodeHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricNodeHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricNodeHealthResult {} +windows_core::imp::define_interface!( + IFabricNodeTransitionProgressResult, + IFabricNodeTransitionProgressResult_Vtbl, + 0x68a98626_6a1b_4dd8_ad93_74c0936e86aa +); +windows_core::imp::interface_hierarchy!( + IFabricNodeTransitionProgressResult, + windows_core::IUnknown +); +impl IFabricNodeTransitionProgressResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw( + self, + )) + } + } } -impl windows_core::RuntimeName for IFabricHealthClient4 {} -impl IFabricHealthClient4_Vtbl { - pub const fn new( - ) -> IFabricHealthClient4_Vtbl - where - Identity: IFabricHealthClient4_Impl, - { - unsafe extern "system" fn ReportHealth2< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricNodeTransitionProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Progress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Progress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricNodeTransitionProgressResult_Impl: windows_core::IUnknownImpl { + fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricNodeTransitionProgressResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Progress< + Identity: IFabricNodeTransitionProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricHealthClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricHealthClient4_Impl::ReportHealth2( - this, - core::mem::transmute_copy(&healthreport), - core::mem::transmute_copy(&sendoptions), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNodeTransitionProgressResult_Impl::get_Progress(this) + } } Self { - base__: IFabricHealthClient3_Vtbl::new::(), - ReportHealth2: ReportHealth2::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricInfrastructureServiceClient_Impl: Sized { - fn BeginInvokeInfrastructureCommand( - &self, - servicename: super::FabricTypes::FABRIC_URI, - command: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndInvokeInfrastructureCommand( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginInvokeInfrastructureQuery( - &self, - servicename: super::FabricTypes::FABRIC_URI, - command: &windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndInvokeInfrastructureQuery( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricNodeTransitionProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricNodeTransitionProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricNodeTransitionProgressResult {} +windows_core::imp::define_interface!( + IFabricOrchestrationUpgradeStatusResult, + IFabricOrchestrationUpgradeStatusResult_Vtbl, + 0x95a56e4a_490d_445e_865c_ef0a62f15504 +); +windows_core::imp::interface_hierarchy!( + IFabricOrchestrationUpgradeStatusResult, + windows_core::IUnknown +); +impl IFabricOrchestrationUpgradeStatusResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Progress( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + ) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw( + self, + )) + } + } } -impl windows_core::RuntimeName for IFabricInfrastructureServiceClient {} -impl IFabricInfrastructureServiceClient_Vtbl { - pub const fn new( - ) -> IFabricInfrastructureServiceClient_Vtbl - where - Identity: IFabricInfrastructureServiceClient_Impl, - { - unsafe extern "system" fn BeginInvokeInfrastructureCommand< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Progress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Progress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricOrchestrationUpgradeStatusResult_Impl: windows_core::IUnknownImpl { + fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricOrchestrationUpgradeStatusResult_Vtbl { + pub const fn new< + Identity: IFabricOrchestrationUpgradeStatusResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_Progress< + Identity: IFabricOrchestrationUpgradeStatusResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - servicename: super::FabricTypes::FABRIC_URI, - command: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricInfrastructureServiceClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureCommand( - this, - core::mem::transmute_copy(&servicename), - core::mem::transmute(&command), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricOrchestrationUpgradeStatusResult_Impl::get_Progress(this) } } - unsafe extern "system" fn EndInvokeInfrastructureCommand< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricInfrastructureServiceClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureCommand( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, } - unsafe extern "system" fn BeginInvokeInfrastructureQuery< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - servicename: super::FabricTypes::FABRIC_URI, - command: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricInfrastructureServiceClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureQuery( - this, - core::mem::transmute_copy(&servicename), - core::mem::transmute(&command), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricOrchestrationUpgradeStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricOrchestrationUpgradeStatusResult {} +windows_core::imp::define_interface!( + IFabricPartitionDataLossProgressResult, + IFabricPartitionDataLossProgressResult_Vtbl, + 0x614921e6_75f1_44e7_9107_ab88819136b8 +); +windows_core::imp::interface_hierarchy!( + IFabricPartitionDataLossProgressResult, + windows_core::IUnknown +); +impl IFabricPartitionDataLossProgressResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Progress( + &self, + ) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw( + self, + )) } - unsafe extern "system" fn EndInvokeInfrastructureQuery< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricPartitionDataLossProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Progress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Progress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPartitionDataLossProgressResult_Impl: windows_core::IUnknownImpl { + fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPartitionDataLossProgressResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Progress< + Identity: IFabricPartitionDataLossProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricInfrastructureServiceClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureQuery( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPartitionDataLossProgressResult_Impl::get_Progress(this) } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::, - EndInvokeInfrastructureCommand: EndInvokeInfrastructureCommand::, - BeginInvokeInfrastructureQuery: BeginInvokeInfrastructureQuery::, - EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::, + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPartitionDataLossProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPartitionDataLossProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPartitionDataLossProgressResult {} +windows_core::imp::define_interface!( + IFabricPartitionHealthResult, + IFabricPartitionHealthResult_Vtbl, + 0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576 +); +windows_core::imp::interface_hierarchy!(IFabricPartitionHealthResult, windows_core::IUnknown); +impl IFabricPartitionHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_PartitionHealth(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_PartitionHealth)( + windows_core::Interface::as_raw(self), + ) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } } -pub trait IFabricMovePrimaryResult_Impl: Sized { - fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT; +#[repr(C)] +pub struct IFabricPartitionHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_PartitionHealth: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_PartitionHealth: usize, } -impl windows_core::RuntimeName for IFabricMovePrimaryResult {} -impl IFabricMovePrimaryResult_Vtbl { - pub const fn new( - ) -> IFabricMovePrimaryResult_Vtbl - where - Identity: IFabricMovePrimaryResult_Impl, - { - unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPartitionHealthResult_Impl: windows_core::IUnknownImpl { + fn get_PartitionHealth(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPartitionHealthResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_PartitionHealth< + Identity: IFabricPartitionHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT - where - Identity: IFabricMovePrimaryResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricMovePrimaryResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPartitionHealthResult_Impl::get_PartitionHealth(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, + get_PartitionHealth: get_PartitionHealth::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricMoveSecondaryResult_Impl: Sized { - fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPartitionHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPartitionHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPartitionHealthResult {} +windows_core::imp::define_interface!( + IFabricPartitionQuorumLossProgressResult, + IFabricPartitionQuorumLossProgressResult_Vtbl, + 0x36d8e378_3706_403d_8d99_2afd1a120687 +); +windows_core::imp::interface_hierarchy!( + IFabricPartitionQuorumLossProgressResult, + windows_core::IUnknown +); +impl IFabricPartitionQuorumLossProgressResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Progress( + &self, + ) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw( + self, + )) + } + } } -impl windows_core::RuntimeName for IFabricMoveSecondaryResult {} -impl IFabricMoveSecondaryResult_Vtbl { - pub const fn new( - ) -> IFabricMoveSecondaryResult_Vtbl - where - Identity: IFabricMoveSecondaryResult_Impl, - { - unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricPartitionQuorumLossProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Progress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Progress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPartitionQuorumLossProgressResult_Impl: windows_core::IUnknownImpl { + fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPartitionQuorumLossProgressResult_Vtbl { + pub const fn new< + Identity: IFabricPartitionQuorumLossProgressResult_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn get_Progress< + Identity: IFabricPartitionQuorumLossProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT - where - Identity: IFabricMoveSecondaryResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricMoveSecondaryResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPartitionQuorumLossProgressResult_Impl::get_Progress(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, + get_Progress: get_Progress::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricNameEnumerationResult_Impl: Sized { - fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS; - fn GetNames( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPartitionQuorumLossProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPartitionQuorumLossProgressResult {} +windows_core::imp::define_interface!( + IFabricPartitionRestartProgressResult, + IFabricPartitionRestartProgressResult_Vtbl, + 0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61 +); +windows_core::imp::interface_hierarchy!( + IFabricPartitionRestartProgressResult, + windows_core::IUnknown +); +impl IFabricPartitionRestartProgressResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Progress( &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI>; -} -impl windows_core::RuntimeName for IFabricNameEnumerationResult {} -impl IFabricNameEnumerationResult_Vtbl { - pub const fn new( - ) -> IFabricNameEnumerationResult_Vtbl - where - Identity: IFabricNameEnumerationResult_Impl, - { - unsafe extern "system" fn get_EnumerationStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS - where - Identity: IFabricNameEnumerationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNameEnumerationResult_Impl::get_EnumerationStatus(this) + ) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw( + self, + )) } - unsafe extern "system" fn GetNames< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricPartitionRestartProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Progress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Progress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPartitionRestartProgressResult_Impl: windows_core::IUnknownImpl { + fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPartitionRestartProgressResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Progress< + Identity: IFabricPartitionRestartProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::FabricTypes::FABRIC_URI, - ) -> windows_core::HRESULT - where - Identity: IFabricNameEnumerationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNameEnumerationResult_Impl::GetNames( - this, - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPartitionRestartProgressResult_Impl::get_Progress(this) } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_EnumerationStatus: get_EnumerationStatus::, - GetNames: GetNames::, + get_Progress: get_Progress::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricNetworkManagementClient_Impl: Sized { - fn BeginCreateNetwork( - &self, - networkname: &windows_core::PCWSTR, - description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndCreateNetwork( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginDeleteNetwork( - &self, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeleteNetwork( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginGetNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetNetworkList( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetNetworkApplicationList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetNetworkApplicationList( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetNetworkNodeList( - &self, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetNetworkNodeList( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetApplicationNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetApplicationNetworkList( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedNetworkList( - &self, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetDeployedNetworkList( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginGetDeployedNetworkCodePackageList( - &self, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndGetDeployedNetworkCodePackageList( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPartitionRestartProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPartitionRestartProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPartitionRestartProgressResult {} +windows_core::imp::define_interface!( + IFabricPropertyBatchResult, + IFabricPropertyBatchResult_Vtbl, + 0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe +); +windows_core::imp::interface_hierarchy!(IFabricPropertyBatchResult, windows_core::IUnknown); +impl IFabricPropertyBatchResult { + pub unsafe fn GetProperty( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricNetworkManagementClient {} -impl IFabricNetworkManagementClient_Vtbl { - pub const fn new( - ) -> IFabricNetworkManagementClient_Vtbl - where - Identity: IFabricNetworkManagementClient_Impl, - { - unsafe extern "system" fn BeginCreateNetwork< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - networkname: windows_core::PCWSTR, - description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginCreateNetwork( - this, - core::mem::transmute(&networkname), - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateNetwork< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNetworkManagementClient_Impl::EndCreateNetwork( - this, - windows_core::from_raw_borrowed(&context), + operationindexinrequest: u32, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetProperty)( + windows_core::Interface::as_raw(self), + operationindexinrequest, + &mut result__, ) - .into() + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginDeleteNetwork< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricPropertyBatchResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub GetProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricPropertyBatchResult_Impl: windows_core::IUnknownImpl { + fn GetProperty( + &self, + operationindexinrequest: u32, + ) -> windows_core::Result; +} +impl IFabricPropertyBatchResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn GetProperty< + Identity: IFabricPropertyBatchResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginDeleteNetwork( - this, - core::mem::transmute_copy(&deletedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + operationindexinrequest: u32, + property: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyBatchResult_Impl::GetProperty( + this, + core::mem::transmute_copy(&operationindexinrequest), + ) { + Ok(ok__) => { + property.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndDeleteNetwork< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNetworkManagementClient_Impl::EndDeleteNetwork( - this, - windows_core::from_raw_borrowed(&context), + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + GetProperty: GetProperty::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricPropertyBatchResult {} +unsafe impl Send for IFabricPropertyBatchResult {} +unsafe impl Sync for IFabricPropertyBatchResult {} +windows_core::imp::define_interface!( + IFabricPropertyEnumerationResult, + IFabricPropertyEnumerationResult_Vtbl, + 0xa42da40d_a637_478d_83f3_2813871234cf +); +windows_core::imp::interface_hierarchy!(IFabricPropertyEnumerationResult, windows_core::IUnknown); +impl IFabricPropertyEnumerationResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { + unsafe { + (windows_core::Interface::vtable(self).get_EnumerationStatus)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn BeginGetNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetNetworkList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub unsafe fn get_PropertyCount(&self) -> u32 { + unsafe { + (windows_core::Interface::vtable(self).get_PropertyCount)( + windows_core::Interface::as_raw(self), + ) } - unsafe extern "system" fn EndGetNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetNetworkList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub unsafe fn GetProperty( + &self, + index: u32, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetProperty)( + windows_core::Interface::as_raw(self), + index, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetNetworkApplicationList< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricPropertyEnumerationResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_EnumerationStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_EnumerationStatus: usize, + pub get_PropertyCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32, + pub GetProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPropertyEnumerationResult_Impl: windows_core::IUnknownImpl { + fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS; + fn get_PropertyCount(&self) -> u32; + fn GetProperty(&self, index: u32) -> windows_core::Result; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPropertyEnumerationResult_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn get_EnumerationStatus< + Identity: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetNetworkApplicationList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyEnumerationResult_Impl::get_EnumerationStatus(this) } } - unsafe extern "system" fn EndGetNetworkApplicationList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_PropertyCount< + Identity: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetNetworkApplicationList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> u32 { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyEnumerationResult_Impl::get_PropertyCount(this) } } - unsafe extern "system" fn BeginGetNetworkNodeList< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetProperty< + Identity: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetNetworkNodeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + index: u32, + property: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyEnumerationResult_Impl::GetProperty( + this, + core::mem::transmute_copy(&index), + ) { + Ok(ok__) => { + property.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetNetworkNodeList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetNetworkNodeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_EnumerationStatus: get_EnumerationStatus::, + get_PropertyCount: get_PropertyCount::, + GetProperty: GetProperty::, } - unsafe extern "system" fn BeginGetApplicationNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetApplicationNetworkList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPropertyEnumerationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPropertyEnumerationResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPropertyEnumerationResult {} +windows_core::imp::define_interface!( + IFabricPropertyManagementClient, + IFabricPropertyManagementClient_Vtbl, + 0x26e58816_b5d5_4f08_9770_dbf0410c99d6 +); +windows_core::imp::interface_hierarchy!(IFabricPropertyManagementClient, windows_core::IUnknown); +impl IFabricPropertyManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateName( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateName)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetApplicationNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetApplicationNetworkList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateName(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateName)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } - unsafe extern "system" fn BeginGetDeployedNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteName( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteName)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetDeployedNetworkList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteName(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteName)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginNameExists( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginNameExists)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndNameExists(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndNameExists)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginEnumerateSubNames( + &self, + name: super::FabricTypes::FABRIC_URI, + previousresult: P1, + recursive: bool, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result + where + P1: windows_core::Param, + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginEnumerateSubNames)( + windows_core::Interface::as_raw(self), + name, + previousresult.param().abi(), + recursive, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkCodePackageList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndEnumerateSubNames( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndEnumerateSubNames)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn EndGetDeployedNetworkCodePackageList< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNetworkManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkCodePackageList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutPropertyBinary( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + data: &[u8], + timeoutmilliseconds: u32, + callback: P5, + ) -> windows_core::Result + where + P1: windows_core::Param, + P5: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutPropertyBinary)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + data.len().try_into().unwrap(), + core::mem::transmute(data.as_ptr()), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginCreateNetwork: BeginCreateNetwork::, - EndCreateNetwork: EndCreateNetwork::, - BeginDeleteNetwork: BeginDeleteNetwork::, - EndDeleteNetwork: EndDeleteNetwork::, - BeginGetNetworkList: BeginGetNetworkList::, - EndGetNetworkList: EndGetNetworkList::, - BeginGetNetworkApplicationList: BeginGetNetworkApplicationList::, - EndGetNetworkApplicationList: EndGetNetworkApplicationList::, - BeginGetNetworkNodeList: BeginGetNetworkNodeList::, - EndGetNetworkNodeList: EndGetNetworkNodeList::, - BeginGetApplicationNetworkList: BeginGetApplicationNetworkList::, - EndGetApplicationNetworkList: EndGetApplicationNetworkList::, - BeginGetDeployedNetworkList: BeginGetDeployedNetworkList::, - EndGetDeployedNetworkList: EndGetDeployedNetworkList::, - BeginGetDeployedNetworkCodePackageList: BeginGetDeployedNetworkCodePackageList::< - Identity, - OFFSET, - >, - EndGetDeployedNetworkCodePackageList: EndGetDeployedNetworkCodePackageList::< - Identity, - OFFSET, - >, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutPropertyBinary(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndPutPropertyBinary)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutPropertyInt64( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + data: i64, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result + where + P1: windows_core::Param, + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutPropertyInt64)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + data, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricNodeHealthResult_Impl: Sized { - fn get_NodeHealth(&self) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH; -} -impl windows_core::RuntimeName for IFabricNodeHealthResult {} -impl IFabricNodeHealthResult_Vtbl { - pub const fn new( - ) -> IFabricNodeHealthResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutPropertyInt64(&self, context: P0) -> windows_core::Result<()> where - Identity: IFabricNodeHealthResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_NodeHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_HEALTH - where - Identity: IFabricNodeHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNodeHealthResult_Impl::get_NodeHealth(this) + unsafe { + (windows_core::Interface::vtable(self).EndPutPropertyInt64)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_NodeHealth: get_NodeHealth::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutPropertyDouble( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + data: f64, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result + where + P1: windows_core::Param, + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutPropertyDouble)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + data, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutPropertyDouble(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndPutPropertyDouble)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -pub trait IFabricNodeTransitionProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS; -} -impl windows_core::RuntimeName for IFabricNodeTransitionProgressResult {} -impl IFabricNodeTransitionProgressResult_Vtbl { - pub const fn new( - ) -> IFabricNodeTransitionProgressResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutPropertyWString( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + data: P2, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result where - Identity: IFabricNodeTransitionProgressResult_Impl, + P1: windows_core::Param, + P2: windows_core::Param, + P4: windows_core::Param, { - unsafe extern "system" fn get_Progress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS - where - Identity: IFabricNodeTransitionProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNodeTransitionProgressResult_Impl::get_Progress(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutPropertyWString)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + data.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutPropertyWString(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndPutPropertyWString)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutPropertyGuid( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + data: *const windows_core::GUID, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result + where + P1: windows_core::Param, + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutPropertyGuid)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + data, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricOrchestrationUpgradeStatusResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS; -} -impl windows_core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} -impl IFabricOrchestrationUpgradeStatusResult_Vtbl { - pub const fn new( - ) -> IFabricOrchestrationUpgradeStatusResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutPropertyGuid(&self, context: P0) -> windows_core::Result<()> where - Identity: IFabricOrchestrationUpgradeStatusResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Progress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS - where - Identity: IFabricOrchestrationUpgradeStatusResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricOrchestrationUpgradeStatusResult_Impl::get_Progress(this) + unsafe { + (windows_core::Interface::vtable(self).EndPutPropertyGuid)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteProperty( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteProperty)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteProperty(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteProperty)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -pub trait IFabricPartitionDataLossProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS; -} -impl windows_core::RuntimeName for IFabricPartitionDataLossProgressResult {} -impl IFabricPartitionDataLossProgressResult_Vtbl { - pub const fn new( - ) -> IFabricPartitionDataLossProgressResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetPropertyMetadata( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPropertyMetadata)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPropertyMetadata( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricPartitionDataLossProgressResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Progress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS - where - Identity: IFabricPartitionDataLossProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPartitionDataLossProgressResult_Impl::get_Progress(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPropertyMetadata)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetProperty( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyname: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetProperty)( + windows_core::Interface::as_raw(self), + name, + propertyname.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionHealthResult_Impl: Sized { - fn get_PartitionHealth(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH; -} -impl windows_core::RuntimeName for IFabricPartitionHealthResult {} -impl IFabricPartitionHealthResult_Vtbl { - pub const fn new( - ) -> IFabricPartitionHealthResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetProperty( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricPartitionHealthResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_PartitionHealth< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_HEALTH - where - Identity: IFabricPartitionHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPartitionHealthResult_Impl::get_PartitionHealth(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_PartitionHealth: get_PartitionHealth::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetProperty)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionQuorumLossProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS; -} -impl windows_core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} -impl IFabricPartitionQuorumLossProgressResult_Vtbl { - pub const fn new( - ) -> IFabricPartitionQuorumLossProgressResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginSubmitPropertyBatch( + &self, + name: super::FabricTypes::FABRIC_URI, + operations: &[super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION], + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result where - Identity: IFabricPartitionQuorumLossProgressResult_Impl, + P4: windows_core::Param, { - unsafe extern "system" fn get_Progress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS - where - Identity: IFabricPartitionQuorumLossProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPartitionQuorumLossProgressResult_Impl::get_Progress(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginSubmitPropertyBatch)( + windows_core::Interface::as_raw(self), + name, + operations.len().try_into().unwrap(), + core::mem::transmute(operations.as_ptr()), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionRestartProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS; -} -impl windows_core::RuntimeName for IFabricPartitionRestartProgressResult {} -impl IFabricPartitionRestartProgressResult_Vtbl { - pub const fn new( - ) -> IFabricPartitionRestartProgressResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndSubmitPropertyBatch( + &self, + context: P0, + failedoperationindexinrequest: *mut u32, + ) -> windows_core::Result where - Identity: IFabricPartitionRestartProgressResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Progress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS - where - Identity: IFabricPartitionRestartProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPartitionRestartProgressResult_Impl::get_Progress(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndSubmitPropertyBatch)( + windows_core::Interface::as_raw(self), + context.param().abi(), + failedoperationindexinrequest as _, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyBatchResult_Impl: Sized { - fn GetProperty( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginEnumerateProperties( &self, - operationindexinrequest: u32, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricPropertyBatchResult {} -impl IFabricPropertyBatchResult_Vtbl { - pub const fn new( - ) -> IFabricPropertyBatchResult_Vtbl + name: super::FabricTypes::FABRIC_URI, + includevalues: bool, + previousresult: P2, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result where - Identity: IFabricPropertyBatchResult_Impl, + P2: windows_core::Param, + P4: windows_core::Param, { - unsafe extern "system" fn GetProperty< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - operationindexinrequest: u32, - property: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyBatchResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyBatchResult_Impl::GetProperty( - this, - core::mem::transmute_copy(&operationindexinrequest), - ) { - Ok(ok__) => { - property.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - GetProperty: GetProperty::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginEnumerateProperties)( + windows_core::Interface::as_raw(self), + name, + includevalues, + previousresult.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyEnumerationResult_Impl: Sized { - fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS; - fn get_PropertyCount(&self) -> u32; - fn GetProperty(&self, index: u32) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricPropertyEnumerationResult {} -impl IFabricPropertyEnumerationResult_Vtbl { - pub const fn new( - ) -> IFabricPropertyEnumerationResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndEnumerateProperties( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricPropertyEnumerationResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_EnumerationStatus< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS - where - Identity: IFabricPropertyEnumerationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyEnumerationResult_Impl::get_EnumerationStatus(this) - } - unsafe extern "system" fn get_PropertyCount< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> u32 - where - Identity: IFabricPropertyEnumerationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyEnumerationResult_Impl::get_PropertyCount(this) - } - unsafe extern "system" fn GetProperty< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - index: u32, - property: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyEnumerationResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyEnumerationResult_Impl::GetProperty( - this, - core::mem::transmute_copy(&index), - ) { - Ok(ok__) => { - property.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_EnumerationStatus: get_EnumerationStatus::, - get_PropertyCount: get_PropertyCount::, - GetProperty: GetProperty::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndEnumerateProperties)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } } -pub trait IFabricPropertyManagementClient_Impl: Sized { +#[repr(C)] +pub struct IFabricPropertyManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateName: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateName: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateName: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteName: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteName: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteName: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginNameExists: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginNameExists: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndNameExists: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u8, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndNameExists: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginEnumerateSubNames: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *mut core::ffi::c_void, + bool, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginEnumerateSubNames: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndEnumerateSubNames: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndEnumerateSubNames: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutPropertyBinary: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *const u8, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutPropertyBinary: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutPropertyBinary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutPropertyBinary: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutPropertyInt64: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + i64, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutPropertyInt64: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutPropertyInt64: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutPropertyInt64: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutPropertyDouble: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + f64, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutPropertyDouble: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutPropertyDouble: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutPropertyDouble: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutPropertyWString: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutPropertyWString: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutPropertyWString: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutPropertyWString: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutPropertyGuid: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + *const windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutPropertyGuid: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutPropertyGuid: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutPropertyGuid: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteProperty: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteProperty: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetPropertyMetadata: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetPropertyMetadata: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPropertyMetadata: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPropertyMetadata: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetProperty: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetProperty: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetProperty: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginSubmitPropertyBatch: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginSubmitPropertyBatch: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndSubmitPropertyBatch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u32, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndSubmitPropertyBatch: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginEnumerateProperties: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + bool, + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginEnumerateProperties: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndEnumerateProperties: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndEnumerateProperties: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricPropertyManagementClient_Impl: windows_core::IUnknownImpl { fn BeginCreateName( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginDeleteName( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginNameExists( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndNameExists( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginEnumerateSubNames( &self, name: super::FabricTypes::FABRIC_URI, - previousresult: Option<&IFabricNameEnumerationResult>, - recursive: windows::Win32::Foundation::BOOLEAN, + previousresult: windows_core::Ref<'_, IFabricNameEnumerationResult>, + recursive: bool, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndEnumerateSubNames( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginPutPropertyBinary( &self, @@ -20901,11 +18210,11 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { datalength: u32, data: *const u8, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPutPropertyBinary( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginPutPropertyInt64( &self, @@ -20913,11 +18222,11 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { propertyname: &windows_core::PCWSTR, data: i64, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPutPropertyInt64( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginPutPropertyDouble( &self, @@ -20925,11 +18234,11 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { propertyname: &windows_core::PCWSTR, data: f64, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPutPropertyDouble( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginPutPropertyWString( &self, @@ -20937,11 +18246,11 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { propertyname: &windows_core::PCWSTR, data: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPutPropertyWString( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginPutPropertyGuid( &self, @@ -20949,44 +18258,44 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { propertyname: &windows_core::PCWSTR, data: *const windows_core::GUID, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPutPropertyGuid( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginDeleteProperty( &self, name: super::FabricTypes::FABRIC_URI, propertyname: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteProperty( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetPropertyMetadata( &self, name: super::FabricTypes::FABRIC_URI, propertyname: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPropertyMetadata( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetProperty( &self, name: super::FabricTypes::FABRIC_URI, propertyname: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetProperty( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginSubmitPropertyBatch( &self, @@ -20994,35 +18303,35 @@ pub trait IFabricPropertyManagementClient_Impl: Sized { operationcount: u32, operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndSubmitPropertyBatch( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, failedoperationindexinrequest: *mut u32, ) -> windows_core::Result; fn BeginEnumerateProperties( &self, name: super::FabricTypes::FABRIC_URI, - includevalues: windows::Win32::Foundation::BOOLEAN, - previousresult: Option<&IFabricPropertyEnumerationResult>, + includevalues: bool, + previousresult: windows_core::Ref<'_, IFabricPropertyEnumerationResult>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndEnumerateProperties( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricPropertyManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricPropertyManagementClient_Vtbl { - pub const fn new( - ) -> IFabricPropertyManagementClient_Vtbl - where - Identity: IFabricPropertyManagementClient_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginCreateName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21030,43 +18339,43 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginCreateName( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginCreateName( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCreateName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndCreateName( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndCreateName( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginDeleteName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21074,43 +18383,43 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginDeleteName( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginDeleteName( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndDeleteName( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndDeleteName( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginNameExists< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21118,103 +18427,103 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginNameExists( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginNameExists( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndNameExists< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, value: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndNameExists( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - value.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndNameExists( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + value.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginEnumerateSubNames< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: super::FabricTypes::FABRIC_URI, previousresult: *mut core::ffi::c_void, - recursive: windows::Win32::Foundation::BOOLEAN, + recursive: bool, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginEnumerateSubNames( - this, - core::mem::transmute_copy(&name), - windows_core::from_raw_borrowed(&previousresult), - core::mem::transmute_copy(&recursive), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginEnumerateSubNames( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&previousresult), + core::mem::transmute_copy(&recursive), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndEnumerateSubNames< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndEnumerateSubNames( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndEnumerateSubNames( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginPutPropertyBinary< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21225,46 +18534,46 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginPutPropertyBinary( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&datalength), - core::mem::transmute_copy(&data), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginPutPropertyBinary( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&datalength), + core::mem::transmute_copy(&data), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndPutPropertyBinary< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndPutPropertyBinary( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndPutPropertyBinary( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginPutPropertyInt64< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21274,45 +18583,45 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginPutPropertyInt64( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&data), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginPutPropertyInt64( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&data), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndPutPropertyInt64< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndPutPropertyInt64( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndPutPropertyInt64( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginPutPropertyDouble< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21322,45 +18631,45 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginPutPropertyDouble( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&data), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginPutPropertyDouble( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&data), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndPutPropertyDouble< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndPutPropertyDouble( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndPutPropertyDouble( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginPutPropertyWString< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21370,45 +18679,45 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginPutPropertyWString( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute(&data), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginPutPropertyWString( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute(&data), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndPutPropertyWString< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndPutPropertyWString( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndPutPropertyWString( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginPutPropertyGuid< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -21418,720 +18727,1786 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginPutPropertyGuid( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&data), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginPutPropertyGuid( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&data), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndPutPropertyGuid< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndPutPropertyGuid( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginDeleteProperty< Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndPutPropertyGuid( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + name: super::FabricTypes::FABRIC_URI, + propertyname: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginDeleteProperty( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndDeleteProperty< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient_Impl::EndDeleteProperty( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginGetPropertyMetadata< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + name: super::FabricTypes::FABRIC_URI, + propertyname: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginGetPropertyMetadata( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetPropertyMetadata< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndGetPropertyMetadata( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginGetProperty< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + name: super::FabricTypes::FABRIC_URI, + propertyname: windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginGetProperty( + this, + core::mem::transmute_copy(&name), + core::mem::transmute(&propertyname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetProperty< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndGetProperty( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginSubmitPropertyBatch< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + name: super::FabricTypes::FABRIC_URI, + operationcount: u32, + operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginSubmitPropertyBatch( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&operationcount), + core::mem::transmute_copy(&operations), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndSubmitPropertyBatch< + Identity: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + failedoperationindexinrequest: *mut u32, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndSubmitPropertyBatch( + this, + core::mem::transmute_copy(&context), + core::mem::transmute_copy(&failedoperationindexinrequest), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn BeginDeleteProperty< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginEnumerateProperties< + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: super::FabricTypes::FABRIC_URI, - propertyname: windows_core::PCWSTR, + includevalues: bool, + previousresult: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginDeleteProperty( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::BeginEnumerateProperties( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&includevalues), + core::mem::transmute_copy(&previousresult), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndDeleteProperty< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndEnumerateProperties< + Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient_Impl::EndDeleteProperty( - this, - windows_core::from_raw_borrowed(&context), + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient_Impl::EndEnumerateProperties( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginCreateName: BeginCreateName::, + EndCreateName: EndCreateName::, + BeginDeleteName: BeginDeleteName::, + EndDeleteName: EndDeleteName::, + BeginNameExists: BeginNameExists::, + EndNameExists: EndNameExists::, + BeginEnumerateSubNames: BeginEnumerateSubNames::, + EndEnumerateSubNames: EndEnumerateSubNames::, + BeginPutPropertyBinary: BeginPutPropertyBinary::, + EndPutPropertyBinary: EndPutPropertyBinary::, + BeginPutPropertyInt64: BeginPutPropertyInt64::, + EndPutPropertyInt64: EndPutPropertyInt64::, + BeginPutPropertyDouble: BeginPutPropertyDouble::, + EndPutPropertyDouble: EndPutPropertyDouble::, + BeginPutPropertyWString: BeginPutPropertyWString::, + EndPutPropertyWString: EndPutPropertyWString::, + BeginPutPropertyGuid: BeginPutPropertyGuid::, + EndPutPropertyGuid: EndPutPropertyGuid::, + BeginDeleteProperty: BeginDeleteProperty::, + EndDeleteProperty: EndDeleteProperty::, + BeginGetPropertyMetadata: BeginGetPropertyMetadata::, + EndGetPropertyMetadata: EndGetPropertyMetadata::, + BeginGetProperty: BeginGetProperty::, + EndGetProperty: EndGetProperty::, + BeginSubmitPropertyBatch: BeginSubmitPropertyBatch::, + EndSubmitPropertyBatch: EndSubmitPropertyBatch::, + BeginEnumerateProperties: BeginEnumerateProperties::, + EndEnumerateProperties: EndEnumerateProperties::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricPropertyManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricPropertyManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricPropertyManagementClient {} +windows_core::imp::define_interface!( + IFabricPropertyManagementClient2, + IFabricPropertyManagementClient2_Vtbl, + 0x04991c28_3f9d_4a49_9322_a56d308965fd +); +impl core::ops::Deref for IFabricPropertyManagementClient2 { + type Target = IFabricPropertyManagementClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricPropertyManagementClient2, + windows_core::IUnknown, + IFabricPropertyManagementClient +); +impl IFabricPropertyManagementClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPutCustomPropertyOperation( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPutCustomPropertyOperation)( + windows_core::Interface::as_raw(self), + name, + propertyoperation, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, ) - .into() + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn BeginGetPropertyMetadata< - Identity: windows_core::IUnknownImpl, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPutCustomPropertyOperation(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndPutCustomPropertyOperation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricPropertyManagementClient2_Vtbl { + pub base__: IFabricPropertyManagementClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPutCustomPropertyOperation: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPutCustomPropertyOperation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPutCustomPropertyOperation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPutCustomPropertyOperation: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricPropertyManagementClient2_Impl: IFabricPropertyManagementClient_Impl { + fn BeginPutCustomPropertyOperation( + &self, + name: super::FabricTypes::FABRIC_URI, + propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndPutCustomPropertyOperation( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricPropertyManagementClient2_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginPutCustomPropertyOperation< + Identity: IFabricPropertyManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: super::FabricTypes::FABRIC_URI, - propertyname: windows_core::PCWSTR, + propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginGetPropertyMetadata( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyManagementClient2_Impl::BeginPutCustomPropertyOperation( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&propertyoperation), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndGetPropertyMetadata< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndPutCustomPropertyOperation< + Identity: IFabricPropertyManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndGetPropertyMetadata( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyManagementClient2_Impl::EndPutCustomPropertyOperation( + this, + core::mem::transmute_copy(&context), + ) + .into() } } - unsafe extern "system" fn BeginGetProperty< - Identity: windows_core::IUnknownImpl, + Self { + base__: IFabricPropertyManagementClient_Vtbl::new::(), + BeginPutCustomPropertyOperation: BeginPutCustomPropertyOperation::, + EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricPropertyManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricPropertyManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricPropertyManagementClient2 {} +windows_core::imp::define_interface!( + IFabricPropertyMetadataResult, + IFabricPropertyMetadataResult_Vtbl, + 0x33302306_fb8d_4831_b493_57efcc772462 +); +windows_core::imp::interface_hierarchy!(IFabricPropertyMetadataResult, windows_core::IUnknown); +impl IFabricPropertyMetadataResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA { + unsafe { + (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricPropertyMetadataResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Metadata: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Metadata: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPropertyMetadataResult_Impl: windows_core::IUnknownImpl { + fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPropertyMetadataResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Metadata< + Identity: IFabricPropertyMetadataResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyMetadataResult_Impl::get_Metadata(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Metadata: get_Metadata::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPropertyMetadataResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPropertyMetadataResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPropertyMetadataResult {} +windows_core::imp::define_interface!( + IFabricPropertyValueResult, + IFabricPropertyValueResult_Vtbl, + 0x9a518b49_9903_4b8f_834e_1979e9c6745e +); +windows_core::imp::interface_hierarchy!(IFabricPropertyValueResult, windows_core::IUnknown); +impl IFabricPropertyValueResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Property(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY { + unsafe { + (windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw( + self, + )) + } + } + pub unsafe fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValueAsBinary)( + windows_core::Interface::as_raw(self), + bytecount as _, + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetValueAsInt64(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValueAsInt64)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetValueAsDouble(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValueAsDouble)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetValueAsWString(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValueAsWString)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetValueAsGuid(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValueAsGuid)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricPropertyValueResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Property: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Property: usize, + pub GetValueAsBinary: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut u8, + ) -> windows_core::HRESULT, + pub GetValueAsInt64: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + pub GetValueAsDouble: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + pub GetValueAsWString: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut windows_core::PCWSTR, + ) -> windows_core::HRESULT, + pub GetValueAsGuid: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut windows_core::GUID, + ) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricPropertyValueResult_Impl: windows_core::IUnknownImpl { + fn get_Property(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY; + fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8>; + fn GetValueAsInt64(&self) -> windows_core::Result; + fn GetValueAsDouble(&self) -> windows_core::Result; + fn GetValueAsWString(&self) -> windows_core::Result; + fn GetValueAsGuid(&self) -> windows_core::Result; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricPropertyValueResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Property< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - name: super::FabricTypes::FABRIC_URI, - propertyname: windows_core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginGetProperty( - this, - core::mem::transmute_copy(&name), - core::mem::transmute(&propertyname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPropertyValueResult_Impl::get_Property(this) } } - unsafe extern "system" fn EndGetProperty< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValueAsBinary< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndGetProperty( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + bytecount: *mut u32, + bufferedvalue: *mut *mut u8, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyValueResult_Impl::GetValueAsBinary( + this, + core::mem::transmute_copy(&bytecount), + ) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginSubmitPropertyBatch< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValueAsInt64< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - name: super::FabricTypes::FABRIC_URI, - operationcount: u32, - operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginSubmitPropertyBatch( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&operationcount), - core::mem::transmute_copy(&operations), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + value: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyValueResult_Impl::GetValueAsInt64(this) { + Ok(ok__) => { + value.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } - unsafe extern "system" fn EndSubmitPropertyBatch< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValueAsDouble< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - failedoperationindexinrequest: *mut u32, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndSubmitPropertyBatch( - this, - windows_core::from_raw_borrowed(&context), - core::mem::transmute_copy(&failedoperationindexinrequest), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + value: *mut f64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyValueResult_Impl::GetValueAsDouble(this) { + Ok(ok__) => { + value.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn BeginEnumerateProperties< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValueAsWString< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - name: super::FabricTypes::FABRIC_URI, - includevalues: windows::Win32::Foundation::BOOLEAN, - previousresult: *mut core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::BeginEnumerateProperties( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&includevalues), - windows_core::from_raw_borrowed(&previousresult), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + bufferedvalue: *mut windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyValueResult_Impl::GetValueAsWString(this) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } - unsafe extern "system" fn EndEnumerateProperties< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValueAsGuid< + Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient_Impl::EndEnumerateProperties( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + value: *mut windows_core::GUID, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPropertyValueResult_Impl::GetValueAsGuid(this) { + Ok(ok__) => { + value.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - BeginCreateName: BeginCreateName::, - EndCreateName: EndCreateName::, - BeginDeleteName: BeginDeleteName::, - EndDeleteName: EndDeleteName::, - BeginNameExists: BeginNameExists::, - EndNameExists: EndNameExists::, - BeginEnumerateSubNames: BeginEnumerateSubNames::, - EndEnumerateSubNames: EndEnumerateSubNames::, - BeginPutPropertyBinary: BeginPutPropertyBinary::, - EndPutPropertyBinary: EndPutPropertyBinary::, - BeginPutPropertyInt64: BeginPutPropertyInt64::, - EndPutPropertyInt64: EndPutPropertyInt64::, - BeginPutPropertyDouble: BeginPutPropertyDouble::, - EndPutPropertyDouble: EndPutPropertyDouble::, - BeginPutPropertyWString: BeginPutPropertyWString::, - EndPutPropertyWString: EndPutPropertyWString::, - BeginPutPropertyGuid: BeginPutPropertyGuid::, - EndPutPropertyGuid: EndPutPropertyGuid::, - BeginDeleteProperty: BeginDeleteProperty::, - EndDeleteProperty: EndDeleteProperty::, - BeginGetPropertyMetadata: BeginGetPropertyMetadata::, - EndGetPropertyMetadata: EndGetPropertyMetadata::, - BeginGetProperty: BeginGetProperty::, - EndGetProperty: EndGetProperty::, - BeginSubmitPropertyBatch: BeginSubmitPropertyBatch::, - EndSubmitPropertyBatch: EndSubmitPropertyBatch::, - BeginEnumerateProperties: BeginEnumerateProperties::, - EndEnumerateProperties: EndEnumerateProperties::, + get_Property: get_Property::, + GetValueAsBinary: GetValueAsBinary::, + GetValueAsInt64: GetValueAsInt64::, + GetValueAsDouble: GetValueAsDouble::, + GetValueAsWString: GetValueAsWString::, + GetValueAsGuid: GetValueAsGuid::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricPropertyValueResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricPropertyValueResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricPropertyValueResult {} +windows_core::imp::define_interface!( + IFabricQueryClient, + IFabricQueryClient_Vtbl, + 0xc629e422_90ba_4efd_8f64_cecf51bc3df0 +); +windows_core::imp::interface_hierarchy!(IFabricQueryClient, windows_core::IUnknown); +impl IFabricQueryClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNodeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationTypeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationTypeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceTypeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceTypeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetPartitionList( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetReplicaList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetReplicaList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyManagementClient2_Impl: - Sized + IFabricPropertyManagementClient_Impl -{ - fn BeginPutCustomPropertyOperation( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedApplicationList( &self, - name: super::FabricTypes::FABRIC_URI, - propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndPutCustomPropertyOperation( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricPropertyManagementClient2 {} -impl IFabricPropertyManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricPropertyManagementClient2_Vtbl + callback: P2, + ) -> windows_core::Result where - Identity: IFabricPropertyManagementClient2_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn BeginPutCustomPropertyOperation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - name: super::FabricTypes::FABRIC_URI, - propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyManagementClient2_Impl::BeginPutCustomPropertyOperation( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&propertyoperation), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutCustomPropertyOperation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyManagementClient2_Impl::EndPutCustomPropertyOperation( - this, - windows_core::from_raw_borrowed(&context), + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedApplicationList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, ) - .into() + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: IFabricPropertyManagementClient_Vtbl::new::(), - BeginPutCustomPropertyOperation: BeginPutCustomPropertyOperation::, - EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID } -} -pub trait IFabricPropertyMetadataResult_Impl: Sized { - fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA; -} -impl windows_core::RuntimeName for IFabricPropertyMetadataResult {} -impl IFabricPropertyMetadataResult_Vtbl { - pub const fn new( - ) -> IFabricPropertyMetadataResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> windows_core::Result where - Identity: IFabricPropertyMetadataResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Metadata< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA - where - Identity: IFabricPropertyMetadataResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyMetadataResult_Impl::get_Metadata(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Metadata: get_Metadata::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedApplicationList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyValueResult_Impl: Sized { - fn get_Property(&self) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY; - fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8>; - fn GetValueAsInt64(&self) -> windows_core::Result; - fn GetValueAsDouble(&self) -> windows_core::Result; - fn GetValueAsWString(&self) -> windows_core::Result; - fn GetValueAsGuid(&self) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricPropertyValueResult {} -impl IFabricPropertyValueResult_Vtbl { - pub const fn new( - ) -> IFabricPropertyValueResult_Vtbl + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result where - Identity: IFabricPropertyValueResult_Impl, + P2: windows_core::Param, { - unsafe extern "system" fn get_Property< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NAMED_PROPERTY - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPropertyValueResult_Impl::get_Property(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedServicePackageList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValueAsBinary< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - bytecount: *mut u32, - bufferedvalue: *mut *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyValueResult_Impl::GetValueAsBinary( - this, - core::mem::transmute_copy(&bytecount), - ) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedServicePackageList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValueAsInt64< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - value: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyValueResult_Impl::GetValueAsInt64(this) { - Ok(ok__) => { - value.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedServiceTypeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValueAsDouble< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - value: *mut f64, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyValueResult_Impl::GetValueAsDouble(this) { - Ok(ok__) => { - value.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedServiceTypeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValueAsWString< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - bufferedvalue: *mut windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyValueResult_Impl::GetValueAsWString(this) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedCodePackageList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValueAsGuid< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - value: *mut windows_core::GUID, - ) -> windows_core::HRESULT - where - Identity: IFabricPropertyValueResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPropertyValueResult_Impl::GetValueAsGuid(this) { - Ok(ok__) => { - value.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedCodePackageList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Property: get_Property::, - GetValueAsBinary: GetValueAsBinary::, - GetValueAsInt64: GetValueAsInt64::, - GetValueAsDouble: GetValueAsDouble::, - GetValueAsWString: GetValueAsWString::, - GetValueAsGuid: GetValueAsGuid::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedReplicaList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedReplicaList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricQueryClient_Impl: Sized { +#[repr(C)] +pub struct IFabricQueryClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNodeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNodeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationTypeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationTypeList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceTypeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceTypeList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetPartitionList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetPartitionList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetReplicaList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetReplicaList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetReplicaList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetReplicaList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedApplicationList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedApplicationList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedApplicationList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedServicePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedServicePackageList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedServicePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedServicePackageList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedServiceTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedServiceTypeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedServiceTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedServiceTypeList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedCodePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedCodePackageList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedCodePackageList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedCodePackageList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedReplicaList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedReplicaList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedReplicaList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedReplicaList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient_Impl: windows_core::IUnknownImpl { fn BeginGetNodeList( &self, querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetNodeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetApplicationTypeList( &self, querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetApplicationTypeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetServiceTypeList( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceTypeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetApplicationList( &self, querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetApplicationList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetServiceList( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetPartitionList( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPartitionList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetReplicaList( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetReplicaList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetDeployedApplicationList( &self, querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedApplicationList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetDeployedServicePackageList( &self, querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedServicePackageList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedServiceTypeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedCodePackageList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetDeployedReplicaList( &self, querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedReplicaList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient_Vtbl { - pub const fn new( - ) -> IFabricQueryClient_Vtbl - where - Identity: IFabricQueryClient_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetNodeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22139,49 +20514,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetNodeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetNodeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetNodeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetNodeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22189,49 +20564,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetApplicationTypeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetApplicationTypeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetApplicationTypeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetApplicationTypeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22239,49 +20614,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetServiceTypeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetServiceTypeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetServiceTypeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetServiceTypeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22289,49 +20664,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetApplicationList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetApplicationList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetApplicationList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetApplicationList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22339,49 +20714,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetServiceList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetServiceList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetServiceList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetServiceList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22389,49 +20764,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetPartitionList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetPartitionList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetPartitionList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetPartitionList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22439,49 +20814,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetReplicaList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetReplicaList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetReplicaList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetReplicaList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedApplicationList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22489,49 +20864,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetDeployedApplicationList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetDeployedApplicationList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetDeployedApplicationList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetDeployedApplicationList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServicePackageList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22539,49 +20914,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetDeployedServicePackageList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetDeployedServicePackageList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServicePackageList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetDeployedServicePackageList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetDeployedServicePackageList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServiceTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22589,49 +20964,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetDeployedServiceTypeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetDeployedServiceTypeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServiceTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetDeployedServiceTypeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetDeployedServiceTypeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedCodePackageList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22639,49 +21014,49 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetDeployedCodePackageList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetDeployedCodePackageList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedCodePackageList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetDeployedCodePackageList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetDeployedCodePackageList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedReplicaList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22689,45 +21064,45 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::BeginGetDeployedReplicaList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::BeginGetDeployedReplicaList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedReplicaList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient_Impl::EndGetDeployedReplicaList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient_Impl::EndGetDeployedReplicaList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -22765,27 +21140,143 @@ impl IFabricQueryClient_Vtbl { iid == &::IID } } -pub trait IFabricQueryClient10_Impl: Sized + IFabricQueryClient9_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient {} +windows_core::imp::define_interface!( + IFabricQueryClient10, + IFabricQueryClient10_Vtbl, + 0x02139da8_7140_42ae_8403_79a551600e63 +); +impl core::ops::Deref for IFabricQueryClient10 { + type Target = IFabricQueryClient9; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient10, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7, + IFabricQueryClient8, + IFabricQueryClient9 +); +impl IFabricQueryClient10 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedApplicationPagedList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedApplicationPagedList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedApplicationPagedList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedApplicationPagedList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient10_Vtbl { + pub base__: IFabricQueryClient9_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedApplicationPagedList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedApplicationPagedList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedApplicationPagedList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedApplicationPagedList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient10_Impl: IFabricQueryClient9_Impl { fn BeginGetDeployedApplicationPagedList( &self, querydescription : *const super::FabricTypes:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedApplicationPagedList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient10_Vtbl { - pub const fn new( - ) -> IFabricQueryClient10_Vtbl - where - Identity: IFabricQueryClient10_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetDeployedApplicationPagedList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient10_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22793,45 +21284,45 @@ impl IFabricQueryClient10_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient10_Impl::BeginGetDeployedApplicationPagedList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient10_Impl::BeginGetDeployedApplicationPagedList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationPagedList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient10_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient10_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient10_Impl::EndGetDeployedApplicationPagedList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient10_Impl::EndGetDeployedApplicationPagedList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -22859,66 +21350,433 @@ impl IFabricQueryClient10_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient2_Impl: Sized + IFabricQueryClient_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient10 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient10 {} +windows_core::imp::define_interface!( + IFabricQueryClient2, + IFabricQueryClient2_Vtbl, + 0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af +); +impl core::ops::Deref for IFabricQueryClient2 { + type Target = IFabricQueryClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient2, + windows_core::IUnknown, + IFabricQueryClient +); +impl IFabricQueryClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetDeployedReplicaDetail)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetDeployedReplicaDetail)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetClusterLoadInformation)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetClusterLoadInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::FabricTypes:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionLoadInformation)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionLoadInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetProvisionedFabricCodeVersionList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetProvisionedFabricCodeVersionList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetProvisionedFabricConfigVersionList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetProvisionedFabricConfigVersionList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient2_Vtbl { + pub base__: IFabricQueryClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetDeployedReplicaDetail: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetDeployedReplicaDetail: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetDeployedReplicaDetail: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetDeployedReplicaDetail: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetClusterLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetClusterLoadInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetClusterLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetClusterLoadInformation: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetPartitionLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetPartitionLoadInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionLoadInformation: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetProvisionedFabricCodeVersionList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetProvisionedFabricCodeVersionList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetProvisionedFabricCodeVersionList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetProvisionedFabricCodeVersionList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetProvisionedFabricConfigVersionList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetProvisionedFabricConfigVersionList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetProvisionedFabricConfigVersionList: + unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetProvisionedFabricConfigVersionList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient2_Impl: IFabricQueryClient_Impl { fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::FabricTypes:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetDeployedReplicaDetail( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetClusterLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetPartitionLoadInformation( &self, querydescription : *const super::FabricTypes:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPartitionLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetProvisionedFabricCodeVersionList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription : *const super::FabricTypes:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetProvisionedFabricConfigVersionList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient2_Vtbl { - pub const fn new( - ) -> IFabricQueryClient2_Vtbl - where - Identity: IFabricQueryClient2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetDeployedReplicaDetail< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22926,97 +21784,97 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::BeginGetDeployedReplicaDetail( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::BeginGetDeployedReplicaDetail( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedReplicaDetail< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::EndGetDeployedReplicaDetail( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::EndGetDeployedReplicaDetail( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetClusterLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::BeginGetClusterLoadInformation( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::BeginGetClusterLoadInformation( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::EndGetClusterLoadInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::EndGetClusterLoadInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23024,49 +21882,49 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::BeginGetPartitionLoadInformation( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::BeginGetPartitionLoadInformation( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::EndGetPartitionLoadInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::EndGetPartitionLoadInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetProvisionedFabricCodeVersionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23074,49 +21932,49 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::BeginGetProvisionedFabricCodeVersionList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::BeginGetProvisionedFabricCodeVersionList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetProvisionedFabricCodeVersionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::EndGetProvisionedFabricCodeVersionList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::EndGetProvisionedFabricCodeVersionList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetProvisionedFabricConfigVersionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23124,45 +21982,45 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::BeginGetProvisionedFabricConfigVersionList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::BeginGetProvisionedFabricConfigVersionList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetProvisionedFabricConfigVersionList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient2_Impl::EndGetProvisionedFabricConfigVersionList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient2_Impl::EndGetProvisionedFabricConfigVersionList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23191,42 +22049,217 @@ impl IFabricQueryClient2_Vtbl { >, } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient2 {} +windows_core::imp::define_interface!( + IFabricQueryClient3, + IFabricQueryClient3_Vtbl, + 0x16f563f3_4017_496e_b0e7_2650de5774b3 +); +impl core::ops::Deref for IFabricQueryClient3 { + type Target = IFabricQueryClient2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient3, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2 +); +impl IFabricQueryClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription: *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNodeLoadInformation)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeLoadInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::FabricTypes:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetReplicaLoadInformation)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetReplicaLoadInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricQueryClient3_Impl: Sized + IFabricQueryClient2_Impl { +#[repr(C)] +pub struct IFabricQueryClient3_Vtbl { + pub base__: IFabricQueryClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetNodeLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetNodeLoadInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeLoadInformation: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetReplicaLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetReplicaLoadInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetReplicaLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetReplicaLoadInformation: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient3_Impl: IFabricQueryClient2_Impl { fn BeginGetNodeLoadInformation( &self, querydescription: *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetNodeLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetReplicaLoadInformation( &self, querydescription : *const super::FabricTypes:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetReplicaLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient3_Vtbl { - pub const fn new( - ) -> IFabricQueryClient3_Vtbl - where - Identity: IFabricQueryClient3_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetNodeLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23234,49 +22267,49 @@ impl IFabricQueryClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient3_Impl::BeginGetNodeLoadInformation( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient3_Impl::BeginGetNodeLoadInformation( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient3_Impl::EndGetNodeLoadInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient3_Impl::EndGetNodeLoadInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23284,45 +22317,45 @@ impl IFabricQueryClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient3_Impl::BeginGetReplicaLoadInformation( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient3_Impl::BeginGetReplicaLoadInformation( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient3_Impl::EndGetReplicaLoadInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient3_Impl::EndGetReplicaLoadInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23339,37 +22372,213 @@ impl IFabricQueryClient3_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient4_Impl: Sized + IFabricQueryClient3_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient3 {} +windows_core::imp::define_interface!( + IFabricQueryClient4, + IFabricQueryClient4_Vtbl, + 0xab92081d_0d78_410b_9777_0846dba24c10 +); +impl core::ops::Deref for IFabricQueryClient4 { + type Target = IFabricQueryClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient4, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3 +); +impl IFabricQueryClient4 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceGroupMemberList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceGroupMemberList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceGroupMemberTypeList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceGroupMemberTypeList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient4_Vtbl { + pub base__: IFabricQueryClient3_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceGroupMemberList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceGroupMemberList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceGroupMemberList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceGroupMemberList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceGroupMemberTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceGroupMemberTypeList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceGroupMemberTypeList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceGroupMemberTypeList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient4_Impl: IFabricQueryClient3_Impl { fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceGroupMemberList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetServiceGroupMemberTypeList( &self, querydescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceGroupMemberTypeList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient4_Vtbl { - pub const fn new( - ) -> IFabricQueryClient4_Vtbl - where - Identity: IFabricQueryClient4_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetServiceGroupMemberList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23377,49 +22586,49 @@ impl IFabricQueryClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupMemberList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient4_Impl::EndGetServiceGroupMemberList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient4_Impl::EndGetServiceGroupMemberList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceGroupMemberTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23427,45 +22636,45 @@ impl IFabricQueryClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberTypeList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberTypeList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupMemberTypeList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient4_Impl::EndGetServiceGroupMemberTypeList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient4_Impl::EndGetServiceGroupMemberTypeList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23486,27 +22695,137 @@ impl IFabricQueryClient4_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient5_Impl: Sized + IFabricQueryClient4_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient4 {} +windows_core::imp::define_interface!( + IFabricQueryClient5, + IFabricQueryClient5_Vtbl, + 0x75c35e8c_87a2_4810_a401_b50da858fe34 +); +impl core::ops::Deref for IFabricQueryClient5 { + type Target = IFabricQueryClient4; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient5, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4 +); +impl IFabricQueryClient5 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::FabricTypes:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetUnplacedReplicaInformation)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetUnplacedReplicaInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient5_Vtbl { + pub base__: IFabricQueryClient4_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetUnplacedReplicaInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetUnplacedReplicaInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetUnplacedReplicaInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetUnplacedReplicaInformation: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient5_Impl: IFabricQueryClient4_Impl { fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::FabricTypes:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetUnplacedReplicaInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient5_Vtbl { - pub const fn new( - ) -> IFabricQueryClient5_Vtbl - where - Identity: IFabricQueryClient5_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetUnplacedReplicaInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23514,45 +22833,45 @@ impl IFabricQueryClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient5_Impl::BeginGetUnplacedReplicaInformation( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient5_Impl::BeginGetUnplacedReplicaInformation( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetUnplacedReplicaInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient5_Impl::EndGetUnplacedReplicaInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient5_Impl::EndGetUnplacedReplicaInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23572,148 +22891,322 @@ impl IFabricQueryClient5_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient6_Impl: Sized + IFabricQueryClient5_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient5 {} +windows_core::imp::define_interface!( + IFabricQueryClient6, + IFabricQueryClient6_Vtbl, + 0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2 +); +impl core::ops::Deref for IFabricQueryClient6 { + type Target = IFabricQueryClient5; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient6, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5 +); +impl IFabricQueryClient6 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeList2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationList2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceList2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionList2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetReplicaList2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient6_Vtbl { + pub base__: IFabricQueryClient5_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeList2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeList2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationList2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationList2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceList2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceList2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionList2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionList2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetReplicaList2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetReplicaList2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient6_Impl: IFabricQueryClient5_Impl { fn EndGetNodeList2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn EndGetApplicationList2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn EndGetServiceList2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn EndGetPartitionList2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn EndGetReplicaList2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient6_Vtbl { - pub const fn new( - ) -> IFabricQueryClient6_Vtbl - where - Identity: IFabricQueryClient6_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn EndGetNodeList2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient6_Impl::EndGetNodeList2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient6_Impl::EndGetNodeList2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationList2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient6_Impl::EndGetApplicationList2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient6_Impl::EndGetApplicationList2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceList2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient6_Impl::EndGetServiceList2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient6_Impl::EndGetServiceList2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionList2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient6_Impl::EndGetPartitionList2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient6_Impl::EndGetPartitionList2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaList2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient6_Impl::EndGetReplicaList2( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient6_Impl::EndGetReplicaList2( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23734,27 +23227,139 @@ impl IFabricQueryClient6_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient7_Impl: Sized + IFabricQueryClient6_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient6 {} +windows_core::imp::define_interface!( + IFabricQueryClient7, + IFabricQueryClient7_Vtbl, + 0x538baa81_ba97_46da_95ac_e1cdd184cc74 +); +impl core::ops::Deref for IFabricQueryClient7 { + type Target = IFabricQueryClient6; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient7, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6 +); +impl IFabricQueryClient7 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationLoadInformation)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationLoadInformation( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationLoadInformation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient7_Vtbl { + pub base__: IFabricQueryClient6_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationLoadInformation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationLoadInformation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationLoadInformation: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient7_Impl: IFabricQueryClient6_Impl { fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::FabricTypes:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetApplicationLoadInformation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient7_Vtbl { - pub const fn new( - ) -> IFabricQueryClient7_Vtbl - where - Identity: IFabricQueryClient7_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetApplicationLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient7_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23762,45 +23367,45 @@ impl IFabricQueryClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient7_Impl::BeginGetApplicationLoadInformation( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient7_Impl::BeginGetApplicationLoadInformation( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationLoadInformation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient7_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient7_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient7_Impl::EndGetApplicationLoadInformation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient7_Impl::EndGetApplicationLoadInformation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23812,47 +23417,227 @@ impl IFabricQueryClient7_Vtbl { EndGetApplicationLoadInformation: EndGetApplicationLoadInformation::, } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient7 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient7 {} +windows_core::imp::define_interface!( + IFabricQueryClient8, + IFabricQueryClient8_Vtbl, + 0x2c850629_6a83_4fc3_8468_c868b87e9a17 +); +impl core::ops::Deref for IFabricQueryClient8 { + type Target = IFabricQueryClient7; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient8, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7 +); +impl IFabricQueryClient8 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceName( + &self, + querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceName)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceName( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceName)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationName( + &self, + querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationName)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationName( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationName)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricQueryClient8_Impl: Sized + IFabricQueryClient7_Impl { +#[repr(C)] +pub struct IFabricQueryClient8_Vtbl { + pub base__: IFabricQueryClient7_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceName: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceName: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationName: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationName: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationName: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient8_Impl: IFabricQueryClient7_Impl { fn BeginGetServiceName( &self, querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetApplicationName( &self, querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetApplicationName( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient8_Vtbl { - pub const fn new( - ) -> IFabricQueryClient8_Vtbl - where - Identity: IFabricQueryClient8_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetServiceName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23860,49 +23645,49 @@ impl IFabricQueryClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient8_Impl::BeginGetServiceName( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient8_Impl::BeginGetServiceName( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient8_Impl::EndGetServiceName( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient8_Impl::EndGetServiceName( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23910,45 +23695,45 @@ impl IFabricQueryClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient8_Impl::BeginGetApplicationName( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient8_Impl::BeginGetApplicationName( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationName< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient8_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient8_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient8_Impl::EndGetApplicationName( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient8_Impl::EndGetApplicationName( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -23970,27 +23755,141 @@ impl IFabricQueryClient8_Vtbl { || iid == &::IID } } -pub trait IFabricQueryClient9_Impl: Sized + IFabricQueryClient8_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient8 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient8 {} +windows_core::imp::define_interface!( + IFabricQueryClient9, + IFabricQueryClient9_Vtbl, + 0x76f0b4a5_4941_49d7_993c_ad7afc37c6af +); +impl core::ops::Deref for IFabricQueryClient9 { + type Target = IFabricQueryClient8; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricQueryClient9, + windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7, + IFabricQueryClient8 +); +impl IFabricQueryClient9 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetApplicationTypePagedList( + &self, + querydescription : *const super::FabricTypes:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetApplicationTypePagedList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetApplicationTypePagedList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetApplicationTypePagedList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricQueryClient9_Vtbl { + pub base__: IFabricQueryClient8_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetApplicationTypePagedList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetApplicationTypePagedList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetApplicationTypePagedList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetApplicationTypePagedList: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricQueryClient9_Impl: IFabricQueryClient8_Impl { fn BeginGetApplicationTypePagedList( &self, querydescription : *const super::FabricTypes:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetApplicationTypePagedList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricQueryClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricQueryClient9_Vtbl { - pub const fn new( - ) -> IFabricQueryClient9_Vtbl - where - Identity: IFabricQueryClient9_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetApplicationTypePagedList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23998,136 +23897,550 @@ impl IFabricQueryClient9_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient9_Impl::BeginGetApplicationTypePagedList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient9_Impl::BeginGetApplicationTypePagedList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationTypePagedList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricQueryClient9_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricQueryClient9_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricQueryClient9_Impl::EndGetApplicationTypePagedList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricQueryClient9_Impl::EndGetApplicationTypePagedList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - Self { - base__: IFabricQueryClient8_Vtbl::new::(), - BeginGetApplicationTypePagedList: BeginGetApplicationTypePagedList::, - EndGetApplicationTypePagedList: EndGetApplicationTypePagedList::, + Self { + base__: IFabricQueryClient8_Vtbl::new::(), + BeginGetApplicationTypePagedList: BeginGetApplicationTypePagedList::, + EndGetApplicationTypePagedList: EndGetApplicationTypePagedList::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricQueryClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricQueryClient9 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricQueryClient9 {} +windows_core::imp::define_interface!( + IFabricRepairManagementClient, + IFabricRepairManagementClient_Vtbl, + 0xee483ba5_9018_4c99_9804_be6185db88e6 +); +windows_core::imp::interface_hierarchy!(IFabricRepairManagementClient, windows_core::IUnknown); +impl IFabricRepairManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateRepairTask( + &self, + repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateRepairTask)( + windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateRepairTask(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndCreateRepairTask)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCancelRepairTask( + &self, + requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCancelRepairTask)( + windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCancelRepairTask(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndCancelRepairTask)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginForceApproveRepairTask( + &self, + requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginForceApproveRepairTask)( + windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndForceApproveRepairTask(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndForceApproveRepairTask)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteRepairTask( + &self, + requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteRepairTask)( + windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteRepairTask(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteRepairTask)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateRepairExecutionState( + &self, + repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateRepairExecutionState)( + windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateRepairExecutionState(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndUpdateRepairExecutionState)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetRepairTaskList( + &self, + querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetRepairTaskList)( + windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetRepairTaskList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetRepairTaskList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricRepairManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_TASK, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateRepairTask: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateRepairTask: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCancelRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCancelRepairTask: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCancelRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCancelRepairTask: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginForceApproveRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginForceApproveRepairTask: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndForceApproveRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndForceApproveRepairTask: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteRepairTask: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteRepairTask: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteRepairTask: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateRepairExecutionState: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_TASK, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateRepairExecutionState: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateRepairExecutionState: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateRepairExecutionState: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetRepairTaskList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetRepairTaskList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetRepairTaskList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetRepairTaskList: usize, } -pub trait IFabricRepairManagementClient_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricRepairManagementClient_Impl: windows_core::IUnknownImpl { fn BeginCreateRepairTask( &self, repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateRepairTask( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginCancelRepairTask( &self, requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCancelRepairTask( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginForceApproveRepairTask( &self, requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndForceApproveRepairTask( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginDeleteRepairTask( &self, requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteRepairTask( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginUpdateRepairExecutionState( &self, repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateRepairExecutionState( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetRepairTaskList( &self, querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetRepairTaskList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricRepairManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricRepairManagementClient_Vtbl { - pub const fn new( - ) -> IFabricRepairManagementClient_Vtbl - where - Identity: IFabricRepairManagementClient_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginCreateRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24135,49 +24448,49 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginCreateRepairTask( - this, - core::mem::transmute_copy(&repairtask), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginCreateRepairTask( + this, + core::mem::transmute_copy(&repairtask), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCreateRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitversion: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::EndCreateRepairTask( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::EndCreateRepairTask( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginCancelRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24185,49 +24498,49 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginCancelRepairTask( - this, - core::mem::transmute_copy(&requestdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginCancelRepairTask( + this, + core::mem::transmute_copy(&requestdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCancelRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitversion: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::EndCancelRepairTask( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::EndCancelRepairTask( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginForceApproveRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24235,49 +24548,49 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginForceApproveRepairTask( - this, - core::mem::transmute_copy(&requestdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginForceApproveRepairTask( + this, + core::mem::transmute_copy(&requestdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndForceApproveRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitversion: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::EndForceApproveRepairTask( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::EndForceApproveRepairTask( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginDeleteRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24285,43 +24598,43 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginDeleteRepairTask( - this, - core::mem::transmute_copy(&requestdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginDeleteRepairTask( + this, + core::mem::transmute_copy(&requestdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteRepairTask< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRepairManagementClient_Impl::EndDeleteRepairTask( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRepairManagementClient_Impl::EndDeleteRepairTask( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginUpdateRepairExecutionState< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24329,49 +24642,49 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginUpdateRepairExecutionState( - this, - core::mem::transmute_copy(&repairtask), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginUpdateRepairExecutionState( + this, + core::mem::transmute_copy(&repairtask), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateRepairExecutionState< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitversion: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::EndUpdateRepairExecutionState( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::EndUpdateRepairExecutionState( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetRepairTaskList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24379,45 +24692,45 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::BeginGetRepairTaskList( - this, - core::mem::transmute_copy(&querydescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::BeginGetRepairTaskList( + this, + core::mem::transmute_copy(&querydescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetRepairTaskList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient_Impl::EndGetRepairTaskList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient_Impl::EndGetRepairTaskList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -24440,27 +24753,134 @@ impl IFabricRepairManagementClient_Vtbl { iid == &::IID } } -pub trait IFabricRepairManagementClient2_Impl: Sized + IFabricRepairManagementClient_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricRepairManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricRepairManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricRepairManagementClient {} +windows_core::imp::define_interface!( + IFabricRepairManagementClient2, + IFabricRepairManagementClient2_Vtbl, + 0x5067d775_3baa_48e4_8c72_bb5573cc3fb8 +); +impl core::ops::Deref for IFabricRepairManagementClient2 { + type Target = IFabricRepairManagementClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricRepairManagementClient2, + windows_core::IUnknown, + IFabricRepairManagementClient +); +impl IFabricRepairManagementClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateRepairTaskHealthPolicy( + &self, + updatedescription : *const super::FabricTypes:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateRepairTaskHealthPolicy)( + windows_core::Interface::as_raw(self), + updatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateRepairTaskHealthPolicy( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndUpdateRepairTaskHealthPolicy)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricRepairManagementClient2_Vtbl { + pub base__: IFabricRepairManagementClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateRepairTaskHealthPolicy: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateRepairTaskHealthPolicy: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricRepairManagementClient2_Impl: IFabricRepairManagementClient_Impl { fn BeginUpdateRepairTaskHealthPolicy( &self, updatedescription : *const super::FabricTypes:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateRepairTaskHealthPolicy( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricRepairManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricRepairManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricRepairManagementClient2_Vtbl - where - Identity: IFabricRepairManagementClient2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginUpdateRepairTaskHealthPolicy< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24468,45 +24888,45 @@ impl IFabricRepairManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient2_Impl::BeginUpdateRepairTaskHealthPolicy( - this, - core::mem::transmute_copy(&updatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient2_Impl::BeginUpdateRepairTaskHealthPolicy( + this, + core::mem::transmute_copy(&updatedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateRepairTaskHealthPolicy< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRepairManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitversion: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricRepairManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRepairManagementClient2_Impl::EndUpdateRepairTaskHealthPolicy( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRepairManagementClient2_Impl::EndUpdateRepairTaskHealthPolicy( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -24520,27 +24940,66 @@ impl IFabricRepairManagementClient2_Vtbl { || iid == &::IID } } -pub trait IFabricReplicaHealthResult_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricRepairManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricRepairManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricRepairManagementClient2 {} +windows_core::imp::define_interface!( + IFabricReplicaHealthResult, + IFabricReplicaHealthResult_Vtbl, + 0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15 +); +windows_core::imp::interface_hierarchy!(IFabricReplicaHealthResult, windows_core::IUnknown); +impl IFabricReplicaHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicaHealth(&self) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicaHealth)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricReplicaHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ReplicaHealth: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ReplicaHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricReplicaHealthResult_Impl: windows_core::IUnknownImpl { fn get_ReplicaHealth(&self) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH; } -impl windows_core::RuntimeName for IFabricReplicaHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricReplicaHealthResult_Vtbl { - pub const fn new( - ) -> IFabricReplicaHealthResult_Vtbl - where - Identity: IFabricReplicaHealthResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_ReplicaHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicaHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH - where - Identity: IFabricReplicaHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicaHealthResult_Impl::get_ReplicaHealth(this) + ) -> *mut super::FabricTypes::FABRIC_REPLICA_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicaHealthResult_Impl::get_ReplicaHealth(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -24551,75 +25010,151 @@ impl IFabricReplicaHealthResult_Vtbl { iid == &::IID } } -pub trait IFabricResolvedServicePartitionResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricReplicaHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricReplicaHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricReplicaHealthResult {} +windows_core::imp::define_interface!( + IFabricResolvedServicePartitionResult, + IFabricResolvedServicePartitionResult_Vtbl, + 0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716 +); +windows_core::imp::interface_hierarchy!( + IFabricResolvedServicePartitionResult, + windows_core::IUnknown +); +impl IFabricResolvedServicePartitionResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Partition( + &self, + ) -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION { + unsafe { + (windows_core::Interface::vtable(self).get_Partition)(windows_core::Interface::as_raw( + self, + )) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetEndpoint( + &self, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetEndpoint)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn CompareVersion(&self, other: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CompareVersion)( + windows_core::Interface::as_raw(self), + other.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricResolvedServicePartitionResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Partition: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Partition: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetEndpoint: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetEndpoint: usize, + pub CompareVersion: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i32, + ) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricResolvedServicePartitionResult_Impl: windows_core::IUnknownImpl { fn get_Partition(&self) -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION; fn GetEndpoint( &self, ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT>; fn CompareVersion( &self, - other: Option<&IFabricResolvedServicePartitionResult>, + other: windows_core::Ref<'_, IFabricResolvedServicePartitionResult>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricResolvedServicePartitionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricResolvedServicePartitionResult_Vtbl { - pub const fn new( - ) -> IFabricResolvedServicePartitionResult_Vtbl - where - Identity: IFabricResolvedServicePartitionResult_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn get_Partition< - Identity: windows_core::IUnknownImpl, + Identity: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION - where - Identity: IFabricResolvedServicePartitionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricResolvedServicePartitionResult_Impl::get_Partition(this) + ) -> *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricResolvedServicePartitionResult_Impl::get_Partition(this) + } } unsafe extern "system" fn GetEndpoint< - Identity: windows_core::IUnknownImpl, + Identity: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, endpoint: *mut *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> windows_core::HRESULT - where - Identity: IFabricResolvedServicePartitionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricResolvedServicePartitionResult_Impl::GetEndpoint(this) { - Ok(ok__) => { - endpoint.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricResolvedServicePartitionResult_Impl::GetEndpoint(this) { + Ok(ok__) => { + endpoint.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn CompareVersion< - Identity: windows_core::IUnknownImpl, + Identity: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, compareresult: *mut i32, - ) -> windows_core::HRESULT - where - Identity: IFabricResolvedServicePartitionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricResolvedServicePartitionResult_Impl::CompareVersion( - this, - windows_core::from_raw_borrowed(&other), - ) { - Ok(ok__) => { - compareresult.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricResolvedServicePartitionResult_Impl::CompareVersion( + this, + core::mem::transmute_copy(&other), + ) { + Ok(ok__) => { + compareresult.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -24633,27 +25168,66 @@ impl IFabricResolvedServicePartitionResult_Vtbl { iid == &::IID } } -pub trait IFabricRestartDeployedCodePackageResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricResolvedServicePartitionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricResolvedServicePartitionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricResolvedServicePartitionResult {} +windows_core::imp::define_interface!( + IFabricRestartDeployedCodePackageResult, + IFabricRestartDeployedCodePackageResult_Vtbl, + 0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f +); +windows_core::imp::interface_hierarchy!( + IFabricRestartDeployedCodePackageResult, + windows_core::IUnknown +); +impl IFabricRestartDeployedCodePackageResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result( + &self, + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricRestartDeployedCodePackageResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricRestartDeployedCodePackageResult_Impl: windows_core::IUnknownImpl { fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT; } -impl windows_core::RuntimeName for IFabricRestartDeployedCodePackageResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricRestartDeployedCodePackageResult_Vtbl { - pub const fn new( - ) -> IFabricRestartDeployedCodePackageResult_Vtbl - where + pub const fn new< Identity: IFabricRestartDeployedCodePackageResult_Impl, - { + const OFFSET: isize, + >() -> Self { unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRestartDeployedCodePackageResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT - where - Identity: IFabricRestartDeployedCodePackageResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRestartDeployedCodePackageResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRestartDeployedCodePackageResult_Impl::get_Result(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -24664,27 +25238,56 @@ impl IFabricRestartDeployedCodePackageResult_Vtbl { iid == &::IID } } -pub trait IFabricRestartNodeResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricRestartDeployedCodePackageResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricRestartDeployedCodePackageResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricRestartDeployedCodePackageResult {} +windows_core::imp::define_interface!( + IFabricRestartNodeResult, + IFabricRestartNodeResult_Vtbl, + 0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9 +); +windows_core::imp::interface_hierarchy!(IFabricRestartNodeResult, windows_core::IUnknown); +impl IFabricRestartNodeResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricRestartNodeResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricRestartNodeResult_Impl: windows_core::IUnknownImpl { fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT; } -impl windows_core::RuntimeName for IFabricRestartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricRestartNodeResult_Vtbl { - pub const fn new( - ) -> IFabricRestartNodeResult_Vtbl - where - Identity: IFabricRestartNodeResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRestartNodeResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT - where - Identity: IFabricRestartNodeResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRestartNodeResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRestartNodeResult_Impl::get_Result(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -24695,27 +25298,59 @@ impl IFabricRestartNodeResult_Vtbl { iid == &::IID } } -pub trait IFabricSecretReferencesResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricRestartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricRestartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricRestartNodeResult {} +windows_core::imp::define_interface!( + IFabricSecretReferencesResult, + IFabricSecretReferencesResult_Vtbl, + 0xbb8f69de_f667_4fab_820d_274cf4303ab4 +); +windows_core::imp::interface_hierarchy!(IFabricSecretReferencesResult, windows_core::IUnknown); +impl IFabricSecretReferencesResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_SecretReferences( + &self, + ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_SecretReferences)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricSecretReferencesResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_SecretReferences: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_SecretReferences: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricSecretReferencesResult_Impl: windows_core::IUnknownImpl { fn get_SecretReferences(&self) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST; } -impl windows_core::RuntimeName for IFabricSecretReferencesResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricSecretReferencesResult_Vtbl { - pub const fn new( - ) -> IFabricSecretReferencesResult_Vtbl - where - Identity: IFabricSecretReferencesResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_SecretReferences< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretReferencesResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST - where - Identity: IFabricSecretReferencesResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricSecretReferencesResult_Impl::get_SecretReferences(this) + ) -> *mut super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricSecretReferencesResult_Impl::get_SecretReferences(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -24726,110 +25361,402 @@ impl IFabricSecretReferencesResult_Vtbl { iid == &::IID } } -pub trait IFabricSecretStoreClient_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricSecretReferencesResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricSecretReferencesResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricSecretReferencesResult {} +windows_core::imp::define_interface!( + IFabricSecretStoreClient, + IFabricSecretStoreClient_Vtbl, + 0x38c4c723_3815_49d8_bdf2_68bfb536b8c9 +); +windows_core::imp::interface_hierarchy!(IFabricSecretStoreClient, windows_core::IUnknown); +impl IFabricSecretStoreClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetSecrets( + &self, + secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + includevalue: bool, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetSecrets)( + windows_core::Interface::as_raw(self), + secretreferences, + includevalue, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetSecrets( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetSecrets)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginSetSecrets( + &self, + secrets: *const super::FabricTypes::FABRIC_SECRET_LIST, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginSetSecrets)( + windows_core::Interface::as_raw(self), + secrets, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndSetSecrets( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndSetSecrets)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRemoveSecrets( + &self, + secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRemoveSecrets)( + windows_core::Interface::as_raw(self), + secretreferences, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRemoveSecrets( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndRemoveSecrets)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetSecretVersions( + &self, + secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetSecretVersions)( + windows_core::Interface::as_raw(self), + secretreferences, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetSecretVersions( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetSecretVersions)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricSecretStoreClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + bool, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetSecrets: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetSecrets: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginSetSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SECRET_LIST, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginSetSecrets: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndSetSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndSetSecrets: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRemoveSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRemoveSecrets: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRemoveSecrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRemoveSecrets: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetSecretVersions: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetSecretVersions: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetSecretVersions: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetSecretVersions: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricSecretStoreClient_Impl: windows_core::IUnknownImpl { fn BeginGetSecrets( &self, secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - includevalue: windows::Win32::Foundation::BOOLEAN, + includevalue: bool, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetSecrets( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginSetSecrets( &self, secrets: *const super::FabricTypes::FABRIC_SECRET_LIST, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndSetSecrets( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginRemoveSecrets( &self, secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRemoveSecrets( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetSecretVersions( &self, secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetSecretVersions( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricSecretStoreClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricSecretStoreClient_Vtbl { - pub const fn new( - ) -> IFabricSecretStoreClient_Vtbl - where - Identity: IFabricSecretStoreClient_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST, - includevalue: windows::Win32::Foundation::BOOLEAN, + includevalue: bool, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::BeginGetSecrets( - this, - core::mem::transmute_copy(&secretreferences), - core::mem::transmute_copy(&includevalue), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::BeginGetSecrets( + this, + core::mem::transmute_copy(&secretreferences), + core::mem::transmute_copy(&includevalue), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::EndGetSecrets( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::EndGetSecrets( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginSetSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24837,49 +25764,49 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::BeginSetSecrets( - this, - core::mem::transmute_copy(&secrets), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::BeginSetSecrets( + this, + core::mem::transmute_copy(&secrets), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndSetSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::EndSetSecrets( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::EndSetSecrets( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginRemoveSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24887,49 +25814,49 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::BeginRemoveSecrets( - this, - core::mem::transmute_copy(&secretreferences), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::BeginRemoveSecrets( + this, + core::mem::transmute_copy(&secretreferences), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRemoveSecrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::EndRemoveSecrets( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::EndRemoveSecrets( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetSecretVersions< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -24937,45 +25864,45 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::BeginGetSecretVersions( - this, - core::mem::transmute_copy(&secretreferences), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::BeginGetSecretVersions( + this, + core::mem::transmute_copy(&secretreferences), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetSecretVersions< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecretStoreClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricSecretStoreClient_Impl::EndGetSecretVersions( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricSecretStoreClient_Impl::EndGetSecretVersions( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -24994,27 +25921,65 @@ impl IFabricSecretStoreClient_Vtbl { iid == &::IID } } -pub trait IFabricSecretsResult_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricSecretStoreClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricSecretStoreClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricSecretStoreClient {} +windows_core::imp::define_interface!( + IFabricSecretsResult, + IFabricSecretsResult_Vtbl, + 0xfe15a879_0dbe_4841_9cc6_6e92077cd669 +); +windows_core::imp::interface_hierarchy!(IFabricSecretsResult, windows_core::IUnknown); +impl IFabricSecretsResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Secrets(&self) -> *mut super::FabricTypes::FABRIC_SECRET_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_Secrets)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricSecretsResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Secrets: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SECRET_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Secrets: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricSecretsResult_Impl: windows_core::IUnknownImpl { fn get_Secrets(&self) -> *mut super::FabricTypes::FABRIC_SECRET_LIST; } -impl windows_core::RuntimeName for IFabricSecretsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricSecretsResult_Vtbl { - pub const fn new( - ) -> IFabricSecretsResult_Vtbl - where - Identity: IFabricSecretsResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Secrets< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecretsResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECRET_LIST - where - Identity: IFabricSecretsResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricSecretsResult_Impl::get_Secrets(this) + ) -> *mut super::FabricTypes::FABRIC_SECRET_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricSecretsResult_Impl::get_Secrets(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -25025,27 +25990,58 @@ impl IFabricSecretsResult_Vtbl { iid == &::IID } } -pub trait IFabricServiceDescriptionResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricSecretsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricSecretsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricSecretsResult {} +windows_core::imp::define_interface!( + IFabricServiceDescriptionResult, + IFabricServiceDescriptionResult_Vtbl, + 0x86b4f744_38c7_4dab_b6b4_11c23734c269 +); +windows_core::imp::interface_hierarchy!(IFabricServiceDescriptionResult, windows_core::IUnknown); +impl IFabricServiceDescriptionResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_Description)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricServiceDescriptionResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Description: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Description: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricServiceDescriptionResult_Impl: windows_core::IUnknownImpl { fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION; } -impl windows_core::RuntimeName for IFabricServiceDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricServiceDescriptionResult_Vtbl { - pub const fn new( - ) -> IFabricServiceDescriptionResult_Vtbl - where - Identity: IFabricServiceDescriptionResult_Impl, + pub const fn new() -> Self { unsafe extern "system" fn get_Description< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceDescriptionResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION - where - Identity: IFabricServiceDescriptionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceDescriptionResult_Impl::get_Description(this) + ) -> *mut super::FabricTypes::FABRIC_SERVICE_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceDescriptionResult_Impl::get_Description(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -25056,37 +26052,72 @@ impl IFabricServiceDescriptionResult_Vtbl { iid == &::IID } } -pub trait IFabricServiceEndpointsVersion_Impl: Sized { - fn Compare(&self, other: Option<&IFabricServiceEndpointsVersion>) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricServiceEndpointsVersion {} -impl IFabricServiceEndpointsVersion_Vtbl { - pub const fn new( - ) -> IFabricServiceEndpointsVersion_Vtbl +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricServiceDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricServiceDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricServiceDescriptionResult {} +windows_core::imp::define_interface!( + IFabricServiceEndpointsVersion, + IFabricServiceEndpointsVersion_Vtbl, + 0x0a673dc5_2297_4fc5_a38f_482d29144fa5 +); +windows_core::imp::interface_hierarchy!(IFabricServiceEndpointsVersion, windows_core::IUnknown); +impl IFabricServiceEndpointsVersion { + pub unsafe fn Compare(&self, other: P0) -> windows_core::Result where - Identity: IFabricServiceEndpointsVersion_Impl, + P0: windows_core::Param, { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).Compare)( + windows_core::Interface::as_raw(self), + other.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricServiceEndpointsVersion_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub Compare: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i32, + ) -> windows_core::HRESULT, +} +pub trait IFabricServiceEndpointsVersion_Impl: windows_core::IUnknownImpl { + fn Compare( + &self, + other: windows_core::Ref<'_, IFabricServiceEndpointsVersion>, + ) -> windows_core::Result; +} +impl IFabricServiceEndpointsVersion_Vtbl { + pub const fn new() -> Self { unsafe extern "system" fn Compare< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceEndpointsVersion_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, other: *mut core::ffi::c_void, compareresult: *mut i32, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceEndpointsVersion_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceEndpointsVersion_Impl::Compare( - this, - windows_core::from_raw_borrowed(&other), - ) { - Ok(ok__) => { - compareresult.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceEndpointsVersion_Impl::Compare( + this, + core::mem::transmute_copy(&other), + ) { + Ok(ok__) => { + compareresult.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -25094,82 +26125,330 @@ impl IFabricServiceEndpointsVersion_Vtbl { Compare: Compare::, } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupDescriptionResult_Impl: Sized { - fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION; -} -impl windows_core::RuntimeName for IFabricServiceGroupDescriptionResult {} -impl IFabricServiceGroupDescriptionResult_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupDescriptionResult_Vtbl + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricServiceEndpointsVersion {} +unsafe impl Send for IFabricServiceEndpointsVersion {} +unsafe impl Sync for IFabricServiceEndpointsVersion {} +windows_core::imp::define_interface!( + IFabricServiceGroupDescriptionResult, + IFabricServiceGroupDescriptionResult_Vtbl, + 0x3ca814d4_e067_48b7_9bdc_9be33810416d +); +windows_core::imp::interface_hierarchy!( + IFabricServiceGroupDescriptionResult, + windows_core::IUnknown +); +impl IFabricServiceGroupDescriptionResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Description( + &self, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_Description)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupDescriptionResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Description: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Description: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricServiceGroupDescriptionResult_Impl: windows_core::IUnknownImpl { + fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricServiceGroupDescriptionResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Description< + Identity: IFabricServiceGroupDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupDescriptionResult_Impl::get_Description(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricServiceGroupDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricServiceGroupDescriptionResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricServiceGroupDescriptionResult {} +windows_core::imp::define_interface!( + IFabricServiceGroupManagementClient, + IFabricServiceGroupManagementClient_Vtbl, + 0x2061227e_0281_4baf_9b19_b2dfb2e63bbe +); +windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient, + windows_core::IUnknown +); +impl IFabricServiceGroupManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateServiceGroup( + &self, + description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateServiceGroup)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateServiceGroup)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteServiceGroup( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteServiceGroup)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> windows_core::Result<()> where - Identity: IFabricServiceGroupDescriptionResult_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Description< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION - where - Identity: IFabricServiceGroupDescriptionResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupDescriptionResult_Impl::get_Description(this) + unsafe { + (windows_core::Interface::vtable(self).EndDeleteServiceGroup)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceGroupDescription( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceGroupDescription)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceGroupDescription( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceGroupDescription)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricServiceGroupManagementClient_Impl: Sized { +#[repr(C)] +pub struct IFabricServiceGroupManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateServiceGroup: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateServiceGroup: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteServiceGroup: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteServiceGroup: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceGroupDescription: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceGroupDescription: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceGroupDescription: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceGroupDescription: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceGroupManagementClient_Impl: windows_core::IUnknownImpl { fn BeginCreateServiceGroup( &self, description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateServiceGroup( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginDeleteServiceGroup( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteServiceGroup( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetServiceGroupDescription( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceGroupDescription( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricServiceGroupManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceGroupManagementClient_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupManagementClient_Vtbl - where - Identity: IFabricServiceGroupManagementClient_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn BeginCreateServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25177,43 +26456,43 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient_Impl::BeginCreateServiceGroup( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient_Impl::BeginCreateServiceGroup( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupManagementClient_Impl::EndCreateServiceGroup( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupManagementClient_Impl::EndCreateServiceGroup( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginDeleteServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25221,43 +26500,43 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient_Impl::BeginDeleteServiceGroup( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient_Impl::BeginDeleteServiceGroup( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupManagementClient_Impl::EndDeleteServiceGroup( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupManagementClient_Impl::EndDeleteServiceGroup( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetServiceGroupDescription< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25265,45 +26544,45 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient_Impl::BeginGetServiceGroupDescription( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient_Impl::BeginGetServiceGroupDescription( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupDescription< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient_Impl::EndGetServiceGroupDescription( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient_Impl::EndGetServiceGroupDescription( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -25320,30 +26599,135 @@ impl IFabricServiceGroupManagementClient_Vtbl { iid == &::IID } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceGroupManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceGroupManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceGroupManagementClient {} +windows_core::imp::define_interface!( + IFabricServiceGroupManagementClient2, + IFabricServiceGroupManagementClient2_Vtbl, + 0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64 +); +impl core::ops::Deref for IFabricServiceGroupManagementClient2 { + type Target = IFabricServiceGroupManagementClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient2, + windows_core::IUnknown, + IFabricServiceGroupManagementClient +); +impl IFabricServiceGroupManagementClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateServiceGroup( + &self, + name: super::FabricTypes::FABRIC_URI, + servicegroupupdatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateServiceGroup)( + windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateServiceGroup(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpdateServiceGroup)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupManagementClient2_Vtbl { + pub base__: IFabricServiceGroupManagementClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateServiceGroup: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateServiceGroup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateServiceGroup: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] pub trait IFabricServiceGroupManagementClient2_Impl: - Sized + IFabricServiceGroupManagementClient_Impl + IFabricServiceGroupManagementClient_Impl { fn BeginUpdateServiceGroup( &self, name: super::FabricTypes::FABRIC_URI, servicegroupupdatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateServiceGroup( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceGroupManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceGroupManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupManagementClient2_Vtbl - where - Identity: IFabricServiceGroupManagementClient2_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn BeginUpdateServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25352,41 +26736,41 @@ impl IFabricServiceGroupManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient2_Impl::BeginUpdateServiceGroup( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&servicegroupupdatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient2_Impl::BeginUpdateServiceGroup( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&servicegroupupdatedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateServiceGroup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupManagementClient2_Impl::EndUpdateServiceGroup( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupManagementClient2_Impl::EndUpdateServiceGroup( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceGroupManagementClient_Vtbl::new::(), @@ -25399,8 +26783,127 @@ impl IFabricServiceGroupManagementClient2_Vtbl { || iid == &::IID } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceGroupManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceGroupManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceGroupManagementClient2 {} +windows_core::imp::define_interface!( + IFabricServiceGroupManagementClient3, + IFabricServiceGroupManagementClient3_Vtbl, + 0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6 +); +impl core::ops::Deref for IFabricServiceGroupManagementClient3 { + type Target = IFabricServiceGroupManagementClient2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient3, + windows_core::IUnknown, + IFabricServiceGroupManagementClient, + IFabricServiceGroupManagementClient2 +); +impl IFabricServiceGroupManagementClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateServiceGroupFromTemplate( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + servicename: super::FabricTypes::FABRIC_URI, + servicetypename: P2, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P6, + ) -> windows_core::Result + where + P2: windows_core::Param, + P6: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate)( + windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.param().abi(), + initializationdata.len().try_into().unwrap(), + core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateServiceGroupFromTemplate( + &self, + context: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupManagementClient3_Vtbl { + pub base__: IFabricServiceGroupManagementClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateServiceGroupFromTemplate: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *const u8, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateServiceGroupFromTemplate: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateServiceGroupFromTemplate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateServiceGroupFromTemplate: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] pub trait IFabricServiceGroupManagementClient3_Impl: - Sized + IFabricServiceGroupManagementClient2_Impl + IFabricServiceGroupManagementClient2_Impl { fn BeginCreateServiceGroupFromTemplate( &self, @@ -25410,22 +26913,22 @@ pub trait IFabricServiceGroupManagementClient3_Impl: initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateServiceGroupFromTemplate( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceGroupManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceGroupManagementClient3_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupManagementClient3_Vtbl - where - Identity: IFabricServiceGroupManagementClient3_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn BeginCreateServiceGroupFromTemplate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25437,44 +26940,44 @@ impl IFabricServiceGroupManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient3_Impl::BeginCreateServiceGroupFromTemplate( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&servicename), - core::mem::transmute(&servicetypename), - core::mem::transmute_copy(&initializationdatasize), - core::mem::transmute_copy(&initializationdata), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient3_Impl::BeginCreateServiceGroupFromTemplate( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&servicename), + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&initializationdatasize), + core::mem::transmute_copy(&initializationdata), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndCreateServiceGroupFromTemplate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupManagementClient3_Impl::EndCreateServiceGroupFromTemplate( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupManagementClient3_Impl::EndCreateServiceGroupFromTemplate( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceGroupManagementClient2_Vtbl::new::(), @@ -25491,29 +26994,137 @@ impl IFabricServiceGroupManagementClient3_Vtbl { || iid == &::IID } } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceGroupManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceGroupManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceGroupManagementClient3 {} +windows_core::imp::define_interface!( + IFabricServiceGroupManagementClient4, + IFabricServiceGroupManagementClient4_Vtbl, + 0x3c73b32e_9a08_48ca_b3a3_993a2029e37a +); +impl core::ops::Deref for IFabricServiceGroupManagementClient4 { + type Target = IFabricServiceGroupManagementClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient4, + windows_core::IUnknown, + IFabricServiceGroupManagementClient, + IFabricServiceGroupManagementClient2, + IFabricServiceGroupManagementClient3 +); +impl IFabricServiceGroupManagementClient4 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateServiceGroupFromTemplate2( + &self, + servicegroupfromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate2)( + windows_core::Interface::as_raw(self), + servicegroupfromtemplatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateServiceGroupFromTemplate2( + &self, + context: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupManagementClient4_Vtbl { + pub base__: IFabricServiceGroupManagementClient3_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateServiceGroupFromTemplate2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateServiceGroupFromTemplate2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateServiceGroupFromTemplate2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateServiceGroupFromTemplate2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] pub trait IFabricServiceGroupManagementClient4_Impl: - Sized + IFabricServiceGroupManagementClient3_Impl + IFabricServiceGroupManagementClient3_Impl { fn BeginCreateServiceGroupFromTemplate2( &self, servicegroupfromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateServiceGroupFromTemplate2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceGroupManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceGroupManagementClient4_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupManagementClient4_Vtbl - where - Identity: IFabricServiceGroupManagementClient4_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn BeginCreateServiceGroupFromTemplate2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25521,40 +27132,29 @@ impl IFabricServiceGroupManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupManagementClient4_Impl::BeginCreateServiceGroupFromTemplate2( - this, - core::mem::transmute_copy(&servicegroupfromtemplatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupManagementClient4_Impl:: BeginCreateServiceGroupFromTemplate2 ( this , core::mem::transmute_copy ( & servicegroupfromtemplatedescription ) , core::mem::transmute_copy ( & timeoutmilliseconds ) , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { context . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } } unsafe extern "system" fn EndCreateServiceGroupFromTemplate2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupManagementClient4_Impl::EndCreateServiceGroupFromTemplate2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupManagementClient4_Impl::EndCreateServiceGroupFromTemplate2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceGroupManagementClient3_Vtbl::new::(), @@ -25575,27 +27175,66 @@ impl IFabricServiceGroupManagementClient4_Vtbl { || iid == &::IID } } -pub trait IFabricServiceHealthResult_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceGroupManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceGroupManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceGroupManagementClient4 {} +windows_core::imp::define_interface!( + IFabricServiceHealthResult, + IFabricServiceHealthResult_Vtbl, + 0x52040bd9_a78e_4308_a30e_7114e3684e76 +); +windows_core::imp::interface_hierarchy!(IFabricServiceHealthResult, windows_core::IUnknown); +impl IFabricServiceHealthResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ServiceHealth(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceHealth)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricServiceHealthResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ServiceHealth: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ServiceHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricServiceHealthResult_Impl: windows_core::IUnknownImpl { fn get_ServiceHealth(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH; } -impl windows_core::RuntimeName for IFabricServiceHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricServiceHealthResult_Vtbl { - pub const fn new( - ) -> IFabricServiceHealthResult_Vtbl - where - Identity: IFabricServiceHealthResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_ServiceHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceHealthResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH - where - Identity: IFabricServiceHealthResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceHealthResult_Impl::get_ServiceHealth(this) + ) -> *mut super::FabricTypes::FABRIC_SERVICE_HEALTH { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceHealthResult_Impl::get_ServiceHealth(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -25606,16 +27245,428 @@ impl IFabricServiceHealthResult_Vtbl { iid == &::IID } } -pub trait IFabricServiceManagementClient_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricServiceHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricServiceHealthResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricServiceHealthResult {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient, + IFabricServiceManagementClient_Vtbl, + 0xf7368189_fd1f_437c_888d_8c89cecc57a0 +); +windows_core::imp::interface_hierarchy!(IFabricServiceManagementClient, windows_core::IUnknown); +impl IFabricServiceManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateService( + &self, + description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateService)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateService(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateService)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: super::FabricTypes::FABRIC_URI, + servicename: super::FabricTypes::FABRIC_URI, + servicetypename: P2, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P6, + ) -> windows_core::Result + where + P2: windows_core::Param, + P6: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate)( + windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.param().abi(), + initializationdata.len().try_into().unwrap(), + core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateServiceFromTemplate)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteService( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteService)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteService(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteService)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetServiceDescription( + &self, + name: super::FabricTypes::FABRIC_URI, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceDescription)( + windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceDescription)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: super::FabricTypes::FABRIC_URI, + keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const core::ffi::c_void, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).RegisterServicePartitionResolutionChangeHandler)( + windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self) + .UnregisterServicePartitionResolutionChangeHandler)( + windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginResolveServicePartition( + &self, + name: super::FabricTypes::FABRIC_URI, + partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const core::ffi::c_void, + previousresult: P3, + timeoutmilliseconds: u32, + callback: P5, + ) -> windows_core::Result + where + P3: windows_core::Param, + P5: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginResolveServicePartition)( + windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndResolveServicePartition)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricServiceManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateService: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateService: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateService: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateService: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateServiceFromTemplate: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + super::FabricTypes::FABRIC_URI, + windows_core::PCWSTR, + u32, + *const u8, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateServiceFromTemplate: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateServiceFromTemplate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateServiceFromTemplate: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteService: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteService: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteService: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteService: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetServiceDescription: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetServiceDescription: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceDescription: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceDescription: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub RegisterServicePartitionResolutionChangeHandler: + unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, + *const core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + RegisterServicePartitionResolutionChangeHandler: usize, + pub UnregisterServicePartitionResolutionChangeHandler: + unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginResolveServicePartition: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, + *const core::ffi::c_void, + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginResolveServicePartition: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndResolveServicePartition: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndResolveServicePartition: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient_Impl: windows_core::IUnknownImpl { fn BeginCreateService( &self, description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateService( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginCreateServiceFromTemplate( &self, @@ -25625,38 +27676,38 @@ pub trait IFabricServiceManagementClient_Impl: Sized { initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateServiceFromTemplate( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginDeleteService( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteService( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetServiceDescription( &self, name: super::FabricTypes::FABRIC_URI, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceDescription( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn RegisterServicePartitionResolutionChangeHandler( &self, name: super::FabricTypes::FABRIC_URI, keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const core::ffi::c_void, - callback: Option<&IFabricServicePartitionResolutionChangeHandler>, + callback: windows_core::Ref<'_, IFabricServicePartitionResolutionChangeHandler>, ) -> windows_core::Result; fn UnregisterServicePartitionResolutionChangeHandler( &self, @@ -25667,24 +27718,23 @@ pub trait IFabricServiceManagementClient_Impl: Sized { name: super::FabricTypes::FABRIC_URI, partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const core::ffi::c_void, - previousresult: Option<&IFabricResolvedServicePartitionResult>, + previousresult: windows_core::Ref<'_, IFabricResolvedServicePartitionResult>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndResolveServicePartition( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricServiceManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient_Vtbl - where - Identity: IFabricServiceManagementClient_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginCreateService< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25692,43 +27742,43 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::BeginCreateService( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::BeginCreateService( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCreateService< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient_Impl::EndCreateService( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient_Impl::EndCreateService( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginCreateServiceFromTemplate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25740,47 +27790,47 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::BeginCreateServiceFromTemplate( - this, - core::mem::transmute_copy(&applicationname), - core::mem::transmute_copy(&servicename), - core::mem::transmute(&servicetypename), - core::mem::transmute_copy(&initializationdatasize), - core::mem::transmute_copy(&initializationdata), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::BeginCreateServiceFromTemplate( + this, + core::mem::transmute_copy(&applicationname), + core::mem::transmute_copy(&servicename), + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&initializationdatasize), + core::mem::transmute_copy(&initializationdata), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndCreateServiceFromTemplate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient_Impl::EndCreateServiceFromTemplate( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient_Impl::EndCreateServiceFromTemplate( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginDeleteService< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25788,43 +27838,43 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::BeginDeleteService( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::BeginDeleteService( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteService< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient_Impl::EndDeleteService( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient_Impl::EndDeleteService( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetServiceDescription< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25832,49 +27882,49 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::BeginGetServiceDescription( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::BeginGetServiceDescription( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceDescription< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::EndGetServiceDescription( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::EndGetServiceDescription( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn RegisterServicePartitionResolutionChangeHandler< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25883,32 +27933,28 @@ impl IFabricServiceManagementClient_Vtbl { partitionkey: *const core::ffi::c_void, callback: *mut core::ffi::c_void, callbackhandle: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl:: RegisterServicePartitionResolutionChangeHandler ( this , core::mem::transmute_copy ( & name ) , core::mem::transmute_copy ( & keytype ) , core::mem::transmute_copy ( & partitionkey ) , windows_core::from_raw_borrowed ( & callback ) , ) { Ok ( ok__ ) => { callbackhandle . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl:: RegisterServicePartitionResolutionChangeHandler ( this , core::mem::transmute_copy ( & name ) , core::mem::transmute_copy ( & keytype ) , core::mem::transmute_copy ( & partitionkey ) , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { callbackhandle . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + } } unsafe extern "system" fn UnregisterServicePartitionResolutionChangeHandler< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callbackhandle: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient_Impl::UnregisterServicePartitionResolutionChangeHandler( - this, - core::mem::transmute_copy(&callbackhandle), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient_Impl:: UnregisterServicePartitionResolutionChangeHandler ( this , core::mem::transmute_copy ( & callbackhandle ) , ) . into ( ) + } } unsafe extern "system" fn BeginResolveServicePartition< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25919,48 +27965,48 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::BeginResolveServicePartition( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&partitionkeytype), - core::mem::transmute_copy(&partitionkey), - windows_core::from_raw_borrowed(&previousresult), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::BeginResolveServicePartition( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&partitionkeytype), + core::mem::transmute_copy(&partitionkey), + core::mem::transmute_copy(&previousresult), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndResolveServicePartition< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient_Impl::EndResolveServicePartition( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient_Impl::EndResolveServicePartition( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -25985,42 +28031,212 @@ impl IFabricServiceManagementClient_Vtbl { iid == &::IID } } -pub trait IFabricServiceManagementClient2_Impl: - Sized + IFabricServiceManagementClient_Impl -{ +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient2, + IFabricServiceManagementClient2_Vtbl, + 0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa +); +impl core::ops::Deref for IFabricServiceManagementClient2 { + type Target = IFabricServiceManagementClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient2, + windows_core::IUnknown, + IFabricServiceManagementClient +); +impl IFabricServiceManagementClient2 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P4, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + P4: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetServiceManifest)( + windows_core::Interface::as_raw(self), + applicationtypename.param().abi(), + applicationtypeversion.param().abi(), + servicemanifestname.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetServiceManifest)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateService( + &self, + name: super::FabricTypes::FABRIC_URI, + serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateService)( + windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateService(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpdateService)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceManagementClient2_Vtbl { + pub base__: IFabricServiceManagementClient_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetServiceManifest: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + windows_core::PCWSTR, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetServiceManifest: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetServiceManifest: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetServiceManifest: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateService: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateService: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateService: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateService: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient2_Impl: IFabricServiceManagementClient_Impl { fn BeginGetServiceManifest( &self, applicationtypename: &windows_core::PCWSTR, applicationtypeversion: &windows_core::PCWSTR, servicemanifestname: &windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetServiceManifest( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginUpdateService( &self, name: super::FabricTypes::FABRIC_URI, serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateService( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient2_Vtbl - where - Identity: IFabricServiceManagementClient2_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginGetServiceManifest< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26030,51 +28246,51 @@ impl IFabricServiceManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient2_Impl::BeginGetServiceManifest( - this, - core::mem::transmute(&applicationtypename), - core::mem::transmute(&applicationtypeversion), - core::mem::transmute(&servicemanifestname), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient2_Impl::BeginGetServiceManifest( + this, + core::mem::transmute(&applicationtypename), + core::mem::transmute(&applicationtypeversion), + core::mem::transmute(&servicemanifestname), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } } } unsafe extern "system" fn EndGetServiceManifest< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient2_Impl::EndGetServiceManifest( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient2_Impl::EndGetServiceManifest( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginUpdateService< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26083,88 +28299,250 @@ impl IFabricServiceManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient2_Impl::BeginUpdateService( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&serviceupdatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient2_Impl::BeginUpdateService( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&serviceupdatedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndUpdateService< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient2_Impl::EndUpdateService( - this, - windows_core::from_raw_borrowed(&context), + unsafe extern "system" fn EndUpdateService< + Identity: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient2_Impl::EndUpdateService( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: IFabricServiceManagementClient_Vtbl::new::(), + BeginGetServiceManifest: BeginGetServiceManifest::, + EndGetServiceManifest: EndGetServiceManifest::, + BeginUpdateService: BeginUpdateService::, + EndUpdateService: EndUpdateService::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient2 {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient3, + IFabricServiceManagementClient3_Vtbl, + 0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d +); +impl core::ops::Deref for IFabricServiceManagementClient3 { + type Target = IFabricServiceManagementClient2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient3, + windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2 +); +impl IFabricServiceManagementClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRemoveReplica( + &self, + description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRemoveReplica)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRemoveReplica(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRemoveReplica)( + windows_core::Interface::as_raw(self), + context.param().abi(), ) - .into() + .ok() } - Self { - base__: IFabricServiceManagementClient_Vtbl::new::(), - BeginGetServiceManifest: BeginGetServiceManifest::, - EndGetServiceManifest: EndGetServiceManifest::, - BeginUpdateService: BeginUpdateService::, - EndUpdateService: EndUpdateService::, + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestartReplica( + &self, + description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestartReplica)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestartReplica(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRestartReplica)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -pub trait IFabricServiceManagementClient3_Impl: - Sized + IFabricServiceManagementClient2_Impl -{ +#[repr(C)] +pub struct IFabricServiceManagementClient3_Vtbl { + pub base__: IFabricServiceManagementClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRemoveReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRemoveReplica: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRemoveReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRemoveReplica: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestartReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestartReplica: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestartReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestartReplica: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient3_Impl: IFabricServiceManagementClient2_Impl { fn BeginRemoveReplica( &self, description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRemoveReplica( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginRestartReplica( &self, description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRestartReplica( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient3_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient3_Vtbl - where - Identity: IFabricServiceManagementClient3_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginRemoveReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26172,43 +28550,43 @@ impl IFabricServiceManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient3_Impl::BeginRemoveReplica( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient3_Impl::BeginRemoveReplica( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRemoveReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient3_Impl::EndRemoveReplica( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient3_Impl::EndRemoveReplica( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginRestartReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26216,40 +28594,40 @@ impl IFabricServiceManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient3_Impl::BeginRestartReplica( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient3_Impl::BeginRestartReplica( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRestartReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient3_Impl::EndRestartReplica( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient3_Impl::EndRestartReplica( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceManagementClient2_Vtbl::new::(), @@ -26265,39 +28643,206 @@ impl IFabricServiceManagementClient3_Vtbl { || iid == &::IID } } -pub trait IFabricServiceManagementClient4_Impl: - Sized + IFabricServiceManagementClient3_Impl -{ +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient3 {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient4, + IFabricServiceManagementClient4_Vtbl, + 0x8180db27_7d0b_43b0_82e0_4a8e022fc238 +); +impl core::ops::Deref for IFabricServiceManagementClient4 { + type Target = IFabricServiceManagementClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient4, + windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3 +); +impl IFabricServiceManagementClient4 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRegisterServiceNotificationFilter( + &self, + description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRegisterServiceNotificationFilter)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRegisterServiceNotificationFilter( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndRegisterServiceNotificationFilter)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginUnregisterServiceNotificationFilter( + &self, + filterid: i64, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUnregisterServiceNotificationFilter)( + windows_core::Interface::as_raw(self), + filterid, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUnregisterServiceNotificationFilter( + &self, + context: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUnregisterServiceNotificationFilter)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceManagementClient4_Vtbl { + pub base__: IFabricServiceManagementClient3_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRegisterServiceNotificationFilter: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRegisterServiceNotificationFilter: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRegisterServiceNotificationFilter: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRegisterServiceNotificationFilter: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginUnregisterServiceNotificationFilter: + unsafe extern "system" fn( + *mut core::ffi::c_void, + i64, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginUnregisterServiceNotificationFilter: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUnregisterServiceNotificationFilter: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUnregisterServiceNotificationFilter: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient4_Impl: IFabricServiceManagementClient3_Impl { fn BeginRegisterServiceNotificationFilter( &self, description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRegisterServiceNotificationFilter( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginUnregisterServiceNotificationFilter( &self, filterid: i64, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUnregisterServiceNotificationFilter( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient4_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient4_Vtbl - where - Identity: IFabricServiceManagementClient4_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginRegisterServiceNotificationFilter< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26305,49 +28850,49 @@ impl IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient4_Impl::BeginRegisterServiceNotificationFilter( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient4_Impl::BeginRegisterServiceNotificationFilter( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterServiceNotificationFilter< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, filterid: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient4_Impl::EndRegisterServiceNotificationFilter( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - filterid.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient4_Impl::EndRegisterServiceNotificationFilter( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + filterid.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginUnregisterServiceNotificationFilter< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26355,40 +28900,40 @@ impl IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient4_Impl::BeginUnregisterServiceNotificationFilter( - this, - core::mem::transmute_copy(&filterid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient4_Impl::BeginUnregisterServiceNotificationFilter( + this, + core::mem::transmute_copy(&filterid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUnregisterServiceNotificationFilter< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient4_Impl::EndUnregisterServiceNotificationFilter( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient4_Impl::EndUnregisterServiceNotificationFilter( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceManagementClient3_Vtbl::new::(), @@ -26410,36 +28955,139 @@ impl IFabricServiceManagementClient4_Vtbl { >, } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient4 {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient5, + IFabricServiceManagementClient5_Vtbl, + 0xf9a70679_8ca3_4e27_9411_483e0c89b1fa +); +impl core::ops::Deref for IFabricServiceManagementClient5 { + type Target = IFabricServiceManagementClient4; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient5, + windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3, + IFabricServiceManagementClient4 +); +impl IFabricServiceManagementClient5 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeleteService2( + &self, + deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeleteService2)( + windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeleteService2(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeleteService2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } } -pub trait IFabricServiceManagementClient5_Impl: - Sized + IFabricServiceManagementClient4_Impl -{ +#[repr(C)] +pub struct IFabricServiceManagementClient5_Vtbl { + pub base__: IFabricServiceManagementClient4_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeleteService2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeleteService2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeleteService2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeleteService2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient5_Impl: IFabricServiceManagementClient4_Impl { fn BeginDeleteService2( &self, deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndDeleteService2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient5_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient5_Vtbl - where - Identity: IFabricServiceManagementClient5_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginDeleteService2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26447,40 +29095,40 @@ impl IFabricServiceManagementClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient5_Impl::BeginDeleteService2( - this, - core::mem::transmute_copy(&deletedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient5_Impl::BeginDeleteService2( + this, + core::mem::transmute_copy(&deletedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteService2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient5_Impl::EndDeleteService2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient5_Impl::EndDeleteService2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceManagementClient4_Vtbl::new::(), @@ -26496,29 +29144,133 @@ impl IFabricServiceManagementClient5_Vtbl { || iid == &::IID } } -pub trait IFabricServiceManagementClient6_Impl: - Sized + IFabricServiceManagementClient5_Impl -{ +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient5 {} +windows_core::imp::define_interface!( + IFabricServiceManagementClient6, + IFabricServiceManagementClient6_Vtbl, + 0x23e4ee1b_049a_48f5_8dd7_b601eace47de +); +impl core::ops::Deref for IFabricServiceManagementClient6 { + type Target = IFabricServiceManagementClient5; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient6, + windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3, + IFabricServiceManagementClient4, + IFabricServiceManagementClient5 +); +impl IFabricServiceManagementClient6 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCreateServiceFromTemplate2( + &self, + servicefromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate2)( + windows_core::Interface::as_raw(self), + servicefromtemplatedescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCreateServiceFromTemplate2(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCreateServiceFromTemplate2)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceManagementClient6_Vtbl { + pub base__: IFabricServiceManagementClient5_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCreateServiceFromTemplate2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCreateServiceFromTemplate2: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCreateServiceFromTemplate2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCreateServiceFromTemplate2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricServiceManagementClient6_Impl: IFabricServiceManagementClient5_Impl { fn BeginCreateServiceFromTemplate2( &self, servicefromtemplatedescription : *const super::FabricTypes:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCreateServiceFromTemplate2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricServiceManagementClient6_Vtbl { - pub const fn new( - ) -> IFabricServiceManagementClient6_Vtbl - where - Identity: IFabricServiceManagementClient6_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginCreateServiceFromTemplate2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26526,40 +29278,40 @@ impl IFabricServiceManagementClient6_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceManagementClient6_Impl::BeginCreateServiceFromTemplate2( - this, - core::mem::transmute_copy(&servicefromtemplatedescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceManagementClient6_Impl::BeginCreateServiceFromTemplate2( + this, + core::mem::transmute_copy(&servicefromtemplatedescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceFromTemplate2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceManagementClient6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceManagementClient6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceManagementClient6_Impl::EndCreateServiceFromTemplate2( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceManagementClient6_Impl::EndCreateServiceFromTemplate2( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricServiceManagementClient5_Vtbl::new::(), @@ -26576,46 +29328,99 @@ impl IFabricServiceManagementClient6_Vtbl { || iid == &::IID } } -pub trait IFabricServiceNotification_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricServiceManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricServiceManagementClient6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricServiceManagementClient6 {} +windows_core::imp::define_interface!( + IFabricServiceNotification, + IFabricServiceNotification_Vtbl, + 0x8222c825_08ad_4639_afce_a8988cbd6db3 +); +windows_core::imp::interface_hierarchy!(IFabricServiceNotification, windows_core::IUnknown); +impl IFabricServiceNotification { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Notification(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION { + unsafe { + (windows_core::Interface::vtable(self).get_Notification)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn GetVersion(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetVersion)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricServiceNotification_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Notification: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Notification: usize, + pub GetVersion: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricServiceNotification_Impl: windows_core::IUnknownImpl { fn get_Notification(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION; fn GetVersion(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricServiceNotification {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricServiceNotification_Vtbl { - pub const fn new( - ) -> IFabricServiceNotification_Vtbl - where - Identity: IFabricServiceNotification_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Notification< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceNotification_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION - where - Identity: IFabricServiceNotification_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceNotification_Impl::get_Notification(this) + ) -> *mut super::FabricTypes::FABRIC_SERVICE_NOTIFICATION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceNotification_Impl::get_Notification(this) + } } unsafe extern "system" fn GetVersion< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceNotification_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceNotification_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceNotification_Impl::GetVersion(this) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceNotification_Impl::GetVersion(this) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -26628,37 +29433,76 @@ impl IFabricServiceNotification_Vtbl { iid == &::IID } } -pub trait IFabricServiceNotificationEventHandler_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricServiceNotification {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricServiceNotification {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricServiceNotification {} +windows_core::imp::define_interface!( + IFabricServiceNotificationEventHandler, + IFabricServiceNotificationEventHandler_Vtbl, + 0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac +); +windows_core::imp::interface_hierarchy!( + IFabricServiceNotificationEventHandler, + windows_core::IUnknown +); +impl IFabricServiceNotificationEventHandler { + pub unsafe fn OnNotification( + &self, + __midl__ifabricservicenotificationeventhandler0000: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnNotification)( + windows_core::Interface::as_raw(self), + __midl__ifabricservicenotificationeventhandler0000 + .param() + .abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricServiceNotificationEventHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnNotification: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricServiceNotificationEventHandler_Impl: windows_core::IUnknownImpl { fn OnNotification( &self, - __midl__ifabricservicenotificationeventhandler0000: Option<&IFabricServiceNotification>, + __midl__ifabricservicenotificationeventhandler0000: windows_core::Ref< + '_, + IFabricServiceNotification, + >, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricServiceNotificationEventHandler {} impl IFabricServiceNotificationEventHandler_Vtbl { - pub const fn new( - ) -> IFabricServiceNotificationEventHandler_Vtbl - where - Identity: IFabricServiceNotificationEventHandler_Impl, - { + pub const fn new( + ) -> Self { unsafe extern "system" fn OnNotification< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceNotificationEventHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, __midl__ifabricservicenotificationeventhandler0000: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceNotificationEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceNotificationEventHandler_Impl::OnNotification( - this, - windows_core::from_raw_borrowed( - &__midl__ifabricservicenotificationeventhandler0000, - ), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceNotificationEventHandler_Impl::OnNotification( + this, + core::mem::transmute_copy(&__midl__ifabricservicenotificationeventhandler0000), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -26669,24 +29513,67 @@ impl IFabricServiceNotificationEventHandler_Vtbl { iid == &::IID } } -pub trait IFabricServicePartitionResolutionChangeHandler_Impl: Sized { +impl windows_core::RuntimeName for IFabricServiceNotificationEventHandler {} +unsafe impl Send for IFabricServiceNotificationEventHandler {} +unsafe impl Sync for IFabricServiceNotificationEventHandler {} +windows_core::imp::define_interface!( + IFabricServicePartitionResolutionChangeHandler, + IFabricServicePartitionResolutionChangeHandler_Vtbl, + 0xf495715d_8e03_4232_b8d6_1227b39984fc +); +windows_core::imp::interface_hierarchy!( + IFabricServicePartitionResolutionChangeHandler, + windows_core::IUnknown +); +impl IFabricServicePartitionResolutionChangeHandler { + pub unsafe fn OnChange( + &self, + source: P0, + handlerid: i64, + partition: P2, + error: windows_core::HRESULT, + ) where + P0: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnChange)( + windows_core::Interface::as_raw(self), + source.param().abi(), + handlerid, + partition.param().abi(), + error, + ) + } + } +} +#[repr(C)] +pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnChange: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + i64, + *mut core::ffi::c_void, + windows_core::HRESULT, + ), +} +pub trait IFabricServicePartitionResolutionChangeHandler_Impl: windows_core::IUnknownImpl { fn OnChange( &self, - source: Option<&IFabricServiceManagementClient>, + source: windows_core::Ref<'_, IFabricServiceManagementClient>, handlerid: i64, - partition: Option<&IFabricResolvedServicePartitionResult>, + partition: windows_core::Ref<'_, IFabricResolvedServicePartitionResult>, error: windows_core::HRESULT, ); } -impl windows_core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} impl IFabricServicePartitionResolutionChangeHandler_Vtbl { - pub const fn new( - ) -> IFabricServicePartitionResolutionChangeHandler_Vtbl - where + pub const fn new< Identity: IFabricServicePartitionResolutionChangeHandler_Impl, - { + const OFFSET: isize, + >() -> Self { unsafe extern "system" fn OnChange< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServicePartitionResolutionChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26694,17 +29581,18 @@ impl IFabricServicePartitionResolutionChangeHandler_Vtbl { handlerid: i64, partition: *mut core::ffi::c_void, error: windows_core::HRESULT, - ) where - Identity: IFabricServicePartitionResolutionChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServicePartitionResolutionChangeHandler_Impl::OnChange( - this, - windows_core::from_raw_borrowed(&source), - core::mem::transmute_copy(&handlerid), - windows_core::from_raw_borrowed(&partition), - core::mem::transmute_copy(&error), - ) + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServicePartitionResolutionChangeHandler_Impl::OnChange( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&handlerid), + core::mem::transmute_copy(&partition), + core::mem::transmute_copy(&error), + ) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -26715,27 +29603,53 @@ impl IFabricServicePartitionResolutionChangeHandler_Vtbl { iid == &::IID } } -pub trait IFabricStartNodeResult_Impl: Sized { +impl windows_core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} +unsafe impl Send for IFabricServicePartitionResolutionChangeHandler {} +unsafe impl Sync for IFabricServicePartitionResolutionChangeHandler {} +windows_core::imp::define_interface!( + IFabricStartNodeResult, + IFabricStartNodeResult_Vtbl, + 0x7e9f51a5_88ac_49b8_958d_329e3334802e +); +windows_core::imp::interface_hierarchy!(IFabricStartNodeResult, windows_core::IUnknown); +impl IFabricStartNodeResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricStartNodeResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStartNodeResult_Impl: windows_core::IUnknownImpl { fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT; } -impl windows_core::RuntimeName for IFabricStartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStartNodeResult_Vtbl { - pub const fn new( - ) -> IFabricStartNodeResult_Vtbl - where - Identity: IFabricStartNodeResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStartNodeResult_Impl, const OFFSET: isize, >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT - where - Identity: IFabricStartNodeResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStartNodeResult_Impl::get_Result(this) + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStartNodeResult_Impl::get_Result(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -26746,27 +29660,56 @@ impl IFabricStartNodeResult_Vtbl { iid == &::IID } } -pub trait IFabricStopNodeResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStartNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStartNodeResult {} +windows_core::imp::define_interface!( + IFabricStopNodeResult, + IFabricStopNodeResult_Vtbl, + 0x711d60a6_9623_476c_970c_83059a0b4d55 +); +windows_core::imp::interface_hierarchy!(IFabricStopNodeResult, windows_core::IUnknown); +impl IFabricStopNodeResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricStopNodeResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStopNodeResult_Impl: windows_core::IUnknownImpl { fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT; } -impl windows_core::RuntimeName for IFabricStopNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStopNodeResult_Vtbl { - pub const fn new( - ) -> IFabricStopNodeResult_Vtbl - where - Identity: IFabricStopNodeResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStopNodeResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT - where - Identity: IFabricStopNodeResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStopNodeResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::FABRIC_NODE_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStopNodeResult_Impl::get_Result(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -26777,27 +29720,58 @@ impl IFabricStopNodeResult_Vtbl { iid == &::IID } } -pub trait IFabricTestCommandStatusResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStopNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStopNodeResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStopNodeResult {} +windows_core::imp::define_interface!( + IFabricTestCommandStatusResult, + IFabricTestCommandStatusResult_Vtbl, + 0x87798f5c_e600_493a_a926_16b6807378e6 +); +windows_core::imp::interface_hierarchy!(IFabricTestCommandStatusResult, windows_core::IUnknown); +impl IFabricTestCommandStatusResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST { + unsafe { + (windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricTestCommandStatusResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Result: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Result: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricTestCommandStatusResult_Impl: windows_core::IUnknownImpl { fn get_Result(&self) -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST; } -impl windows_core::RuntimeName for IFabricTestCommandStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricTestCommandStatusResult_Vtbl { - pub const fn new( - ) -> IFabricTestCommandStatusResult_Vtbl - where - Identity: IFabricTestCommandStatusResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Result< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestCommandStatusResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST - where - Identity: IFabricTestCommandStatusResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestCommandStatusResult_Impl::get_Result(this) + ) -> *mut super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestCommandStatusResult_Impl::get_Result(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -26808,97 +29782,604 @@ impl IFabricTestCommandStatusResult_Vtbl { iid == &::IID } } -pub trait IFabricTestManagementClient_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricTestCommandStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricTestCommandStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricTestCommandStatusResult {} +windows_core::imp::define_interface!( + IFabricTestManagementClient, + IFabricTestManagementClient_Vtbl, + 0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28 +); +windows_core::imp::interface_hierarchy!(IFabricTestManagementClient, windows_core::IUnknown); +impl IFabricTestManagementClient { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartPartitionDataLoss)( + windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStartPartitionDataLoss)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetPartitionDataLossProgress( + &self, + operationid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionDataLossProgress)( + windows_core::Interface::as_raw(self), + core::mem::transmute(operationid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionDataLossProgress( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionDataLossProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartPartitionQuorumLoss)( + windows_core::Interface::as_raw(self), + invokequorumlossdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStartPartitionQuorumLoss)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionQuorumLossProgress)( + windows_core::Interface::as_raw(self), + core::mem::transmute(operationid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionQuorumLossProgress( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionQuorumLossProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::FabricTypes:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartPartitionRestart)( + windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStartPartitionRestart)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetPartitionRestartProgress( + &self, + operationid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetPartitionRestartProgress)( + windows_core::Interface::as_raw(self), + core::mem::transmute(operationid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetPartitionRestartProgress( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetPartitionRestartProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetTestCommandStatusList)( + windows_core::Interface::as_raw(self), + operationid, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetTestCommandStatusList( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetTestCommandStatusList)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::FabricTypes:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCancelTestCommand)( + windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCancelTestCommand(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndCancelTestCommand)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricTestManagementClient_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartPartitionDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartPartitionDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartPartitionDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartPartitionDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetPartitionDataLossProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetPartitionDataLossProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionDataLossProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionDataLossProgress: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartPartitionQuorumLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartPartitionQuorumLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartPartitionQuorumLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartPartitionQuorumLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetPartitionQuorumLossProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetPartitionQuorumLossProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionQuorumLossProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionQuorumLossProgress: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartPartitionRestart: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartPartitionRestart: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartPartitionRestart: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartPartitionRestart: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetPartitionRestartProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetPartitionRestartProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetPartitionRestartProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetPartitionRestartProgress: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetTestCommandStatusList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetTestCommandStatusList: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetTestCommandStatusList: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetTestCommandStatusList: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginCancelTestCommand: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginCancelTestCommand: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCancelTestCommand: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCancelTestCommand: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricTestManagementClient_Impl: windows_core::IUnknownImpl { fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStartPartitionDataLoss( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetPartitionDataLossProgress( &self, operationid: &windows_core::GUID, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPartitionDataLossProgress( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::FabricTypes:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStartPartitionQuorumLoss( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetPartitionQuorumLossProgress( &self, operationid: &windows_core::GUID, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPartitionQuorumLossProgress( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::FabricTypes:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStartPartitionRestart( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetPartitionRestartProgress( &self, operationid: &windows_core::GUID, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetPartitionRestartProgress( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetTestCommandStatusList( &self, operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetTestCommandStatusList( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginCancelTestCommand( &self, invokedatalossdescription : *const super::FabricTypes:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCancelTestCommand( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricTestManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricTestManagementClient_Vtbl { - pub const fn new( - ) -> IFabricTestManagementClient_Vtbl - where - Identity: IFabricTestManagementClient_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginStartPartitionDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26906,43 +30387,43 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginStartPartitionDataLoss( - this, - core::mem::transmute_copy(&invokedatalossdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginStartPartitionDataLoss( + this, + core::mem::transmute_copy(&invokedatalossdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient_Impl::EndStartPartitionDataLoss( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient_Impl::EndStartPartitionDataLoss( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetPartitionDataLossProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -26950,49 +30431,49 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginGetPartitionDataLossProgress( - this, - core::mem::transmute(&operationid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginGetPartitionDataLossProgress( + this, + core::mem::transmute(&operationid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionDataLossProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::EndGetPartitionDataLossProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::EndGetPartitionDataLossProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginStartPartitionQuorumLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27000,43 +30481,43 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginStartPartitionQuorumLoss( - this, - core::mem::transmute_copy(&invokequorumlossdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginStartPartitionQuorumLoss( + this, + core::mem::transmute_copy(&invokequorumlossdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionQuorumLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient_Impl::EndStartPartitionQuorumLoss( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient_Impl::EndStartPartitionQuorumLoss( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetPartitionQuorumLossProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27044,49 +30525,49 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginGetPartitionQuorumLossProgress( - this, - core::mem::transmute(&operationid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginGetPartitionQuorumLossProgress( + this, + core::mem::transmute(&operationid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionQuorumLossProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::EndGetPartitionQuorumLossProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::EndGetPartitionQuorumLossProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginStartPartitionRestart< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27094,43 +30575,43 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginStartPartitionRestart( - this, - core::mem::transmute_copy(&restartpartitiondescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginStartPartitionRestart( + this, + core::mem::transmute_copy(&restartpartitiondescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionRestart< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient_Impl::EndStartPartitionRestart( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient_Impl::EndStartPartitionRestart( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetPartitionRestartProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27138,49 +30619,49 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginGetPartitionRestartProgress( - this, - core::mem::transmute(&operationid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginGetPartitionRestartProgress( + this, + core::mem::transmute(&operationid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionRestartProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::EndGetPartitionRestartProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::EndGetPartitionRestartProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetTestCommandStatusList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27188,49 +30669,49 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginGetTestCommandStatusList( - this, - core::mem::transmute_copy(&operationid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginGetTestCommandStatusList( + this, + core::mem::transmute_copy(&operationid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetTestCommandStatusList< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::EndGetTestCommandStatusList( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::EndGetTestCommandStatusList( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginCancelTestCommand< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27238,40 +30719,40 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient_Impl::BeginCancelTestCommand( - this, - core::mem::transmute_copy(&invokedatalossdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient_Impl::BeginCancelTestCommand( + this, + core::mem::transmute_copy(&invokedatalossdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCancelTestCommand< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient_Impl::EndCancelTestCommand( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient_Impl::EndCancelTestCommand( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -27300,46 +30781,263 @@ impl IFabricTestManagementClient_Vtbl { iid == &::IID } } -pub trait IFabricTestManagementClient2_Impl: Sized + IFabricTestManagementClient_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricTestManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricTestManagementClient {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricTestManagementClient {} +windows_core::imp::define_interface!( + IFabricTestManagementClient2, + IFabricTestManagementClient2_Vtbl, + 0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a +); +impl core::ops::Deref for IFabricTestManagementClient2 { + type Target = IFabricTestManagementClient; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient2, + windows_core::IUnknown, + IFabricTestManagementClient +); +impl IFabricTestManagementClient2 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartChaos( + &self, + restartpartitiondescription: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartChaos)( + windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartChaos(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStartChaos)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginStopChaos( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStopChaos)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStopChaos(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStopChaos)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetChaosReport( + &self, + getchaosreportdescription: *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetChaosReport)( + windows_core::Interface::as_raw(self), + getchaosreportdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetChaosReport( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetChaosReport)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricTestManagementClient2_Vtbl { + pub base__: IFabricTestManagementClient_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartChaos: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartChaos: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginStopChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginStopChaos: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStopChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStopChaos: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetChaosReport: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetChaosReport: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetChaosReport: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetChaosReport: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricTestManagementClient2_Impl: IFabricTestManagementClient_Impl { fn BeginStartChaos( &self, restartpartitiondescription: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStartChaos( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginStopChaos( &self, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStopChaos( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetChaosReport( &self, getchaosreportdescription: *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetChaosReport( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricTestManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricTestManagementClient2_Vtbl { - pub const fn new( - ) -> IFabricTestManagementClient2_Vtbl - where - Identity: IFabricTestManagementClient2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginStartChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27347,85 +31045,85 @@ impl IFabricTestManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient2_Impl::BeginStartChaos( - this, - core::mem::transmute_copy(&restartpartitiondescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient2_Impl::BeginStartChaos( + this, + core::mem::transmute_copy(&restartpartitiondescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStartChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient2_Impl::EndStartChaos( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient2_Impl::EndStartChaos( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginStopChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient2_Impl::BeginStopChaos( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient2_Impl::BeginStopChaos( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStopChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient2_Impl::EndStopChaos( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient2_Impl::EndStopChaos( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetChaosReport< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27433,45 +31131,45 @@ impl IFabricTestManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient2_Impl::BeginGetChaosReport( - this, - core::mem::transmute_copy(&getchaosreportdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient2_Impl::BeginGetChaosReport( + this, + core::mem::transmute_copy(&getchaosreportdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosReport< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient2_Impl::EndGetChaosReport( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient2_Impl::EndGetChaosReport( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -27489,37 +31187,197 @@ impl IFabricTestManagementClient2_Vtbl { || iid == &::IID } } -pub trait IFabricTestManagementClient3_Impl: Sized + IFabricTestManagementClient2_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricTestManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricTestManagementClient2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricTestManagementClient2 {} +windows_core::imp::define_interface!( + IFabricTestManagementClient3, + IFabricTestManagementClient3_Vtbl, + 0xa4b94afd_0cb5_4010_8995_e58e9b6ca373 +); +impl core::ops::Deref for IFabricTestManagementClient3 { + type Target = IFabricTestManagementClient2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient3, + windows_core::IUnknown, + IFabricTestManagementClient, + IFabricTestManagementClient2 +); +impl IFabricTestManagementClient3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginStartNodeTransition( + &self, + description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginStartNodeTransition)( + windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndStartNodeTransition(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndStartNodeTransition)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetNodeTransitionProgress( + &self, + operationid: windows_core::GUID, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNodeTransitionProgress)( + windows_core::Interface::as_raw(self), + core::mem::transmute(operationid), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNodeTransitionProgress( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNodeTransitionProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricTestManagementClient3_Vtbl { + pub base__: IFabricTestManagementClient2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginStartNodeTransition: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginStartNodeTransition: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndStartNodeTransition: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndStartNodeTransition: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetNodeTransitionProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::GUID, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetNodeTransitionProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNodeTransitionProgress: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNodeTransitionProgress: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricTestManagementClient3_Impl: IFabricTestManagementClient2_Impl { fn BeginStartNodeTransition( &self, description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndStartNodeTransition( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetNodeTransitionProgress( &self, operationid: &windows_core::GUID, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetNodeTransitionProgress( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricTestManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricTestManagementClient3_Vtbl { - pub const fn new( - ) -> IFabricTestManagementClient3_Vtbl - where - Identity: IFabricTestManagementClient3_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginStartNodeTransition< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27527,43 +31385,43 @@ impl IFabricTestManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient3_Impl::BeginStartNodeTransition( - this, - core::mem::transmute_copy(&description), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient3_Impl::BeginStartNodeTransition( + this, + core::mem::transmute_copy(&description), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndStartNodeTransition< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient3_Impl::EndStartNodeTransition( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient3_Impl::EndStartNodeTransition( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetNodeTransitionProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27571,45 +31429,45 @@ impl IFabricTestManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient3_Impl::BeginGetNodeTransitionProgress( - this, - core::mem::transmute(&operationid), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient3_Impl::BeginGetNodeTransitionProgress( + this, + core::mem::transmute(&operationid), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeTransitionProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient3_Impl::EndGetNodeTransitionProgress( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient3_Impl::EndGetNodeTransitionProgress( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -27626,151 +31484,431 @@ impl IFabricTestManagementClient3_Vtbl { || iid == &::IID } } -pub trait IFabricTestManagementClient4_Impl: Sized + IFabricTestManagementClient3_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricTestManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricTestManagementClient3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricTestManagementClient3 {} +windows_core::imp::define_interface!( + IFabricTestManagementClient4, + IFabricTestManagementClient4_Vtbl, + 0xb96aa7d4_acc0_4814_89dc_561b0cbb6028 +); +impl core::ops::Deref for IFabricTestManagementClient4 { + type Target = IFabricTestManagementClient3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient4, + windows_core::IUnknown, + IFabricTestManagementClient, + IFabricTestManagementClient2, + IFabricTestManagementClient3 +); +impl IFabricTestManagementClient4 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetChaos( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetChaos)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetChaos( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetChaos)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetChaosSchedule( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetChaosSchedule)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetChaosSchedule( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetChaosSchedule)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginSetChaosSchedule( + &self, + setchaosscheduledescription : *const super::FabricTypes:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginSetChaosSchedule)( + windows_core::Interface::as_raw(self), + setchaosscheduledescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndSetChaosSchedule(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndSetChaosSchedule)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginGetChaosEvents( + &self, + chaoseventsdescription: *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetChaosEvents)( + windows_core::Interface::as_raw(self), + chaoseventsdescription, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetChaosEvents( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetChaosEvents)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricTestManagementClient4_Vtbl { + pub base__: IFabricTestManagementClient3_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetChaos: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetChaos: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetChaos: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetChaosSchedule: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetChaosSchedule: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetChaosSchedule: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetChaosSchedule: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginSetChaosSchedule: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginSetChaosSchedule: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndSetChaosSchedule: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndSetChaosSchedule: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginGetChaosEvents: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginGetChaosEvents: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetChaosEvents: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetChaosEvents: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricTestManagementClient4_Impl: IFabricTestManagementClient3_Impl { fn BeginGetChaos( &self, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetChaos( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginGetChaosSchedule( &self, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetChaosSchedule( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginSetChaosSchedule( &self, setchaosscheduledescription : *const super::FabricTypes:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndSetChaosSchedule( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginGetChaosEvents( &self, chaoseventsdescription: *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetChaosEvents( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricTestManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricTestManagementClient4_Vtbl { - pub const fn new( - ) -> IFabricTestManagementClient4_Vtbl - where - Identity: IFabricTestManagementClient4_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::BeginGetChaos( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::BeginGetChaos( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaos< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::EndGetChaos( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::EndGetChaos( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginGetChaosSchedule< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::BeginGetChaosSchedule( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::BeginGetChaosSchedule( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosSchedule< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::EndGetChaosSchedule( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::EndGetChaosSchedule( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginSetChaosSchedule< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27778,43 +31916,43 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::BeginSetChaosSchedule( - this, - core::mem::transmute_copy(&setchaosscheduledescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::BeginSetChaosSchedule( + this, + core::mem::transmute_copy(&setchaosscheduledescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndSetChaosSchedule< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTestManagementClient4_Impl::EndSetChaosSchedule( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTestManagementClient4_Impl::EndSetChaosSchedule( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn BeginGetChaosEvents< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27822,45 +31960,45 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::BeginGetChaosEvents( - this, - core::mem::transmute_copy(&chaoseventsdescription), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::BeginGetChaosEvents( + this, + core::mem::transmute_copy(&chaoseventsdescription), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosEvents< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTestManagementClient4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTestManagementClient4_Impl::EndGetChaosEvents( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTestManagementClient4_Impl::EndGetChaosEvents( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -27882,27 +32020,63 @@ impl IFabricTestManagementClient4_Vtbl { || iid == &::IID } } -pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricTestManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricTestManagementClient4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricTestManagementClient4 {} +windows_core::imp::define_interface!( + IFabricUpgradeOrchestrationServiceStateResult, + IFabricUpgradeOrchestrationServiceStateResult_Vtbl, + 0x413968aa_2eb7_4023_b9dc_0f2160b76a6d +); +windows_core::imp::interface_hierarchy!( + IFabricUpgradeOrchestrationServiceStateResult, + windows_core::IUnknown +); +impl IFabricUpgradeOrchestrationServiceStateResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_State( + &self, + ) -> *mut super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + unsafe { + (windows_core::Interface::vtable(self).get_State)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_State :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_State :usize , } +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: windows_core::IUnknownImpl { fn get_State(&self) -> *mut super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE; } -impl windows_core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { - pub const fn new( - ) -> IFabricUpgradeOrchestrationServiceStateResult_Vtbl - where + pub const fn new< Identity: IFabricUpgradeOrchestrationServiceStateResult_Impl, - { + const OFFSET: isize, + >() -> Self { unsafe extern "system" fn get_State< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeOrchestrationServiceStateResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE - where - Identity: IFabricUpgradeOrchestrationServiceStateResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeOrchestrationServiceStateResult_Impl::get_State(this) + ) -> *mut super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeOrchestrationServiceStateResult_Impl::get_State(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -27913,7 +32087,112 @@ impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { iid == &::IID } } -pub trait IFabricUpgradeProgressResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricUpgradeOrchestrationServiceStateResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricUpgradeOrchestrationServiceStateResult {} +windows_core::imp::define_interface!( + IFabricUpgradeProgressResult, + IFabricUpgradeProgressResult_Vtbl, + 0x2adb07db_f7db_4621_9afc_daabe1e53bf8 +); +windows_core::imp::interface_hierarchy!(IFabricUpgradeProgressResult, windows_core::IUnknown); +impl IFabricUpgradeProgressResult { + pub unsafe fn get_TargetCodeVersion(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_TargetCodeVersion)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_TargetConfigVersion(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_TargetConfigVersion)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_UPGRADE_STATE { + unsafe { + (windows_core::Interface::vtable(self).get_UpgradeState)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetUpgradeDomains)( + windows_core::Interface::as_raw(self), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION> + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + windows_core::Interface::as_raw(self), + previousprogress.param().abi(), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricUpgradeProgressResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub get_TargetCodeVersion: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + pub get_TargetConfigVersion: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_UpgradeState: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> super::FabricTypes::FABRIC_UPGRADE_STATE, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_UpgradeState: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetUpgradeDomains: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetUpgradeDomains: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetChangedUpgradeDomains: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetChangedUpgradeDomains: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricUpgradeProgressResult_Impl: windows_core::IUnknownImpl { fn get_TargetCodeVersion(&self) -> windows_core::PCWSTR; fn get_TargetConfigVersion(&self) -> windows_core::PCWSTR; fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_UPGRADE_STATE; @@ -27923,99 +32202,95 @@ pub trait IFabricUpgradeProgressResult_Impl: Sized { ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; fn GetChangedUpgradeDomains( &self, - previousprogress: Option<&IFabricUpgradeProgressResult>, + previousprogress: windows_core::Ref<'_, IFabricUpgradeProgressResult>, itemcount: *mut u32, ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>; } -impl windows_core::RuntimeName for IFabricUpgradeProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricUpgradeProgressResult_Vtbl { - pub const fn new( - ) -> IFabricUpgradeProgressResult_Vtbl - where - Identity: IFabricUpgradeProgressResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_TargetCodeVersion< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult_Impl::get_TargetCodeVersion(this) + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult_Impl::get_TargetCodeVersion(this) + } } unsafe extern "system" fn get_TargetConfigVersion< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult_Impl::get_TargetConfigVersion(this) + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult_Impl::get_TargetConfigVersion(this) + } } unsafe extern "system" fn get_UpgradeState< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_UPGRADE_STATE - where - Identity: IFabricUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult_Impl::get_UpgradeState(this) + ) -> super::FabricTypes::FABRIC_UPGRADE_STATE { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult_Impl::get_UpgradeState(this) + } } unsafe extern "system" fn GetUpgradeDomains< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT - where - Identity: IFabricUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricUpgradeProgressResult_Impl::GetUpgradeDomains( - this, - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricUpgradeProgressResult_Impl::GetUpgradeDomains( + this, + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, previousprogress: *mut core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> windows_core::HRESULT - where - Identity: IFabricUpgradeProgressResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricUpgradeProgressResult_Impl::GetChangedUpgradeDomains( - this, - windows_core::from_raw_borrowed(&previousprogress), - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricUpgradeProgressResult_Impl::GetChangedUpgradeDomains( + this, + core::mem::transmute_copy(&previousprogress), + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -28031,40 +32306,89 @@ impl IFabricUpgradeProgressResult_Vtbl { iid == &::IID } } -pub trait IFabricUpgradeProgressResult2_Impl: Sized + IFabricUpgradeProgressResult_Impl { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricUpgradeProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricUpgradeProgressResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricUpgradeProgressResult {} +windows_core::imp::define_interface!( + IFabricUpgradeProgressResult2, + IFabricUpgradeProgressResult2_Vtbl, + 0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75 +); +impl core::ops::Deref for IFabricUpgradeProgressResult2 { + type Target = IFabricUpgradeProgressResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricUpgradeProgressResult2, + windows_core::IUnknown, + IFabricUpgradeProgressResult +); +impl IFabricUpgradeProgressResult2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { + unsafe { + (windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_NextUpgradeDomain)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricUpgradeProgressResult2_Vtbl { + pub base__: IFabricUpgradeProgressResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_RollingUpgradeMode: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_RollingUpgradeMode: usize, + pub get_NextUpgradeDomain: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricUpgradeProgressResult2_Impl: IFabricUpgradeProgressResult_Impl { fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE; fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR; } -impl windows_core::RuntimeName for IFabricUpgradeProgressResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricUpgradeProgressResult2_Vtbl { - pub const fn new( - ) -> IFabricUpgradeProgressResult2_Vtbl - where - Identity: IFabricUpgradeProgressResult2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_RollingUpgradeMode< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE - where - Identity: IFabricUpgradeProgressResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this) + ) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this) + } } unsafe extern "system" fn get_NextUpgradeDomain< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricUpgradeProgressResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this) + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this) + } } Self { base__: IFabricUpgradeProgressResult_Vtbl::new::(), @@ -28077,27 +32401,68 @@ impl IFabricUpgradeProgressResult2_Vtbl { || iid == &::IID } } -pub trait IFabricUpgradeProgressResult3_Impl: Sized + IFabricUpgradeProgressResult2_Impl { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricUpgradeProgressResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricUpgradeProgressResult2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricUpgradeProgressResult2 {} +windows_core::imp::define_interface!( + IFabricUpgradeProgressResult3, + IFabricUpgradeProgressResult3_Vtbl, + 0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47 +); +impl core::ops::Deref for IFabricUpgradeProgressResult3 { + type Target = IFabricUpgradeProgressResult2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricUpgradeProgressResult3, + windows_core::IUnknown, + IFabricUpgradeProgressResult, + IFabricUpgradeProgressResult2 +); +impl IFabricUpgradeProgressResult3 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_UpgradeProgress(&self) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS { + unsafe { + (windows_core::Interface::vtable(self).get_UpgradeProgress)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricUpgradeProgressResult3_Vtbl { + pub base__: IFabricUpgradeProgressResult2_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_UpgradeProgress: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_UpgradeProgress: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricUpgradeProgressResult3_Impl: IFabricUpgradeProgressResult2_Impl { fn get_UpgradeProgress(&self) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS; } -impl windows_core::RuntimeName for IFabricUpgradeProgressResult3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricUpgradeProgressResult3_Vtbl { - pub const fn new( - ) -> IFabricUpgradeProgressResult3_Vtbl - where - Identity: IFabricUpgradeProgressResult3_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_UpgradeProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricUpgradeProgressResult3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS - where - Identity: IFabricUpgradeProgressResult3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricUpgradeProgressResult3_Impl::get_UpgradeProgress(this) + ) -> *mut super::FabricTypes::FABRIC_UPGRADE_PROGRESS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricUpgradeProgressResult3_Impl::get_UpgradeProgress(this) + } } Self { base__: IFabricUpgradeProgressResult2_Vtbl::new::(), @@ -28110,3 +32475,9 @@ impl IFabricUpgradeProgressResult3_Vtbl { || iid == &::IID } } +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricUpgradeProgressResult3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricUpgradeProgressResult3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricUpgradeProgressResult3 {} diff --git a/crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs index c9bf1385..5fca361b 100644 --- a/crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs +++ b/crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs @@ -1,284 +1,173 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 -#![allow( - non_snake_case, - non_upper_case_globals, - non_camel_case_types, - dead_code, - clippy::all -)] windows_core::imp::define_interface!( IFabricAsyncOperationCallback, IFabricAsyncOperationCallback_Vtbl, 0x86f08d7e_14dd_4575_8489_b1d5d679029c ); -impl core::ops::Deref for IFabricAsyncOperationCallback { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricAsyncOperationCallback, windows_core::IUnknown); impl IFabricAsyncOperationCallback { pub unsafe fn Invoke(&self, context: P0) where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).Invoke)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) + unsafe { + (windows_core::Interface::vtable(self).Invoke)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + } } } -unsafe impl Send for IFabricAsyncOperationCallback {} -unsafe impl Sync for IFabricAsyncOperationCallback {} #[repr(C)] pub struct IFabricAsyncOperationCallback_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void), } +pub trait IFabricAsyncOperationCallback_Impl: windows_core::IUnknownImpl { + fn Invoke(&self, context: windows_core::Ref<'_, IFabricAsyncOperationContext>); +} +impl IFabricAsyncOperationCallback_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn Invoke< + Identity: IFabricAsyncOperationCallback_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAsyncOperationCallback_Impl::Invoke( + this, + core::mem::transmute_copy(&context), + ) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + Invoke: Invoke::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricAsyncOperationCallback {} +unsafe impl Send for IFabricAsyncOperationCallback {} +unsafe impl Sync for IFabricAsyncOperationCallback {} windows_core::imp::define_interface!( IFabricAsyncOperationContext, IFabricAsyncOperationContext_Vtbl, 0x841720bf_c9e8_4e6f_9c3f_6b7f4ac73bcd ); -impl core::ops::Deref for IFabricAsyncOperationContext { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricAsyncOperationContext, windows_core::IUnknown); impl IFabricAsyncOperationContext { - pub unsafe fn IsCompleted(&self) -> windows::Win32::Foundation::BOOLEAN { - (windows_core::Interface::vtable(self).IsCompleted)(windows_core::Interface::as_raw(self)) + pub unsafe fn IsCompleted(&self) -> bool { + unsafe { + (windows_core::Interface::vtable(self).IsCompleted)(windows_core::Interface::as_raw( + self, + )) + } } - pub unsafe fn CompletedSynchronously(&self) -> windows::Win32::Foundation::BOOLEAN { - (windows_core::Interface::vtable(self).CompletedSynchronously)( - windows_core::Interface::as_raw(self), - ) + pub unsafe fn CompletedSynchronously(&self) -> bool { + unsafe { + (windows_core::Interface::vtable(self).CompletedSynchronously)( + windows_core::Interface::as_raw(self), + ) + } } pub unsafe fn Callback(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Callback)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).Callback)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } pub unsafe fn Cancel(&self) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)).ok() + unsafe { + (windows_core::Interface::vtable(self).Cancel)(windows_core::Interface::as_raw(self)) + .ok() + } } } -unsafe impl Send for IFabricAsyncOperationContext {} -unsafe impl Sync for IFabricAsyncOperationContext {} #[repr(C)] pub struct IFabricAsyncOperationContext_Vtbl { pub base__: windows_core::IUnknown_Vtbl, - pub IsCompleted: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows::Win32::Foundation::BOOLEAN, - pub CompletedSynchronously: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows::Win32::Foundation::BOOLEAN, + pub IsCompleted: unsafe extern "system" fn(*mut core::ffi::c_void) -> bool, + pub CompletedSynchronously: unsafe extern "system" fn(*mut core::ffi::c_void) -> bool, pub Callback: unsafe extern "system" fn( *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, pub Cancel: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } -windows_core::imp::define_interface!( - IFabricGetReplicatorStatusResult, - IFabricGetReplicatorStatusResult_Vtbl, - 0x30e10c61_a710_4f99_a623_bb1403265186 -); -impl core::ops::Deref for IFabricGetReplicatorStatusResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricGetReplicatorStatusResult, windows_core::IUnknown); -impl IFabricGetReplicatorStatusResult { - pub unsafe fn get_ReplicatorStatus( - &self, - ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - (windows_core::Interface::vtable(self).get_ReplicatorStatus)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricGetReplicatorStatusResult {} -unsafe impl Sync for IFabricGetReplicatorStatusResult {} -#[repr(C)] -pub struct IFabricGetReplicatorStatusResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ReplicatorStatus: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT, -} -windows_core::imp::define_interface!( - IFabricStringListResult, - IFabricStringListResult_Vtbl, - 0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9 -); -impl core::ops::Deref for IFabricStringListResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStringListResult, windows_core::IUnknown); -impl IFabricStringListResult { - pub unsafe fn GetStrings( - &self, - itemcount: *mut u32, - ) -> windows_core::Result<*mut windows_core::PCWSTR> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetStrings)( - windows_core::Interface::as_raw(self), - itemcount, - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricStringListResult {} -unsafe impl Sync for IFabricStringListResult {} -#[repr(C)] -pub struct IFabricStringListResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub GetStrings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut windows_core::PCWSTR, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStringResult, - IFabricStringResult_Vtbl, - 0x4ae69614_7d0f_4cd4_b836_23017000d132 -); -impl core::ops::Deref for IFabricStringResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStringResult, windows_core::IUnknown); -impl IFabricStringResult { - pub unsafe fn get_String(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_String)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStringResult {} -unsafe impl Sync for IFabricStringResult {} -#[repr(C)] -pub struct IFabricStringResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_String: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, -} -pub trait IFabricAsyncOperationCallback_Impl: Sized { - fn Invoke(&self, context: Option<&IFabricAsyncOperationContext>); -} -impl windows_core::RuntimeName for IFabricAsyncOperationCallback {} -impl IFabricAsyncOperationCallback_Vtbl { - pub const fn new( - ) -> IFabricAsyncOperationCallback_Vtbl - where - Identity: IFabricAsyncOperationCallback_Impl, - { - unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) where - Identity: IFabricAsyncOperationCallback_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAsyncOperationCallback_Impl::Invoke( - this, - windows_core::from_raw_borrowed(&context), - ) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricAsyncOperationContext_Impl: Sized { - fn IsCompleted(&self) -> windows::Win32::Foundation::BOOLEAN; - fn CompletedSynchronously(&self) -> windows::Win32::Foundation::BOOLEAN; +pub trait IFabricAsyncOperationContext_Impl: windows_core::IUnknownImpl { + fn IsCompleted(&self) -> bool; + fn CompletedSynchronously(&self) -> bool; fn Callback(&self) -> windows_core::Result; fn Cancel(&self) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricAsyncOperationContext {} impl IFabricAsyncOperationContext_Vtbl { - pub const fn new( - ) -> IFabricAsyncOperationContext_Vtbl - where - Identity: IFabricAsyncOperationContext_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn IsCompleted< - Identity: windows_core::IUnknownImpl, + Identity: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows::Win32::Foundation::BOOLEAN - where - Identity: IFabricAsyncOperationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAsyncOperationContext_Impl::IsCompleted(this) + ) -> bool { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAsyncOperationContext_Impl::IsCompleted(this) + } } unsafe extern "system" fn CompletedSynchronously< - Identity: windows_core::IUnknownImpl, + Identity: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows::Win32::Foundation::BOOLEAN - where - Identity: IFabricAsyncOperationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAsyncOperationContext_Impl::CompletedSynchronously(this) + ) -> bool { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAsyncOperationContext_Impl::CompletedSynchronously(this) + } } unsafe extern "system" fn Callback< - Identity: windows_core::IUnknownImpl, + Identity: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAsyncOperationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAsyncOperationContext_Impl::Callback(this) { - Ok(ok__) => { - callback.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAsyncOperationContext_Impl::Callback(this) { + Ok(ok__) => { + callback.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, + Identity: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAsyncOperationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAsyncOperationContext_Impl::Cancel(this).into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAsyncOperationContext_Impl::Cancel(this).into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -292,29 +181,60 @@ impl IFabricAsyncOperationContext_Vtbl { iid == &::IID } } -pub trait IFabricGetReplicatorStatusResult_Impl: Sized { +impl windows_core::RuntimeName for IFabricAsyncOperationContext {} +unsafe impl Send for IFabricAsyncOperationContext {} +unsafe impl Sync for IFabricAsyncOperationContext {} +windows_core::imp::define_interface!( + IFabricGetReplicatorStatusResult, + IFabricGetReplicatorStatusResult_Vtbl, + 0x30e10c61_a710_4f99_a623_bb1403265186 +); +windows_core::imp::interface_hierarchy!(IFabricGetReplicatorStatusResult, windows_core::IUnknown); +impl IFabricGetReplicatorStatusResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicatorStatus( + &self, + ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicatorStatus)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricGetReplicatorStatusResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ReplicatorStatus: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ReplicatorStatus: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricGetReplicatorStatusResult_Impl: windows_core::IUnknownImpl { fn get_ReplicatorStatus( &self, ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT; } -impl windows_core::RuntimeName for IFabricGetReplicatorStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricGetReplicatorStatusResult_Vtbl { - pub const fn new( - ) -> IFabricGetReplicatorStatusResult_Vtbl - where - Identity: IFabricGetReplicatorStatusResult_Impl, + pub const fn new() -> Self { unsafe extern "system" fn get_ReplicatorStatus< - Identity: windows_core::IUnknownImpl, + Identity: IFabricGetReplicatorStatusResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT - where - Identity: IFabricGetReplicatorStatusResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricGetReplicatorStatusResult_Impl::get_ReplicatorStatus(this) + ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricGetReplicatorStatusResult_Impl::get_ReplicatorStatus(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -325,37 +245,69 @@ impl IFabricGetReplicatorStatusResult_Vtbl { iid == &::IID } } -pub trait IFabricStringListResult_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricGetReplicatorStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricGetReplicatorStatusResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricGetReplicatorStatusResult {} +windows_core::imp::define_interface!( + IFabricStringListResult, + IFabricStringListResult_Vtbl, + 0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9 +); +windows_core::imp::interface_hierarchy!(IFabricStringListResult, windows_core::IUnknown); +impl IFabricStringListResult { + pub unsafe fn GetStrings( + &self, + itemcount: *mut u32, + ) -> windows_core::Result<*mut windows_core::PCWSTR> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetStrings)( + windows_core::Interface::as_raw(self), + itemcount as _, + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricStringListResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub GetStrings: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut windows_core::PCWSTR, + ) -> windows_core::HRESULT, +} +pub trait IFabricStringListResult_Impl: windows_core::IUnknownImpl { fn GetStrings(&self, itemcount: *mut u32) -> windows_core::Result<*mut windows_core::PCWSTR>; } -impl windows_core::RuntimeName for IFabricStringListResult {} impl IFabricStringListResult_Vtbl { - pub const fn new( - ) -> IFabricStringListResult_Vtbl - where - Identity: IFabricStringListResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn GetStrings< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStringListResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricStringListResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStringListResult_Impl::GetStrings( - this, - core::mem::transmute_copy(&itemcount), - ) { - Ok(ok__) => { - buffereditems.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStringListResult_Impl::GetStrings( + this, + core::mem::transmute_copy(&itemcount), + ) { + Ok(ok__) => { + buffereditems.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -367,27 +319,45 @@ impl IFabricStringListResult_Vtbl { iid == &::IID } } -pub trait IFabricStringResult_Impl: Sized { +impl windows_core::RuntimeName for IFabricStringListResult {} +unsafe impl Send for IFabricStringListResult {} +unsafe impl Sync for IFabricStringListResult {} +windows_core::imp::define_interface!( + IFabricStringResult, + IFabricStringResult_Vtbl, + 0x4ae69614_7d0f_4cd4_b836_23017000d132 +); +windows_core::imp::interface_hierarchy!(IFabricStringResult, windows_core::IUnknown); +impl IFabricStringResult { + pub unsafe fn get_String(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_String)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricStringResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub get_String: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +pub trait IFabricStringResult_Impl: windows_core::IUnknownImpl { fn get_String(&self) -> windows_core::PCWSTR; } -impl windows_core::RuntimeName for IFabricStringResult {} impl IFabricStringResult_Vtbl { - pub const fn new( - ) -> IFabricStringResult_Vtbl - where - Identity: IFabricStringResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_String< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStringResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricStringResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStringResult_Impl::get_String(this) + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStringResult_Impl::get_String(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -398,3 +368,6 @@ impl IFabricStringResult_Vtbl { iid == &::IID } } +impl windows_core::RuntimeName for IFabricStringResult {} +unsafe impl Send for IFabricStringResult {} +unsafe impl Sync for IFabricStringResult {} diff --git a/crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs index 60064cf4..f3dace96 100644 --- a/crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs +++ b/crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs @@ -1,116 +1,128 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 -#![allow( - non_snake_case, - non_upper_case_globals, - non_camel_case_types, - dead_code, - clippy::all -)] +pub const FabricRuntime: windows_core::GUID = + windows_core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); +pub type FnFabricMain = Option< + unsafe extern "system" fn( + runtime: Option, + activationcontext: Option, + ) -> windows_core::HRESULT, +>; windows_core::imp::define_interface!( IFabricAtomicGroupStateProvider, IFabricAtomicGroupStateProvider_Vtbl, 0x2b670953_6148_4f7d_a920_b390de43d913 ); -impl core::ops::Deref for IFabricAtomicGroupStateProvider { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricAtomicGroupStateProvider, windows_core::IUnknown); impl IFabricAtomicGroupStateProvider { - pub unsafe fn BeginAtomicGroupCommit( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginAtomicGroupCommit( &self, atomicgroupid: i64, commitsequencenumber: i64, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginAtomicGroupCommit)( - windows_core::Interface::as_raw(self), - atomicgroupid, - commitsequencenumber, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginAtomicGroupCommit)( + windows_core::Interface::as_raw(self), + atomicgroupid, + commitsequencenumber, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndAtomicGroupCommit(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndAtomicGroupCommit)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndAtomicGroupCommit)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginAtomicGroupRollback( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginAtomicGroupRollback( &self, atomicgroupid: i64, rollbackequencenumber: i64, - callback: P0, + callback: P2, ) -> windows_core::Result where - P0: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginAtomicGroupRollback)( - windows_core::Interface::as_raw(self), - atomicgroupid, - rollbackequencenumber, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginAtomicGroupRollback)( + windows_core::Interface::as_raw(self), + atomicgroupid, + rollbackequencenumber, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndAtomicGroupRollback(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndAtomicGroupRollback)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndAtomicGroupRollback)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } - pub unsafe fn BeginUndoProgress( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginUndoProgress( &self, fromcommitsequencenumber: i64, - callback: P0, + callback: P1, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUndoProgress)( - windows_core::Interface::as_raw(self), - fromcommitsequencenumber, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUndoProgress)( + windows_core::Interface::as_raw(self), + fromcommitsequencenumber, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndUndoProgress(&self, context: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - (windows_core::Interface::vtable(self).EndUndoProgress)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).EndUndoProgress)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } } -unsafe impl Send for IFabricAtomicGroupStateProvider {} -unsafe impl Sync for IFabricAtomicGroupStateProvider {} #[repr(C)] pub struct IFabricAtomicGroupStateProvider_Vtbl { pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginAtomicGroupCommit: unsafe extern "system" fn( *mut core::ffi::c_void, i64, @@ -118,10 +130,16 @@ pub struct IFabricAtomicGroupStateProvider_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginAtomicGroupCommit: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndAtomicGroupCommit: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndAtomicGroupCommit: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginAtomicGroupRollback: unsafe extern "system" fn( *mut core::ffi::c_void, i64, @@ -129,64 +147,261 @@ pub struct IFabricAtomicGroupStateProvider_Vtbl { *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginAtomicGroupRollback: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndAtomicGroupRollback: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndAtomicGroupRollback: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginUndoProgress: unsafe extern "system" fn( *mut core::ffi::c_void, i64, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginUndoProgress: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndUndoProgress: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUndoProgress: usize, +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricAtomicGroupStateProvider_Impl: windows_core::IUnknownImpl { + fn BeginAtomicGroupCommit( + &self, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndAtomicGroupCommit( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginAtomicGroupRollback( + &self, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndAtomicGroupRollback( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginUndoProgress( + &self, + fromcommitsequencenumber: i64, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndUndoProgress( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl IFabricAtomicGroupStateProvider_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn BeginAtomicGroupCommit< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateProvider_Impl::BeginAtomicGroupCommit( + this, + core::mem::transmute_copy(&atomicgroupid), + core::mem::transmute_copy(&commitsequencenumber), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndAtomicGroupCommit< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAtomicGroupStateProvider_Impl::EndAtomicGroupCommit( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginAtomicGroupRollback< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateProvider_Impl::BeginAtomicGroupRollback( + this, + core::mem::transmute_copy(&atomicgroupid), + core::mem::transmute_copy(&rollbackequencenumber), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndAtomicGroupRollback< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAtomicGroupStateProvider_Impl::EndAtomicGroupRollback( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + unsafe extern "system" fn BeginUndoProgress< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + fromcommitsequencenumber: i64, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateProvider_Impl::BeginUndoProgress( + this, + core::mem::transmute_copy(&fromcommitsequencenumber), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndUndoProgress< + Identity: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricAtomicGroupStateProvider_Impl::EndUndoProgress( + this, + core::mem::transmute_copy(&context), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginAtomicGroupCommit: BeginAtomicGroupCommit::, + EndAtomicGroupCommit: EndAtomicGroupCommit::, + BeginAtomicGroupRollback: BeginAtomicGroupRollback::, + EndAtomicGroupRollback: EndAtomicGroupRollback::, + BeginUndoProgress: BeginUndoProgress::, + EndUndoProgress: EndUndoProgress::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } } +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricAtomicGroupStateProvider {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricAtomicGroupStateProvider {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricAtomicGroupStateProvider {} windows_core::imp::define_interface!( IFabricAtomicGroupStateReplicator, IFabricAtomicGroupStateReplicator_Vtbl, 0x80d2155c_4fc2_4fde_9696_c2f39b471c3d ); -impl core::ops::Deref for IFabricAtomicGroupStateReplicator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!(IFabricAtomicGroupStateReplicator, windows_core::IUnknown); impl IFabricAtomicGroupStateReplicator { pub unsafe fn CreateAtomicGroup(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateAtomicGroup)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateAtomicGroup)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } } - pub unsafe fn BeginReplicateAtomicGroupOperation( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginReplicateAtomicGroupOperation( &self, atomicgroupid: i64, - operationdata: P0, - callback: P1, + operationdata: P1, + callback: P2, operationsequencenumber: *mut i64, ) -> windows_core::Result where - P0: windows_core::Param, - P1: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupOperation)( - windows_core::Interface::as_raw(self), - atomicgroupid, - operationdata.param().abi(), - callback.param().abi(), - operationsequencenumber, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupOperation)( + windows_core::Interface::as_raw(self), + atomicgroupid, + operationdata.param().abi(), + callback.param().abi(), + operationsequencenumber as _, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndReplicateAtomicGroupOperation( &self, context: P0, @@ -194,64 +409,76 @@ impl IFabricAtomicGroupStateReplicator { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndReplicateAtomicGroupOperation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndReplicateAtomicGroupOperation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } } - pub unsafe fn BeginReplicateAtomicGroupCommit( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginReplicateAtomicGroupCommit( &self, atomicgroupid: i64, - callback: P0, + callback: P1, commitsequencenumber: *mut i64, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupCommit)( - windows_core::Interface::as_raw(self), - atomicgroupid, - callback.param().abi(), - commitsequencenumber, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupCommit)( + windows_core::Interface::as_raw(self), + atomicgroupid, + callback.param().abi(), + commitsequencenumber as _, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndReplicateAtomicGroupCommit(&self, context: P0) -> windows_core::Result where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndReplicateAtomicGroupCommit)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndReplicateAtomicGroupCommit)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } } - pub unsafe fn BeginReplicateAtomicGroupRollback( + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginReplicateAtomicGroupRollback( &self, atomicgroupid: i64, - callback: P0, + callback: P1, rollbacksequencenumber: *mut i64, ) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupRollback)( - windows_core::Interface::as_raw(self), - atomicgroupid, - callback.param().abi(), - rollbacksequencenumber, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginReplicateAtomicGroupRollback)( + windows_core::Interface::as_raw(self), + atomicgroupid, + callback.param().abi(), + rollbacksequencenumber as _, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn EndReplicateAtomicGroupRollback( &self, context: P0, @@ -259,22 +486,23 @@ impl IFabricAtomicGroupStateReplicator { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndReplicateAtomicGroupRollback)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndReplicateAtomicGroupRollback)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } } } -unsafe impl Send for IFabricAtomicGroupStateReplicator {} -unsafe impl Sync for IFabricAtomicGroupStateReplicator {} #[repr(C)] pub struct IFabricAtomicGroupStateReplicator_Vtbl { pub base__: windows_core::IUnknown_Vtbl, pub CreateAtomicGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginReplicateAtomicGroupOperation: unsafe extern "system" fn( *mut core::ffi::c_void, i64, @@ -283,11 +511,17 @@ pub struct IFabricAtomicGroupStateReplicator_Vtbl { *mut i64, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginReplicateAtomicGroupOperation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndReplicateAtomicGroupOperation: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndReplicateAtomicGroupOperation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginReplicateAtomicGroupCommit: unsafe extern "system" fn( *mut core::ffi::c_void, i64, @@ -295,11 +529,17 @@ pub struct IFabricAtomicGroupStateReplicator_Vtbl { *mut i64, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginReplicateAtomicGroupCommit: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndReplicateAtomicGroupCommit: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndReplicateAtomicGroupCommit: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub BeginReplicateAtomicGroupRollback: unsafe extern "system" fn( *mut core::ffi::c_void, i64, @@ -307,168 +547,538 @@ pub struct IFabricAtomicGroupStateReplicator_Vtbl { *mut i64, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginReplicateAtomicGroupRollback: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] pub EndReplicateAtomicGroupRollback: unsafe extern "system" fn( *mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64, ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndReplicateAtomicGroupRollback: usize, } -windows_core::imp::define_interface!( - IFabricCodePackage, - IFabricCodePackage_Vtbl, - 0x20792b45_4d13_41a4_af13_346e529f00c5 -); -impl core::ops::Deref for IFabricCodePackage { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricCodePackage, windows_core::IUnknown); -impl IFabricCodePackage { - pub unsafe fn get_Description( +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricAtomicGroupStateReplicator_Impl: windows_core::IUnknownImpl { + fn CreateAtomicGroup(&self) -> windows_core::Result; + fn BeginReplicateAtomicGroupOperation( &self, - ) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION { - (windows_core::Interface::vtable(self).get_Description)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricCodePackage {} -unsafe impl Sync for IFabricCodePackage {} -#[repr(C)] -pub struct IFabricCodePackage_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION, - pub get_Path: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, -} -windows_core::imp::define_interface!( - IFabricCodePackage2, - IFabricCodePackage2_Vtbl, - 0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600 -); -impl core::ops::Deref for IFabricCodePackage2 { - type Target = IFabricCodePackage; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackage2, - windows_core::IUnknown, - IFabricCodePackage -); -impl IFabricCodePackage2 { - pub unsafe fn get_SetupEntryPointRunAsPolicy( + atomicgroupid: i64, + operationdata: windows_core::Ref<'_, IFabricOperationData>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + operationsequencenumber: *mut i64, + ) -> windows_core::Result; + fn EndReplicateAtomicGroupOperation( &self, - ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { - (windows_core::Interface::vtable(self).get_SetupEntryPointRunAsPolicy)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_EntryPointRunAsPolicy( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginReplicateAtomicGroupCommit( &self, - ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { - (windows_core::Interface::vtable(self).get_EntryPointRunAsPolicy)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricCodePackage2 {} -unsafe impl Sync for IFabricCodePackage2 {} + atomicgroupid: i64, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + commitsequencenumber: *mut i64, + ) -> windows_core::Result; + fn EndReplicateAtomicGroupCommit( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; + fn BeginReplicateAtomicGroupRollback( + &self, + atomicgroupid: i64, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + rollbacksequencenumber: *mut i64, + ) -> windows_core::Result; + fn EndReplicateAtomicGroupRollback( + &self, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result; +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl IFabricAtomicGroupStateReplicator_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn CreateAtomicGroup< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::CreateAtomicGroup(this) { + Ok(ok__) => { + atomicgroupid.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupOperation< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: i64, + operationdata: *mut core::ffi::c_void, + callback: *mut core::ffi::c_void, + operationsequencenumber: *mut i64, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupOperation( + this, + core::mem::transmute_copy(&atomicgroupid), + core::mem::transmute_copy(&operationdata), + core::mem::transmute_copy(&callback), + core::mem::transmute_copy(&operationsequencenumber), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndReplicateAtomicGroupOperation< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + operationsequencenumber: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupOperation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + operationsequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupCommit< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: i64, + callback: *mut core::ffi::c_void, + commitsequencenumber: *mut i64, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupCommit( + this, + core::mem::transmute_copy(&atomicgroupid), + core::mem::transmute_copy(&callback), + core::mem::transmute_copy(&commitsequencenumber), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndReplicateAtomicGroupCommit< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + commitsequencenumber: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupCommit( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + commitsequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupRollback< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + atomicgroupid: i64, + callback: *mut core::ffi::c_void, + rollbacksequencenumber: *mut i64, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupRollback( + this, + core::mem::transmute_copy(&atomicgroupid), + core::mem::transmute_copy(&callback), + core::mem::transmute_copy(&rollbacksequencenumber), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndReplicateAtomicGroupRollback< + Identity: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + rollbacksequencenumber: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupRollback( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + rollbacksequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + CreateAtomicGroup: CreateAtomicGroup::, + BeginReplicateAtomicGroupOperation: BeginReplicateAtomicGroupOperation::< + Identity, + OFFSET, + >, + EndReplicateAtomicGroupOperation: EndReplicateAtomicGroupOperation::, + BeginReplicateAtomicGroupCommit: BeginReplicateAtomicGroupCommit::, + EndReplicateAtomicGroupCommit: EndReplicateAtomicGroupCommit::, + BeginReplicateAtomicGroupRollback: BeginReplicateAtomicGroupRollback::, + EndReplicateAtomicGroupRollback: EndReplicateAtomicGroupRollback::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricAtomicGroupStateReplicator {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricAtomicGroupStateReplicator {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricAtomicGroupStateReplicator {} +windows_core::imp::define_interface!( + IFabricCodePackage, + IFabricCodePackage_Vtbl, + 0x20792b45_4d13_41a4_af13_346e529f00c5 +); +windows_core::imp::interface_hierarchy!(IFabricCodePackage, windows_core::IUnknown); +impl IFabricCodePackage { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Description( + &self, + ) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_Description)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricCodePackage_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Description: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Description: usize, + pub get_Path: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricCodePackage_Impl: windows_core::IUnknownImpl { + fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> windows_core::PCWSTR; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricCodePackage_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Description< + Identity: IFabricCodePackage_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackage_Impl::get_Description(this) + } + } + unsafe extern "system" fn get_Path< + Identity: IFabricCodePackage_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackage_Impl::get_Path(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + get_Path: get_Path::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricCodePackage {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricCodePackage {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricCodePackage {} +windows_core::imp::define_interface!( + IFabricCodePackage2, + IFabricCodePackage2_Vtbl, + 0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600 +); +impl core::ops::Deref for IFabricCodePackage2 { + type Target = IFabricCodePackage; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricCodePackage2, + windows_core::IUnknown, + IFabricCodePackage +); +impl IFabricCodePackage2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_SetupEntryPointRunAsPolicy( + &self, + ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_SetupEntryPointRunAsPolicy)( + windows_core::Interface::as_raw(self), + ) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_EntryPointRunAsPolicy( + &self, + ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_EntryPointRunAsPolicy)( + windows_core::Interface::as_raw(self), + ) + } + } +} #[repr(C)] pub struct IFabricCodePackage2_Vtbl { pub base__: IFabricCodePackage_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] pub get_SetupEntryPointRunAsPolicy: unsafe extern "system" fn( *mut core::ffi::c_void, ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_SetupEntryPointRunAsPolicy: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] pub get_EntryPointRunAsPolicy: unsafe extern "system" fn( *mut core::ffi::c_void, ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_EntryPointRunAsPolicy: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricCodePackage2_Impl: IFabricCodePackage_Impl { + fn get_SetupEntryPointRunAsPolicy( + &self, + ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION; + fn get_EntryPointRunAsPolicy(&self) + -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricCodePackage2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_SetupEntryPointRunAsPolicy< + Identity: IFabricCodePackage2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackage2_Impl::get_SetupEntryPointRunAsPolicy(this) + } + } + unsafe extern "system" fn get_EntryPointRunAsPolicy< + Identity: IFabricCodePackage2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackage2_Impl::get_EntryPointRunAsPolicy(this) + } + } + Self { + base__: IFabricCodePackage_Vtbl::new::(), + get_SetupEntryPointRunAsPolicy: get_SetupEntryPointRunAsPolicy::, + get_EntryPointRunAsPolicy: get_EntryPointRunAsPolicy::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } } +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricCodePackage2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricCodePackage2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricCodePackage2 {} windows_core::imp::define_interface!( IFabricCodePackageActivationContext, IFabricCodePackageActivationContext_Vtbl, 0x68a971e2_f15f_4d95_a79c_8a257909659e ); -impl core::ops::Deref for IFabricCodePackageActivationContext { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext, windows_core::IUnknown ); impl IFabricCodePackageActivationContext { pub unsafe fn get_ContextId(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_ContextId)(windows_core::Interface::as_raw(self)) + unsafe { + (windows_core::Interface::vtable(self).get_ContextId)(windows_core::Interface::as_raw( + self, + )) + } } pub unsafe fn get_CodePackageName(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_CodePackageName)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_CodePackageName)( + windows_core::Interface::as_raw(self), + ) + } } pub unsafe fn get_CodePackageVersion(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_CodePackageVersion)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_CodePackageVersion)( + windows_core::Interface::as_raw(self), + ) + } } pub unsafe fn get_WorkDirectory(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_WorkDirectory)(windows_core::Interface::as_raw( - self, - )) + unsafe { + (windows_core::Interface::vtable(self).get_WorkDirectory)( + windows_core::Interface::as_raw(self), + ) + } } pub unsafe fn get_LogDirectory(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_LogDirectory)(windows_core::Interface::as_raw( - self, - )) + unsafe { + (windows_core::Interface::vtable(self).get_LogDirectory)( + windows_core::Interface::as_raw(self), + ) + } } pub unsafe fn get_TempDirectory(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_TempDirectory)(windows_core::Interface::as_raw( - self, - )) + unsafe { + (windows_core::Interface::vtable(self).get_TempDirectory)( + windows_core::Interface::as_raw(self), + ) + } } + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (windows_core::Interface::vtable(self).get_ServiceTypes)(windows_core::Interface::as_raw( - self, - )) + unsafe { + (windows_core::Interface::vtable(self).get_ServiceTypes)( + windows_core::Interface::as_raw(self), + ) + } } + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (windows_core::Interface::vtable(self).get_ServiceGroupTypes)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_ServiceGroupTypes)( + windows_core::Interface::as_raw(self), + ) + } } + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::FabricTypes::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (windows_core::Interface::vtable(self).get_ApplicationPrincipals)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationPrincipals)( + windows_core::Interface::as_raw(self), + ) + } } + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (windows_core::Interface::vtable(self).get_ServiceEndpointResources)( - windows_core::Interface::as_raw(self), - ) + unsafe { + (windows_core::Interface::vtable(self).get_ServiceEndpointResources)( + windows_core::Interface::as_raw(self), + ) + } } + #[cfg(feature = "ServiceFabric_FabricTypes")] pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, @@ -476,43 +1086,54 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceEndpointResource)( - windows_core::Interface::as_raw(self), - serviceendpointresourcename.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetServiceEndpointResource)( + windows_core::Interface::as_raw(self), + serviceendpointresourcename.param().abi(), + &mut result__, + ) + .map(|| result__) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn GetCodePackageNames( &self, ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePackageNames)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCodePackageNames)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn GetConfigurationPackageNames( &self, ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConfigurationPackageNames)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetConfigurationPackageNames)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } + #[cfg(feature = "ServiceFabric_FabricCommon")] pub unsafe fn GetDataPackageNames( &self, ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataPackageNames)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetDataPackageNames)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } pub unsafe fn GetCodePackage( &self, @@ -521,13 +1142,15 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCodePackage)( - windows_core::Interface::as_raw(self), - codepackagename.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCodePackage)( + windows_core::Interface::as_raw(self), + codepackagename.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } pub unsafe fn GetConfigurationPackage( &self, @@ -536,13 +1159,15 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetConfigurationPackage)( - windows_core::Interface::as_raw(self), - configpackagename.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetConfigurationPackage)( + windows_core::Interface::as_raw(self), + configpackagename.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } pub unsafe fn GetDataPackage( &self, @@ -551,13 +1176,15 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDataPackage)( - windows_core::Interface::as_raw(self), - datapackagename.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetDataPackage)( + windows_core::Interface::as_raw(self), + datapackagename.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } pub unsafe fn RegisterCodePackageChangeHandler( &self, @@ -566,23 +1193,27 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterCodePackageChangeHandler)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).RegisterCodePackageChangeHandler)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .map(|| result__) + } } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterCodePackageChangeHandler)( - windows_core::Interface::as_raw(self), - callbackhandle, - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).UnregisterCodePackageChangeHandler)( + windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } } pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, @@ -591,23 +1222,27 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterConfigurationPackageChangeHandler)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).RegisterConfigurationPackageChangeHandler)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .map(|| result__) + } } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterConfigurationPackageChangeHandler)( - windows_core::Interface::as_raw(self), - callbackhandle, - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).UnregisterConfigurationPackageChangeHandler)( + windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } } pub unsafe fn RegisterDataPackageChangeHandler( &self, @@ -616,6412 +1251,2808 @@ impl IFabricCodePackageActivationContext { where P0: windows_core::Param, { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterDataPackageChangeHandler)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .map(|| result__) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).RegisterDataPackageChangeHandler)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .map(|| result__) + } } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterDataPackageChangeHandler)( - windows_core::Interface::as_raw(self), - callbackhandle, - ) - .ok() + unsafe { + (windows_core::Interface::vtable(self).UnregisterDataPackageChangeHandler)( + windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } } } -unsafe impl Send for IFabricCodePackageActivationContext {} -unsafe impl Sync for IFabricCodePackageActivationContext {} #[repr(C)] -pub struct IFabricCodePackageActivationContext_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_ContextId :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_CodePackageName :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_CodePackageVersion :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_WorkDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_LogDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_TempDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_ServiceTypes :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_TYPE_DESCRIPTION_LIST , pub get_ServiceGroupTypes :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST , pub get_ApplicationPrincipals :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION , pub get_ServiceEndpointResources :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST , pub GetServiceEndpointResource :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut *mut super::FabricTypes:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION , ) -> windows_core::HRESULT , pub GetCodePackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub GetConfigurationPackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub GetDataPackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub GetCodePackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub GetConfigurationPackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub GetDataPackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , pub RegisterCodePackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 , ) -> windows_core::HRESULT , pub UnregisterCodePackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 , ) -> windows_core::HRESULT , pub RegisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 , ) -> windows_core::HRESULT , pub UnregisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 , ) -> windows_core::HRESULT , pub RegisterDataPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 , ) -> windows_core::HRESULT , pub UnregisterDataPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 , ) -> windows_core::HRESULT , } -windows_core::imp::define_interface!( - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext2_Vtbl, - 0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9 -); -impl core::ops::Deref for IFabricCodePackageActivationContext2 { - type Target = IFabricCodePackageActivationContext; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackageActivationContext2, - windows_core::IUnknown, - IFabricCodePackageActivationContext -); -impl IFabricCodePackageActivationContext2 { - pub unsafe fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI { - (windows_core::Interface::vtable(self).get_ApplicationName)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_ApplicationTypeName)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn GetServiceManifestName( +pub struct IFabricCodePackageActivationContext_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , pub get_ContextId :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_CodePackageName :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_CodePackageVersion :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_WorkDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_LogDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_TempDirectory :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ServiceTypes :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_TYPE_DESCRIPTION_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ServiceTypes :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ServiceGroupTypes :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ServiceGroupTypes :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ApplicationPrincipals :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ApplicationPrincipals :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_ServiceEndpointResources :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_ServiceEndpointResources :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub GetServiceEndpointResource :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut *mut super::FabricTypes:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] GetServiceEndpointResource :usize , # [ cfg ( feature = "ServiceFabric_FabricCommon" ) ] pub GetCodePackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricCommon" ) ) ] GetCodePackageNames :usize , # [ cfg ( feature = "ServiceFabric_FabricCommon" ) ] pub GetConfigurationPackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricCommon" ) ) ] GetConfigurationPackageNames :usize , # [ cfg ( feature = "ServiceFabric_FabricCommon" ) ] pub GetDataPackageNames :unsafe extern "system" fn ( * mut core::ffi::c_void , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricCommon" ) ) ] GetDataPackageNames :usize , pub GetCodePackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , pub GetConfigurationPackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , pub GetDataPackage :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , pub RegisterCodePackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 ) -> windows_core::HRESULT , pub UnregisterCodePackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 ) -> windows_core::HRESULT , pub RegisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 ) -> windows_core::HRESULT , pub UnregisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 ) -> windows_core::HRESULT , pub RegisterDataPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , * mut core::ffi::c_void , *mut i64 ) -> windows_core::HRESULT , pub UnregisterDataPackageChangeHandler :unsafe extern "system" fn ( * mut core::ffi::c_void , i64 ) -> windows_core::HRESULT , } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext_Impl: windows_core::IUnknownImpl { + fn get_ContextId(&self) -> windows_core::PCWSTR; + fn get_CodePackageName(&self) -> windows_core::PCWSTR; + fn get_CodePackageVersion(&self) -> windows_core::PCWSTR; + fn get_WorkDirectory(&self) -> windows_core::PCWSTR; + fn get_LogDirectory(&self) -> windows_core::PCWSTR; + fn get_TempDirectory(&self) -> windows_core::PCWSTR; + fn get_ServiceTypes(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST; + fn get_ServiceGroupTypes( &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceManifestName)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn GetServiceManifestVersion( + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST; + fn get_ApplicationPrincipals( &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetServiceManifestVersion)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricCodePackageActivationContext2 {} -unsafe impl Sync for IFabricCodePackageActivationContext2 {} -#[repr(C)] -pub struct IFabricCodePackageActivationContext2_Vtbl { - pub base__: IFabricCodePackageActivationContext_Vtbl, - pub get_ApplicationName: - unsafe extern "system" fn(*mut core::ffi::c_void) -> super::FabricTypes::FABRIC_URI, - pub get_ApplicationTypeName: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub GetServiceManifestName: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub GetServiceManifestVersion: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricCodePackageActivationContext3, - IFabricCodePackageActivationContext3_Vtbl, - 0x6efee900_f491_4b03_bc5b_3a70de103593 -); -impl core::ops::Deref for IFabricCodePackageActivationContext3 { - type Target = IFabricCodePackageActivationContext2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackageActivationContext3, - windows_core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2 -); -impl IFabricCodePackageActivationContext3 { - pub unsafe fn ReportApplicationHealth( + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION; + fn get_ServiceEndpointResources( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportApplicationHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth( + ) -> *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST; + fn GetServiceEndpointResource( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDeployedApplicationHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth( + serviceendpointresourcename: &windows_core::PCWSTR, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; + fn GetCodePackageNames( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } -} -unsafe impl Send for IFabricCodePackageActivationContext3 {} -unsafe impl Sync for IFabricCodePackageActivationContext3 {} -#[repr(C)] -pub struct IFabricCodePackageActivationContext3_Vtbl { - pub base__: IFabricCodePackageActivationContext2_Vtbl, - pub ReportApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, - pub ReportDeployedApplicationHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, - pub ReportDeployedServicePackageHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricCodePackageActivationContext4, - IFabricCodePackageActivationContext4_Vtbl, - 0x99efebb6_a7b4_4d45_b45e_f191a66eef03 -); -impl core::ops::Deref for IFabricCodePackageActivationContext4 { - type Target = IFabricCodePackageActivationContext3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackageActivationContext4, - windows_core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3 -); -impl IFabricCodePackageActivationContext4 { - pub unsafe fn ReportApplicationHealth2( + ) -> windows_core::Result; + fn GetConfigurationPackageNames( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportApplicationHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth2( + ) -> windows_core::Result; + fn GetDataPackageNames( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDeployedApplicationHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth2( + ) -> windows_core::Result; + fn GetCodePackage( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } + codepackagename: &windows_core::PCWSTR, + ) -> windows_core::Result; + fn GetConfigurationPackage( + &self, + configpackagename: &windows_core::PCWSTR, + ) -> windows_core::Result; + fn GetDataPackage( + &self, + datapackagename: &windows_core::PCWSTR, + ) -> windows_core::Result; + fn RegisterCodePackageChangeHandler( + &self, + callback: windows_core::Ref<'_, IFabricCodePackageChangeHandler>, + ) -> windows_core::Result; + fn UnregisterCodePackageChangeHandler(&self, callbackhandle: i64) -> windows_core::Result<()>; + fn RegisterConfigurationPackageChangeHandler( + &self, + callback: windows_core::Ref<'_, IFabricConfigurationPackageChangeHandler>, + ) -> windows_core::Result; + fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> windows_core::Result<()>; + fn RegisterDataPackageChangeHandler( + &self, + callback: windows_core::Ref<'_, IFabricDataPackageChangeHandler>, + ) -> windows_core::Result; + fn UnregisterDataPackageChangeHandler(&self, callbackhandle: i64) -> windows_core::Result<()>; } -unsafe impl Send for IFabricCodePackageActivationContext4 {} -unsafe impl Sync for IFabricCodePackageActivationContext4 {} -#[repr(C)] -pub struct IFabricCodePackageActivationContext4_Vtbl { - pub base__: IFabricCodePackageActivationContext3_Vtbl, - pub ReportApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, - pub ReportDeployedApplicationHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, - pub ReportDeployedServicePackageHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) - -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricCodePackageActivationContext5, - IFabricCodePackageActivationContext5_Vtbl, - 0xfe45387e_8711_4949_ac36_31dc95035513 -); -impl core::ops::Deref for IFabricCodePackageActivationContext5 { - type Target = IFabricCodePackageActivationContext4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackageActivationContext5, - windows_core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3, - IFabricCodePackageActivationContext4 -); -impl IFabricCodePackageActivationContext5 { - pub unsafe fn get_ServiceListenAddress(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_ServiceListenAddress)( - windows_core::Interface::as_raw(self), - ) - } - pub unsafe fn get_ServicePublishAddress(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_ServicePublishAddress)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricCodePackageActivationContext5 {} -unsafe impl Sync for IFabricCodePackageActivationContext5 {} -#[repr(C)] -pub struct IFabricCodePackageActivationContext5_Vtbl { - pub base__: IFabricCodePackageActivationContext4_Vtbl, - pub get_ServiceListenAddress: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, - pub get_ServicePublishAddress: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, -} -windows_core::imp::define_interface!( - IFabricCodePackageActivationContext6, - IFabricCodePackageActivationContext6_Vtbl, - 0xfa5fda9b_472c_45a0_9b60_a374691227a4 -); -impl core::ops::Deref for IFabricCodePackageActivationContext6 { - type Target = IFabricCodePackageActivationContext5; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricCodePackageActivationContext6, - windows_core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3, - IFabricCodePackageActivationContext4, - IFabricCodePackageActivationContext5 -); -impl IFabricCodePackageActivationContext6 { - pub unsafe fn GetDirectory( - &self, - logicaldirectoryname: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDirectory)( - windows_core::Interface::as_raw(self), - logicaldirectoryname.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricCodePackageActivationContext6 {} -unsafe impl Sync for IFabricCodePackageActivationContext6 {} -#[repr(C)] -pub struct IFabricCodePackageActivationContext6_Vtbl { - pub base__: IFabricCodePackageActivationContext5_Vtbl, - pub GetDirectory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricCodePackageActivator, - IFabricCodePackageActivator_Vtbl, - 0x70be1b10_b259_46fc_b813_0b75720e7183 -); -impl core::ops::Deref for IFabricCodePackageActivator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricCodePackageActivator, windows_core::IUnknown); -impl IFabricCodePackageActivator { - pub unsafe fn BeginActivateCodePackage( - &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - environment: *const super::FabricTypes::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginActivateCodePackage)( - windows_core::Interface::as_raw(self), - codepackagenames, - environment, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndActivateCodePackage(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndActivateCodePackage)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginDeactivateCodePackage( - &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginDeactivateCodePackage)( - windows_core::Interface::as_raw(self), - codepackagenames, - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndDeactivateCodePackage(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndDeactivateCodePackage)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn AbortCodePackage( - &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).AbortCodePackage)( - windows_core::Interface::as_raw(self), - codepackagenames, - ) - .ok() - } - pub unsafe fn RegisterCodePackageEventHandler( - &self, - eventhandler: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).RegisterCodePackageEventHandler)( - windows_core::Interface::as_raw(self), - eventhandler.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn UnregisterCodePackageEventHandler( - &self, - callbackhandle: u64, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UnregisterCodePackageEventHandler)( - windows_core::Interface::as_raw(self), - callbackhandle, - ) - .ok() - } -} -unsafe impl Send for IFabricCodePackageActivator {} -unsafe impl Sync for IFabricCodePackageActivator {} -#[repr(C)] -pub struct IFabricCodePackageActivator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginActivateCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STRING_LIST, - *const super::FabricTypes::FABRIC_STRING_MAP, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndActivateCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginDeactivateCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STRING_LIST, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndDeactivateCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub AbortCodePackage: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STRING_LIST, - ) -> windows_core::HRESULT, - pub RegisterCodePackageEventHandler: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u64, - ) -> windows_core::HRESULT, - pub UnregisterCodePackageEventHandler: - unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricCodePackageChangeHandler, - IFabricCodePackageChangeHandler_Vtbl, - 0xb90d36cd_acb5_427a_b318_3b045981d0cc -); -impl core::ops::Deref for IFabricCodePackageChangeHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricCodePackageChangeHandler, windows_core::IUnknown); -impl IFabricCodePackageChangeHandler { - pub unsafe fn OnPackageAdded(&self, source: P0, codepackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageAdded)( - windows_core::Interface::as_raw(self), - source.param().abi(), - codepackage.param().abi(), - ) - } - pub unsafe fn OnPackageRemoved(&self, source: P0, codepackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageRemoved)( - windows_core::Interface::as_raw(self), - source.param().abi(), - codepackage.param().abi(), - ) - } - pub unsafe fn OnPackageModified( - &self, - source: P0, - previouscodepackage: P1, - codepackage: P2, - ) where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageModified)( - windows_core::Interface::as_raw(self), - source.param().abi(), - previouscodepackage.param().abi(), - codepackage.param().abi(), - ) - } -} -unsafe impl Send for IFabricCodePackageChangeHandler {} -unsafe impl Sync for IFabricCodePackageChangeHandler {} -#[repr(C)] -pub struct IFabricCodePackageChangeHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), -} -windows_core::imp::define_interface!( - IFabricCodePackageEventHandler, - IFabricCodePackageEventHandler_Vtbl, - 0x899e0ca8_16df_458e_8915_d0307b4ab101 -); -impl core::ops::Deref for IFabricCodePackageEventHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricCodePackageEventHandler, windows_core::IUnknown); -impl IFabricCodePackageEventHandler { - pub unsafe fn OnCodePackageEvent( - &self, - source: P0, - eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ) where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnCodePackageEvent)( - windows_core::Interface::as_raw(self), - source.param().abi(), - eventdesc, - ) - } -} -unsafe impl Send for IFabricCodePackageEventHandler {} -unsafe impl Sync for IFabricCodePackageEventHandler {} -#[repr(C)] -pub struct IFabricCodePackageEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnCodePackageEvent: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ), -} -windows_core::imp::define_interface!( - IFabricConfigurationPackage, - IFabricConfigurationPackage_Vtbl, - 0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d -); -impl core::ops::Deref for IFabricConfigurationPackage { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricConfigurationPackage, windows_core::IUnknown); -impl IFabricConfigurationPackage { - pub unsafe fn get_Description( - &self, - ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - (windows_core::Interface::vtable(self).get_Description)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS { - (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn GetSection( - &self, - sectionname: P0, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION> - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetSection)( - windows_core::Interface::as_raw(self), - sectionname.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetValue( - &self, - sectionname: P0, - parametername: P1, - isencrypted: *mut u8, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValue)( - windows_core::Interface::as_raw(self), - sectionname.param().abi(), - parametername.param().abi(), - isencrypted, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn DecryptValue( - &self, - encryptedvalue: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).DecryptValue)( - windows_core::Interface::as_raw(self), - encryptedvalue.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricConfigurationPackage {} -unsafe impl Sync for IFabricConfigurationPackage {} -#[repr(C)] -pub struct IFabricConfigurationPackage_Vtbl where { pub base__ : windows_core::IUnknown_Vtbl , pub get_Description :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION , pub get_Path :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , pub get_Settings :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_CONFIGURATION_SETTINGS , pub GetSection :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut *mut super::FabricTypes:: FABRIC_CONFIGURATION_SECTION , ) -> windows_core::HRESULT , pub GetValue :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , windows_core::PCWSTR , *mut u8 , *mut windows_core::PCWSTR , ) -> windows_core::HRESULT , pub DecryptValue :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void , ) -> windows_core::HRESULT , } -windows_core::imp::define_interface!( - IFabricConfigurationPackage2, - IFabricConfigurationPackage2_Vtbl, - 0xd3161f31_708a_4f83_91ff_f2af15f74a2f -); -impl core::ops::Deref for IFabricConfigurationPackage2 { - type Target = IFabricConfigurationPackage; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricConfigurationPackage2, - windows_core::IUnknown, - IFabricConfigurationPackage -); -impl IFabricConfigurationPackage2 { - pub unsafe fn GetValues( - &self, - sectionname: P0, - parameterprefix: P1, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetValues)( - windows_core::Interface::as_raw(self), - sectionname.param().abi(), - parameterprefix.param().abi(), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricConfigurationPackage2 {} -unsafe impl Sync for IFabricConfigurationPackage2 {} -#[repr(C)] -pub struct IFabricConfigurationPackage2_Vtbl { - pub base__: IFabricConfigurationPackage_Vtbl, - pub GetValues: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows_core::PCWSTR, - *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricConfigurationPackageChangeHandler, - IFabricConfigurationPackageChangeHandler_Vtbl, - 0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85 -); -impl core::ops::Deref for IFabricConfigurationPackageChangeHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricConfigurationPackageChangeHandler, - windows_core::IUnknown -); -impl IFabricConfigurationPackageChangeHandler { - pub unsafe fn OnPackageAdded(&self, source: P0, configpackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageAdded)( - windows_core::Interface::as_raw(self), - source.param().abi(), - configpackage.param().abi(), - ) - } - pub unsafe fn OnPackageRemoved(&self, source: P0, configpackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageRemoved)( - windows_core::Interface::as_raw(self), - source.param().abi(), - configpackage.param().abi(), - ) - } - pub unsafe fn OnPackageModified( - &self, - source: P0, - previousconfigpackage: P1, - configpackage: P2, - ) where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageModified)( - windows_core::Interface::as_raw(self), - source.param().abi(), - previousconfigpackage.param().abi(), - configpackage.param().abi(), - ) - } -} -unsafe impl Send for IFabricConfigurationPackageChangeHandler {} -unsafe impl Sync for IFabricConfigurationPackageChangeHandler {} -#[repr(C)] -pub struct IFabricConfigurationPackageChangeHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), -} -windows_core::imp::define_interface!( - IFabricDataPackage, - IFabricDataPackage_Vtbl, - 0xaa67de09_3657_435f_a2f6_b3a17a0a4371 -); -impl core::ops::Deref for IFabricDataPackage { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricDataPackage, windows_core::IUnknown); -impl IFabricDataPackage { - pub unsafe fn get_Description( - &self, - ) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION { - (windows_core::Interface::vtable(self).get_Description)(windows_core::Interface::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { - (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricDataPackage {} -unsafe impl Sync for IFabricDataPackage {} -#[repr(C)] -pub struct IFabricDataPackage_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION, - pub get_Path: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, -} -windows_core::imp::define_interface!( - IFabricDataPackageChangeHandler, - IFabricDataPackageChangeHandler_Vtbl, - 0x8d0a726f_bd17_4b32_807b_be2a8024b2e0 -); -impl core::ops::Deref for IFabricDataPackageChangeHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricDataPackageChangeHandler, windows_core::IUnknown); -impl IFabricDataPackageChangeHandler { - pub unsafe fn OnPackageAdded(&self, source: P0, datapackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageAdded)( - windows_core::Interface::as_raw(self), - source.param().abi(), - datapackage.param().abi(), - ) - } - pub unsafe fn OnPackageRemoved(&self, source: P0, datapackage: P1) - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageRemoved)( - windows_core::Interface::as_raw(self), - source.param().abi(), - datapackage.param().abi(), - ) - } - pub unsafe fn OnPackageModified( - &self, - source: P0, - previousdatapackage: P1, - datapackage: P2, - ) where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnPackageModified)( - windows_core::Interface::as_raw(self), - source.param().abi(), - previousdatapackage.param().abi(), - datapackage.param().abi(), - ) - } -} -unsafe impl Send for IFabricDataPackageChangeHandler {} -unsafe impl Sync for IFabricDataPackageChangeHandler {} -#[repr(C)] -pub struct IFabricDataPackageChangeHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ), -} -windows_core::imp::define_interface!( - IFabricEseLocalStoreSettingsResult, - IFabricEseLocalStoreSettingsResult_Vtbl, - 0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65 -); -impl core::ops::Deref for IFabricEseLocalStoreSettingsResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricEseLocalStoreSettingsResult, windows_core::IUnknown); -impl IFabricEseLocalStoreSettingsResult { - pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS { - (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricEseLocalStoreSettingsResult {} -unsafe impl Sync for IFabricEseLocalStoreSettingsResult {} -#[repr(C)] -pub struct IFabricEseLocalStoreSettingsResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Settings: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreEnumerator, - IFabricKeyValueStoreEnumerator_Vtbl, - 0x6722b848_15bb_4528_bf54_c7bbe27b6f9a -); -impl core::ops::Deref for IFabricKeyValueStoreEnumerator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreEnumerator, windows_core::IUnknown); -impl IFabricKeyValueStoreEnumerator { - pub unsafe fn EnumerateByKey( - &self, - keyprefix: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateByKey)( - windows_core::Interface::as_raw(self), - keyprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateMetadataByKey( - &self, - keyprefix: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateMetadataByKey)( - windows_core::Interface::as_raw(self), - keyprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreEnumerator {} -unsafe impl Sync for IFabricKeyValueStoreEnumerator {} -#[repr(C)] -pub struct IFabricKeyValueStoreEnumerator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub EnumerateByKey: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateMetadataByKey: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreEnumerator2, - IFabricKeyValueStoreEnumerator2_Vtbl, - 0x63dfd264_4f2b_4be6_8234_1fa200165fe9 -); -impl core::ops::Deref for IFabricKeyValueStoreEnumerator2 { - type Target = IFabricKeyValueStoreEnumerator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreEnumerator2, - windows_core::IUnknown, - IFabricKeyValueStoreEnumerator -); -impl IFabricKeyValueStoreEnumerator2 { - pub unsafe fn EnumerateByKey2( - &self, - keyprefix: P0, - strictprefix: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateByKey2)( - windows_core::Interface::as_raw(self), - keyprefix.param().abi(), - strictprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateMetadataByKey2( - &self, - keyprefix: P0, - strictprefix: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( - windows_core::Interface::as_raw(self), - keyprefix.param().abi(), - strictprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreEnumerator2 {} -unsafe impl Sync for IFabricKeyValueStoreEnumerator2 {} -#[repr(C)] -pub struct IFabricKeyValueStoreEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreEnumerator_Vtbl, - pub EnumerateByKey2: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows::Win32::Foundation::BOOLEAN, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateMetadataByKey2: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows::Win32::Foundation::BOOLEAN, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemEnumerator, - IFabricKeyValueStoreItemEnumerator_Vtbl, - 0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2 -); -impl core::ops::Deref for IFabricKeyValueStoreItemEnumerator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreItemEnumerator, windows_core::IUnknown); -impl IFabricKeyValueStoreItemEnumerator { - pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)).ok() - } - pub unsafe fn get_Current(&self) -> Option { - (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreItemEnumerator {} -unsafe impl Sync for IFabricKeyValueStoreItemEnumerator {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemEnumerator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub get_Current: - unsafe extern "system" fn(*mut core::ffi::c_void) -> Option, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemEnumerator2, - IFabricKeyValueStoreItemEnumerator2_Vtbl, - 0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd -); -impl core::ops::Deref for IFabricKeyValueStoreItemEnumerator2 { - type Target = IFabricKeyValueStoreItemEnumerator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreItemEnumerator2, - windows_core::IUnknown, - IFabricKeyValueStoreItemEnumerator -); -impl IFabricKeyValueStoreItemEnumerator2 { - pub unsafe fn TryMoveNext(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryMoveNext)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricKeyValueStoreItemEnumerator2 {} -unsafe impl Sync for IFabricKeyValueStoreItemEnumerator2 {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreItemEnumerator_Vtbl, - pub TryMoveNext: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemMetadataEnumerator, - IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, - 0x0bc06aee_fffa_4450_9099_116a5f0e0b53 -); -impl core::ops::Deref for IFabricKeyValueStoreItemMetadataEnumerator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataEnumerator, - windows_core::IUnknown -); -impl IFabricKeyValueStoreItemMetadataEnumerator { - pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)).ok() - } - pub unsafe fn get_Current(&self) -> Option { - (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreItemMetadataEnumerator {} -unsafe impl Sync for IFabricKeyValueStoreItemMetadataEnumerator {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub get_Current: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> Option, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemMetadataEnumerator2, - IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl, - 0x8803d53e_dd73_40fc_a662_1bfe999419ea -); -impl core::ops::Deref for IFabricKeyValueStoreItemMetadataEnumerator2 { - type Target = IFabricKeyValueStoreItemMetadataEnumerator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataEnumerator2, - windows_core::IUnknown, - IFabricKeyValueStoreItemMetadataEnumerator -); -impl IFabricKeyValueStoreItemMetadataEnumerator2 { - pub unsafe fn TryMoveNext(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryMoveNext)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricKeyValueStoreItemMetadataEnumerator2 {} -unsafe impl Sync for IFabricKeyValueStoreItemMetadataEnumerator2 {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, - pub TryMoveNext: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemMetadataResult, - IFabricKeyValueStoreItemMetadataResult_Vtbl, - 0x17c483a1_69e6_4bdc_a058_54fd4a1839fd -); -impl core::ops::Deref for IFabricKeyValueStoreItemMetadataResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataResult, - windows_core::IUnknown -); -impl IFabricKeyValueStoreItemMetadataResult { - pub unsafe fn get_Metadata( - &self, - ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreItemMetadataResult {} -unsafe impl Sync for IFabricKeyValueStoreItemMetadataResult {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemMetadataResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Metadata: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreItemResult, - IFabricKeyValueStoreItemResult_Vtbl, - 0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e -); -impl core::ops::Deref for IFabricKeyValueStoreItemResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreItemResult, windows_core::IUnknown); -impl IFabricKeyValueStoreItemResult { - pub unsafe fn get_Item(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM { - (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreItemResult {} -unsafe impl Sync for IFabricKeyValueStoreItemResult {} -#[repr(C)] -pub struct IFabricKeyValueStoreItemResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Item: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreNotification, - IFabricKeyValueStoreNotification_Vtbl, - 0xcb660aa6_c51e_4f05_9526_93982b550e8f -); -impl core::ops::Deref for IFabricKeyValueStoreNotification { - type Target = IFabricKeyValueStoreItemResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreNotification, - windows_core::IUnknown, - IFabricKeyValueStoreItemResult -); -impl IFabricKeyValueStoreNotification { - pub unsafe fn IsDelete(&self) -> windows::Win32::Foundation::BOOLEAN { - (windows_core::Interface::vtable(self).IsDelete)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreNotification {} -unsafe impl Sync for IFabricKeyValueStoreNotification {} -#[repr(C)] -pub struct IFabricKeyValueStoreNotification_Vtbl { - pub base__: IFabricKeyValueStoreItemResult_Vtbl, - pub IsDelete: - unsafe extern "system" fn(*mut core::ffi::c_void) -> windows::Win32::Foundation::BOOLEAN, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreNotificationEnumerator, - IFabricKeyValueStoreNotificationEnumerator_Vtbl, - 0xef25bc08_be76_43c7_adad_20f01fba3399 -); -impl core::ops::Deref for IFabricKeyValueStoreNotificationEnumerator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreNotificationEnumerator, - windows_core::IUnknown -); -impl IFabricKeyValueStoreNotificationEnumerator { - pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)).ok() - } - pub unsafe fn get_Current(&self) -> Option { - (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn Reset(&self) { - (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricKeyValueStoreNotificationEnumerator {} -unsafe impl Sync for IFabricKeyValueStoreNotificationEnumerator {} -#[repr(C)] -pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub get_Current: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> Option, - pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreNotificationEnumerator2, - IFabricKeyValueStoreNotificationEnumerator2_Vtbl, - 0x55eec7c6_ae81_407a_b84c_22771d314ac7 -); -impl core::ops::Deref for IFabricKeyValueStoreNotificationEnumerator2 { - type Target = IFabricKeyValueStoreNotificationEnumerator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreNotificationEnumerator2, - windows_core::IUnknown, - IFabricKeyValueStoreNotificationEnumerator -); -impl IFabricKeyValueStoreNotificationEnumerator2 { - pub unsafe fn TryMoveNext(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryMoveNext)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricKeyValueStoreNotificationEnumerator2 {} -unsafe impl Sync for IFabricKeyValueStoreNotificationEnumerator2 {} -#[repr(C)] -pub struct IFabricKeyValueStoreNotificationEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl, - pub TryMoveNext: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica_Vtbl, - 0x97da35c4_38ed_4a2a_8f37_fbeb56382235 -); -impl core::ops::Deref for IFabricKeyValueStoreReplica { - type Target = IFabricStatefulServiceReplica; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica, - windows_core::IUnknown, - IFabricStatefulServiceReplica -); -impl IFabricKeyValueStoreReplica { - pub unsafe fn GetCurrentEpoch( - &self, - currentepoch: *mut super::FabricTypes::FABRIC_EPOCH, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).GetCurrentEpoch)( - windows_core::Interface::as_raw(self), - currentepoch, - ) - .ok() - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateReplicatorSettings)( - windows_core::Interface::as_raw(self), - replicatorsettings, - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransaction)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn Add( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).Add)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - value.len().try_into().unwrap(), - core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).Remove)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).Update)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - value.len().try_into().unwrap(), - core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get( - &self, - transaction: P0, - key: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Get)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn GetMetadata( - &self, - transaction: P0, - key: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetMetadata)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn Contains(&self, transaction: P0, key: P1) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Contains)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn Enumerate( - &self, - transaction: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).Enumerate)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateByKey( - &self, - transaction: P0, - keyprefix: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateByKey)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - keyprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateMetadata( - &self, - transaction: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateMetadata)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateMetadataByKey( - &self, - transaction: P0, - keyprefix: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateMetadataByKey)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - keyprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreReplica {} -unsafe impl Sync for IFabricKeyValueStoreReplica {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica_Vtbl { - pub base__: IFabricStatefulServiceReplica_Vtbl, - pub GetCurrentEpoch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut super::FabricTypes::FABRIC_EPOCH, - ) -> windows_core::HRESULT, - pub UpdateReplicatorSettings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::HRESULT, - pub CreateTransaction: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub Add: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i32, - *const u8, - ) -> windows_core::HRESULT, - pub Remove: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i64, - ) -> windows_core::HRESULT, - pub Update: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i32, - *const u8, - i64, - ) -> windows_core::HRESULT, - pub Get: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub GetMetadata: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub Contains: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut u8, - ) -> windows_core::HRESULT, - pub Enumerate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateByKey: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateMetadata: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateMetadataByKey: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica2_Vtbl, - 0xfef805b2_5aca_4caa_9c51_fb3bd577a792 -); -impl core::ops::Deref for IFabricKeyValueStoreReplica2 { - type Target = IFabricKeyValueStoreReplica; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica2, - windows_core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica -); -impl IFabricKeyValueStoreReplica2 { - pub unsafe fn Backup(&self, backupdirectory: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).Backup)( - windows_core::Interface::as_raw(self), - backupdirectory.param().abi(), - ) - .ok() - } - pub unsafe fn Restore(&self, backupdirectory: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).Restore)( - windows_core::Interface::as_raw(self), - backupdirectory.param().abi(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateTransaction2)( - windows_core::Interface::as_raw(self), - settings, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreReplica2 {} -unsafe impl Sync for IFabricKeyValueStoreReplica2 {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica2_Vtbl { - pub base__: IFabricKeyValueStoreReplica_Vtbl, - pub Backup: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub Restore: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub CreateTransaction2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica3, - IFabricKeyValueStoreReplica3_Vtbl, - 0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f -); -impl core::ops::Deref for IFabricKeyValueStoreReplica3 { - type Target = IFabricKeyValueStoreReplica2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica3, - windows_core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2 -); -impl IFabricKeyValueStoreReplica3 { - pub unsafe fn BeginBackup( - &self, - backupdirectory: P0, - backupoption: super::FabricTypes::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: P1, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginBackup)( - windows_core::Interface::as_raw(self), - backupdirectory.param().abi(), - backupoption, - postbackuphandler.param().abi(), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndBackup(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndBackup)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricKeyValueStoreReplica3 {} -unsafe impl Sync for IFabricKeyValueStoreReplica3 {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica3_Vtbl { - pub base__: IFabricKeyValueStoreReplica2_Vtbl, - pub BeginBackup: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - super::FabricTypes::FABRIC_STORE_BACKUP_OPTION, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndBackup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica4, - IFabricKeyValueStoreReplica4_Vtbl, - 0xff16d2f1_41a9_4c64_804a_a20bf28c04f3 -); -impl core::ops::Deref for IFabricKeyValueStoreReplica4 { - type Target = IFabricKeyValueStoreReplica3; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica4, - windows_core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3 -); -impl IFabricKeyValueStoreReplica4 { - pub unsafe fn BeginRestore( - &self, - backupdirectory: P0, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestore)( - windows_core::Interface::as_raw(self), - backupdirectory.param().abi(), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRestore(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRestore)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricKeyValueStoreReplica4 {} -unsafe impl Sync for IFabricKeyValueStoreReplica4 {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica4_Vtbl { - pub base__: IFabricKeyValueStoreReplica3_Vtbl, - pub BeginRestore: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRestore: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica5, - IFabricKeyValueStoreReplica5_Vtbl, - 0x34f2da40_6227_448a_be72_c517b0d69432 -); -impl core::ops::Deref for IFabricKeyValueStoreReplica5 { - type Target = IFabricKeyValueStoreReplica4; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica5, - windows_core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3, - IFabricKeyValueStoreReplica4 -); -impl IFabricKeyValueStoreReplica5 { - pub unsafe fn TryAdd( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryAdd)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - value.len().try_into().unwrap(), - core::mem::transmute(value.as_ptr()), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn TryRemove( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryRemove)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - checksequencenumber, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn TryUpdate( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryUpdate)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - value.len().try_into().unwrap(), - core::mem::transmute(value.as_ptr()), - checksequencenumber, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn TryGet( - &self, - transaction: P0, - key: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryGet)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn TryGetMetadata( - &self, - transaction: P0, - key: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).TryGetMetadata)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - key.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateByKey2( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateByKey2)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - keyprefix.param().abi(), - strictprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EnumerateMetadataByKey2( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( - windows_core::Interface::as_raw(self), - transaction.param().abi(), - keyprefix.param().abi(), - strictprefix.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreReplica5 {} -unsafe impl Sync for IFabricKeyValueStoreReplica5 {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica5_Vtbl { - pub base__: IFabricKeyValueStoreReplica4_Vtbl, - pub TryAdd: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i32, - *const u8, - *mut u8, - ) -> windows_core::HRESULT, - pub TryRemove: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i64, - *mut u8, - ) -> windows_core::HRESULT, - pub TryUpdate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - i32, - *const u8, - i64, - *mut u8, - ) -> windows_core::HRESULT, - pub TryGet: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub TryGetMetadata: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateByKey2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows::Win32::Foundation::BOOLEAN, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EnumerateMetadataByKey2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - windows_core::PCWSTR, - windows::Win32::Foundation::BOOLEAN, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricKeyValueStoreReplica6, - IFabricKeyValueStoreReplica6_Vtbl, - 0x56e77be1_e81f_4e42_8522_162c2d608184 -); -impl core::ops::Deref for IFabricKeyValueStoreReplica6 { - type Target = IFabricKeyValueStoreReplica5; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricKeyValueStoreReplica6, - windows_core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3, - IFabricKeyValueStoreReplica4, - IFabricKeyValueStoreReplica5 -); -impl IFabricKeyValueStoreReplica6 { - pub unsafe fn BeginRestore2( - &self, - backupdirectory: P0, - settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRestore2)( - windows_core::Interface::as_raw(self), - backupdirectory.param().abi(), - settings, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricKeyValueStoreReplica6 {} -unsafe impl Sync for IFabricKeyValueStoreReplica6 {} -#[repr(C)] -pub struct IFabricKeyValueStoreReplica6_Vtbl { - pub base__: IFabricKeyValueStoreReplica5_Vtbl, - pub BeginRestore2: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricNodeContextResult, - IFabricNodeContextResult_Vtbl, - 0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce -); -impl core::ops::Deref for IFabricNodeContextResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricNodeContextResult, windows_core::IUnknown); -impl IFabricNodeContextResult { - pub unsafe fn get_NodeContext(&self) -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT { - (windows_core::Interface::vtable(self).get_NodeContext)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricNodeContextResult {} -unsafe impl Sync for IFabricNodeContextResult {} -#[repr(C)] -pub struct IFabricNodeContextResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_NodeContext: unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT, -} -windows_core::imp::define_interface!( - IFabricNodeContextResult2, - IFabricNodeContextResult2_Vtbl, - 0x472bf2e1_d617_4b5c_a91d_fabed9ff3550 -); -impl core::ops::Deref for IFabricNodeContextResult2 { - type Target = IFabricNodeContextResult; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricNodeContextResult2, - windows_core::IUnknown, - IFabricNodeContextResult -); -impl IFabricNodeContextResult2 { - pub unsafe fn GetDirectory( - &self, - logicaldirectoryname: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetDirectory)( - windows_core::Interface::as_raw(self), - logicaldirectoryname.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricNodeContextResult2 {} -unsafe impl Sync for IFabricNodeContextResult2 {} -#[repr(C)] -pub struct IFabricNodeContextResult2_Vtbl { - pub base__: IFabricNodeContextResult_Vtbl, - pub GetDirectory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricOperation, - IFabricOperation_Vtbl, - 0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a -); -impl core::ops::Deref for IFabricOperation { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricOperation, windows_core::IUnknown); -impl IFabricOperation { - pub unsafe fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA { - (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn GetData( - &self, - count: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetData)( - windows_core::Interface::as_raw(self), - count, - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn Acknowledge(&self) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).Acknowledge)(windows_core::Interface::as_raw(self)) - .ok() - } -} -unsafe impl Send for IFabricOperation {} -unsafe impl Sync for IFabricOperation {} -#[repr(C)] -pub struct IFabricOperation_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Metadata: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA, - pub GetData: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, - ) -> windows_core::HRESULT, - pub Acknowledge: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricOperationData, - IFabricOperationData_Vtbl, - 0xbab8ad87_37b7_482a_985d_baf38a785dcd -); -impl core::ops::Deref for IFabricOperationData { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricOperationData, windows_core::IUnknown); -impl IFabricOperationData { - pub unsafe fn GetData( - &self, - count: *mut u32, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetData)( - windows_core::Interface::as_raw(self), - count, - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricOperationData {} -unsafe impl Sync for IFabricOperationData {} -#[repr(C)] -pub struct IFabricOperationData_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub GetData: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut u32, - *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricOperationDataStream, - IFabricOperationDataStream_Vtbl, - 0xc4e9084c_be92_49c9_8c18_d44d088c2e32 -); -impl core::ops::Deref for IFabricOperationDataStream { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricOperationDataStream, windows_core::IUnknown); -impl IFabricOperationDataStream { - pub unsafe fn BeginGetNext( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetNext)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetNext(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetNext)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricOperationDataStream {} -unsafe impl Sync for IFabricOperationDataStream {} -#[repr(C)] -pub struct IFabricOperationDataStream_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginGetNext: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetNext: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricOperationStream, - IFabricOperationStream_Vtbl, - 0xa98fb97a_d6b0_408a_a878_a9edb09c2587 -); -impl core::ops::Deref for IFabricOperationStream { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricOperationStream, windows_core::IUnknown); -impl IFabricOperationStream { - pub unsafe fn BeginGetOperation( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginGetOperation)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndGetOperation(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndGetOperation)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricOperationStream {} -unsafe impl Sync for IFabricOperationStream {} -#[repr(C)] -pub struct IFabricOperationStream_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginGetOperation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndGetOperation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricOperationStream2, - IFabricOperationStream2_Vtbl, - 0x0930199b_590a_4065_bec9_5f93b6aae086 -); -impl core::ops::Deref for IFabricOperationStream2 { - type Target = IFabricOperationStream; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricOperationStream2, - windows_core::IUnknown, - IFabricOperationStream -); -impl IFabricOperationStream2 { - pub unsafe fn ReportFault( - &self, - faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportFault)( - windows_core::Interface::as_raw(self), - faulttype, - ) - .ok() - } -} -unsafe impl Send for IFabricOperationStream2 {} -unsafe impl Sync for IFabricOperationStream2 {} -#[repr(C)] -pub struct IFabricOperationStream2_Vtbl { - pub base__: IFabricOperationStream_Vtbl, - pub ReportFault: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricPrimaryReplicator, - IFabricPrimaryReplicator_Vtbl, - 0x564e50dd_c3a4_4600_a60e_6658874307ae -); -impl core::ops::Deref for IFabricPrimaryReplicator { - type Target = IFabricReplicator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricPrimaryReplicator, - windows_core::IUnknown, - IFabricReplicator -); -impl IFabricPrimaryReplicator { - pub unsafe fn BeginOnDataLoss( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOnDataLoss)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOnDataLoss)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn UpdateCatchUpReplicaSetConfiguration( - &self, - currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - previousconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateCatchUpReplicaSetConfiguration)( - windows_core::Interface::as_raw(self), - currentconfiguration, - previousconfiguration, - ) - .ok() - } - pub unsafe fn BeginWaitForCatchUpQuorum( - &self, - catchupmode: super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginWaitForCatchUpQuorum)( - windows_core::Interface::as_raw(self), - catchupmode, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndWaitForCatchUpQuorum(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndWaitForCatchUpQuorum)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn UpdateCurrentReplicaSetConfiguration( - &self, - currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateCurrentReplicaSetConfiguration)( - windows_core::Interface::as_raw(self), - currentconfiguration, - ) - .ok() - } - pub unsafe fn BeginBuildReplica( - &self, - replica: *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginBuildReplica)( - windows_core::Interface::as_raw(self), - replica, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndBuildReplica(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndBuildReplica)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn RemoveReplica(&self, replicaid: i64) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).RemoveReplica)( - windows_core::Interface::as_raw(self), - replicaid, - ) - .ok() - } -} -unsafe impl Send for IFabricPrimaryReplicator {} -unsafe impl Sync for IFabricPrimaryReplicator {} -#[repr(C)] -pub struct IFabricPrimaryReplicator_Vtbl { - pub base__: IFabricReplicator_Vtbl, - pub BeginOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u8, - ) -> windows_core::HRESULT, - pub UpdateCatchUpReplicaSetConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) - -> windows_core::HRESULT, - pub BeginWaitForCatchUpQuorum: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndWaitForCatchUpQuorum: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub UpdateCurrentReplicaSetConfiguration: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) - -> windows_core::HRESULT, - pub BeginBuildReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndBuildReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RemoveReplica: - unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricProcessExitHandler, - IFabricProcessExitHandler_Vtbl, - 0xc58d50a2_01f0_4267_bbe7_223b565c1346 -); -impl core::ops::Deref for IFabricProcessExitHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricProcessExitHandler, windows_core::IUnknown); -impl IFabricProcessExitHandler { - pub unsafe fn FabricProcessExited(&self) { - (windows_core::Interface::vtable(self).FabricProcessExited)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricProcessExitHandler {} -unsafe impl Sync for IFabricProcessExitHandler {} -#[repr(C)] -pub struct IFabricProcessExitHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub FabricProcessExited: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricReplicator, - IFabricReplicator_Vtbl, - 0x067f144a_e5be_4f5e_a181_8b5593e20242 -); -impl core::ops::Deref for IFabricReplicator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricReplicator, windows_core::IUnknown); -impl IFabricReplicator { - pub unsafe fn BeginOpen( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOpen)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOpen( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOpen)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginChangeRole( - &self, - epoch: *const super::FabricTypes::FABRIC_EPOCH, - role: super::FabricTypes::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginChangeRole)( - windows_core::Interface::as_raw(self), - epoch, - role, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndChangeRole(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndChangeRole)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateEpoch( - &self, - epoch: *const super::FabricTypes::FABRIC_EPOCH, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateEpoch)( - windows_core::Interface::as_raw(self), - epoch, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateEpoch(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpdateEpoch)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn BeginClose( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginClose)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndClose)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn GetCurrentProgress(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCurrentProgress)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetCatchUpCapability(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCatchUpCapability)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricReplicator {} -unsafe impl Sync for IFabricReplicator {} -#[repr(C)] -pub struct IFabricReplicator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginChangeRole: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_EPOCH, - super::FabricTypes::FABRIC_REPLICA_ROLE, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndChangeRole: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginUpdateEpoch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_EPOCH, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateEpoch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), - pub GetCurrentProgress: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - pub GetCatchUpCapability: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricReplicatorCatchupSpecificQuorum, - IFabricReplicatorCatchupSpecificQuorum_Vtbl, - 0xaa3116fe_277d_482d_bd16_5366fa405757 -); -impl core::ops::Deref for IFabricReplicatorCatchupSpecificQuorum { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricReplicatorCatchupSpecificQuorum, - windows_core::IUnknown -); -impl IFabricReplicatorCatchupSpecificQuorum {} -unsafe impl Send for IFabricReplicatorCatchupSpecificQuorum {} -unsafe impl Sync for IFabricReplicatorCatchupSpecificQuorum {} -#[repr(C)] -pub struct IFabricReplicatorCatchupSpecificQuorum_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, -} -windows_core::imp::define_interface!( - IFabricReplicatorSettingsResult, - IFabricReplicatorSettingsResult_Vtbl, - 0x718954f3_dc1e_4060_9806_0cbf36f71051 -); -impl core::ops::Deref for IFabricReplicatorSettingsResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricReplicatorSettingsResult, windows_core::IUnknown); -impl IFabricReplicatorSettingsResult { - pub unsafe fn get_ReplicatorSettings( - &self, - ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS { - (windows_core::Interface::vtable(self).get_ReplicatorSettings)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricReplicatorSettingsResult {} -unsafe impl Sync for IFabricReplicatorSettingsResult {} -#[repr(C)] -pub struct IFabricReplicatorSettingsResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_ReplicatorSettings: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, -} -windows_core::imp::define_interface!( - IFabricRuntime, - IFabricRuntime_Vtbl, - 0xcc53af8e_74cd_11df_ac3e_0024811e3892 -); -impl core::ops::Deref for IFabricRuntime { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricRuntime, windows_core::IUnknown); -impl IFabricRuntime { - pub unsafe fn BeginRegisterStatelessServiceFactory( - &self, - servicetypename: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRegisterStatelessServiceFactory)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - factory.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRegisterStatelessServiceFactory( - &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRegisterStatelessServiceFactory)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn RegisterStatelessServiceFactory( - &self, - servicetypename: P0, - factory: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).RegisterStatelessServiceFactory)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - factory.param().abi(), - ) - .ok() - } - pub unsafe fn BeginRegisterStatefulServiceFactory( - &self, - servicetypename: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRegisterStatefulServiceFactory)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - factory.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRegisterStatefulServiceFactory( - &self, - context: P0, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRegisterStatefulServiceFactory)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn RegisterStatefulServiceFactory( - &self, - servicetypename: P0, - factory: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).RegisterStatefulServiceFactory)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - factory.param().abi(), - ) - .ok() - } - pub unsafe fn CreateServiceGroupFactoryBuilder( - &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateServiceGroupFactoryBuilder)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginRegisterServiceGroupFactory( - &self, - groupservicetype: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - P2: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginRegisterServiceGroupFactory)( - windows_core::Interface::as_raw(self), - groupservicetype.param().abi(), - factory.param().abi(), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndRegisterServiceGroupFactory(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndRegisterServiceGroupFactory)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn RegisterServiceGroupFactory( - &self, - groupservicetype: P0, - factory: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).RegisterServiceGroupFactory)( - windows_core::Interface::as_raw(self), - groupservicetype.param().abi(), - factory.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricRuntime {} -unsafe impl Sync for IFabricRuntime {} -#[repr(C)] -pub struct IFabricRuntime_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginRegisterStatelessServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndRegisterStatelessServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RegisterStatelessServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRegisterStatefulServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) - -> windows_core::HRESULT, - pub EndRegisterStatefulServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RegisterStatefulServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub CreateServiceGroupFactoryBuilder: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginRegisterServiceGroupFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - u32, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndRegisterServiceGroupFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RegisterServiceGroupFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricSecondaryEventHandler, - IFabricSecondaryEventHandler_Vtbl, - 0x7d124a7d_258e_49f2_a9b0_e800406103fb -); -impl core::ops::Deref for IFabricSecondaryEventHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricSecondaryEventHandler, windows_core::IUnknown); -impl IFabricSecondaryEventHandler { - pub unsafe fn OnCopyComplete(&self, enumerator: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnCopyComplete)( - windows_core::Interface::as_raw(self), - enumerator.param().abi(), - ) - .ok() - } - pub unsafe fn OnReplicationOperation(&self, enumerator: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).OnReplicationOperation)( - windows_core::Interface::as_raw(self), - enumerator.param().abi(), - ) - .ok() - } -} -unsafe impl Send for IFabricSecondaryEventHandler {} -unsafe impl Sync for IFabricSecondaryEventHandler {} -#[repr(C)] -pub struct IFabricSecondaryEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnCopyComplete: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub OnReplicationOperation: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricSecurityCredentialsResult, - IFabricSecurityCredentialsResult_Vtbl, - 0x049a111d_6a30_48e9_8f69_470760d3efb9 -); -impl core::ops::Deref for IFabricSecurityCredentialsResult { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricSecurityCredentialsResult, windows_core::IUnknown); -impl IFabricSecurityCredentialsResult { - pub unsafe fn get_SecurityCredentials( - &self, - ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS { - (windows_core::Interface::vtable(self).get_SecurityCredentials)( - windows_core::Interface::as_raw(self), - ) - } -} -unsafe impl Send for IFabricSecurityCredentialsResult {} -unsafe impl Sync for IFabricSecurityCredentialsResult {} -#[repr(C)] -pub struct IFabricSecurityCredentialsResult_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_SecurityCredentials: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, -} -windows_core::imp::define_interface!( - IFabricServiceGroupFactory, - IFabricServiceGroupFactory_Vtbl, - 0x3860d61d_1e51_4a65_b109_d93c11311657 -); -impl core::ops::Deref for IFabricServiceGroupFactory { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceGroupFactory, windows_core::IUnknown); -impl IFabricServiceGroupFactory {} -unsafe impl Send for IFabricServiceGroupFactory {} -unsafe impl Sync for IFabricServiceGroupFactory {} -#[repr(C)] -pub struct IFabricServiceGroupFactory_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, -} -windows_core::imp::define_interface!( - IFabricServiceGroupFactoryBuilder, - IFabricServiceGroupFactoryBuilder_Vtbl, - 0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c -); -impl core::ops::Deref for IFabricServiceGroupFactoryBuilder { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceGroupFactoryBuilder, windows_core::IUnknown); -impl IFabricServiceGroupFactoryBuilder { - pub unsafe fn AddStatelessServiceFactory( - &self, - memberservicetype: P0, - factory: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).AddStatelessServiceFactory)( - windows_core::Interface::as_raw(self), - memberservicetype.param().abi(), - factory.param().abi(), - ) - .ok() - } - pub unsafe fn AddStatefulServiceFactory( - &self, - memberservicetype: P0, - factory: P1, - ) -> windows_core::Result<()> - where - P0: windows_core::Param, - P1: windows_core::Param, - { - (windows_core::Interface::vtable(self).AddStatefulServiceFactory)( - windows_core::Interface::as_raw(self), - memberservicetype.param().abi(), - factory.param().abi(), - ) - .ok() - } - pub unsafe fn RemoveServiceFactory(&self, memberservicetype: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).RemoveServiceFactory)( - windows_core::Interface::as_raw(self), - memberservicetype.param().abi(), - ) - .ok() - } - pub unsafe fn ToServiceGroupFactory(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ToServiceGroupFactory)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricServiceGroupFactoryBuilder {} -unsafe impl Sync for IFabricServiceGroupFactoryBuilder {} -#[repr(C)] -pub struct IFabricServiceGroupFactoryBuilder_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub AddStatelessServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub AddStatefulServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub RemoveServiceFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - ) -> windows_core::HRESULT, - pub ToServiceGroupFactory: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricServiceGroupPartition, - IFabricServiceGroupPartition_Vtbl, - 0x2b24299a_7489_467f_8e7f_4507bff73b86 -); -impl core::ops::Deref for IFabricServiceGroupPartition { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricServiceGroupPartition, windows_core::IUnknown); -impl IFabricServiceGroupPartition { - pub unsafe fn ResolveMember( - &self, - name: P0, - riid: *const windows_core::GUID, - ) -> windows_core::Result<*mut core::ffi::c_void> - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).ResolveMember)( - windows_core::Interface::as_raw(self), - name.param().abi(), - riid, - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricServiceGroupPartition {} -unsafe impl Sync for IFabricServiceGroupPartition {} -#[repr(C)] -pub struct IFabricServiceGroupPartition_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub ResolveMember: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_URI, - *const windows_core::GUID, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStateProvider, - IFabricStateProvider_Vtbl, - 0x3ebfec79_bd27_43f3_8be8_da38ee723951 -); -impl core::ops::Deref for IFabricStateProvider { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStateProvider, windows_core::IUnknown); -impl IFabricStateProvider { - pub unsafe fn BeginUpdateEpoch( - &self, - epoch: *const super::FabricTypes::FABRIC_EPOCH, - previousepochlastsequencenumber: i64, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginUpdateEpoch)( - windows_core::Interface::as_raw(self), - epoch, - previousepochlastsequencenumber, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndUpdateEpoch(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndUpdateEpoch)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn GetLastCommittedSequenceNumber(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetLastCommittedSequenceNumber)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn BeginOnDataLoss( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOnDataLoss)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOnDataLoss)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetCopyContext(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCopyContext)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn GetCopyState( - &self, - uptosequencenumber: i64, - copycontextstream: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCopyState)( - windows_core::Interface::as_raw(self), - uptosequencenumber, - copycontextstream.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricStateProvider {} -unsafe impl Sync for IFabricStateProvider {} -#[repr(C)] -pub struct IFabricStateProvider_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginUpdateEpoch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_EPOCH, - i64, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndUpdateEpoch: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub GetLastCommittedSequenceNumber: - unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - pub BeginOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u8, - ) -> windows_core::HRESULT, - pub GetCopyContext: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub GetCopyState: unsafe extern "system" fn( - *mut core::ffi::c_void, - i64, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStateReplicator, - IFabricStateReplicator_Vtbl, - 0x89e9a978_c771_44f2_92e8_3bf271cabe9c -); -impl core::ops::Deref for IFabricStateReplicator { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStateReplicator, windows_core::IUnknown); -impl IFabricStateReplicator { - pub unsafe fn BeginReplicate( - &self, - operationdata: P0, - callback: P1, - sequencenumber: *mut i64, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginReplicate)( - windows_core::Interface::as_raw(self), - operationdata.param().abi(), - callback.param().abi(), - sequencenumber, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndReplicate(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndReplicate)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetReplicationStream(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReplicationStream)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn GetCopyStream(&self) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetCopyStream)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).UpdateReplicatorSettings)( - windows_core::Interface::as_raw(self), - replicatorsettings, - ) - .ok() - } -} -unsafe impl Send for IFabricStateReplicator {} -unsafe impl Sync for IFabricStateReplicator {} -#[repr(C)] -pub struct IFabricStateReplicator_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginReplicate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndReplicate: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut i64, - ) -> windows_core::HRESULT, - pub GetReplicationStream: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub GetCopyStream: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub UpdateReplicatorSettings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStateReplicator2, - IFabricStateReplicator2_Vtbl, - 0x4a28d542_658f_46f9_9bf4_79b7cae25c5d -); -impl core::ops::Deref for IFabricStateReplicator2 { - type Target = IFabricStateReplicator; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStateReplicator2, - windows_core::IUnknown, - IFabricStateReplicator -); -impl IFabricStateReplicator2 { - pub unsafe fn GetReplicatorSettings( - &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReplicatorSettings)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricStateReplicator2 {} -unsafe impl Sync for IFabricStateReplicator2 {} -#[repr(C)] -pub struct IFabricStateReplicator2_Vtbl { - pub base__: IFabricStateReplicator_Vtbl, - pub GetReplicatorSettings: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServiceFactory, - IFabricStatefulServiceFactory_Vtbl, - 0x77ff0c6b_6780_48ec_b4b0_61989327b0f2 -); -impl core::ops::Deref for IFabricStatefulServiceFactory { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatefulServiceFactory, windows_core::IUnknown); -impl IFabricStatefulServiceFactory { - pub unsafe fn CreateReplica( - &self, - servicetypename: P0, - servicename: P1, - initializationdata: &[u8], - partitionid: windows_core::GUID, - replicaid: i64, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReplica)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - servicename.param().abi(), - initializationdata.len().try_into().unwrap(), - core::mem::transmute(initializationdata.as_ptr()), - core::mem::transmute(partitionid), - replicaid, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricStatefulServiceFactory {} -unsafe impl Sync for IFabricStatefulServiceFactory {} -#[repr(C)] -pub struct IFabricStatefulServiceFactory_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub CreateReplica: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - super::FabricTypes::FABRIC_URI, - u32, - *const u8, - windows_core::GUID, - i64, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServicePartition, - IFabricStatefulServicePartition_Vtbl, - 0x5beccc37_8655_4f20_bd43_f50691d7cd16 -); -impl core::ops::Deref for IFabricStatefulServicePartition { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatefulServicePartition, windows_core::IUnknown); -impl IFabricStatefulServicePartition { - pub unsafe fn GetPartitionInfo( - &self, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartitionInfo)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetReadStatus( - &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetReadStatus)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn GetWriteStatus( - &self, - ) -> windows_core::Result { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetWriteStatus)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn CreateReplicator( - &self, - stateprovider: P0, - replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut Option, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateReplicator)( - windows_core::Interface::as_raw(self), - stateprovider.param().abi(), - replicatorsettings, - core::mem::transmute(replicator), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::FabricTypes::FABRIC_LOAD_METRIC], - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLoad)( - windows_core::Interface::as_raw(self), - metrics.len().try_into().unwrap(), - core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportFault)( - windows_core::Interface::as_raw(self), - faulttype, - ) - .ok() - } -} -unsafe impl Send for IFabricStatefulServicePartition {} -unsafe impl Sync for IFabricStatefulServicePartition {} -#[repr(C)] -pub struct IFabricStatefulServicePartition_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub GetPartitionInfo: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> windows_core::HRESULT, - pub GetReadStatus: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> windows_core::HRESULT, - pub GetWriteStatus: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> windows_core::HRESULT, - pub CreateReplicator: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - *mut *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub ReportLoad: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *const super::FabricTypes::FABRIC_LOAD_METRIC, - ) -> windows_core::HRESULT, - pub ReportFault: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServicePartition1, - IFabricStatefulServicePartition1_Vtbl, - 0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf -); -impl core::ops::Deref for IFabricStatefulServicePartition1 { - type Target = IFabricStatefulServicePartition; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatefulServicePartition1, - windows_core::IUnknown, - IFabricStatefulServicePartition -); -impl IFabricStatefulServicePartition1 { - pub unsafe fn ReportMoveCost( - &self, - movecost: super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportMoveCost)( - windows_core::Interface::as_raw(self), - movecost, - ) - .ok() - } -} -unsafe impl Send for IFabricStatefulServicePartition1 {} -unsafe impl Sync for IFabricStatefulServicePartition1 {} -#[repr(C)] -pub struct IFabricStatefulServicePartition1_Vtbl { - pub base__: IFabricStatefulServicePartition_Vtbl, - pub ReportMoveCost: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServicePartition2, - IFabricStatefulServicePartition2_Vtbl, - 0xdf27b476_fa25_459f_a7d3_87d3eec9c73c -); -impl core::ops::Deref for IFabricStatefulServicePartition2 { - type Target = IFabricStatefulServicePartition1; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatefulServicePartition2, - windows_core::IUnknown, - IFabricStatefulServicePartition, - IFabricStatefulServicePartition1 -); -impl IFabricStatefulServicePartition2 { - pub unsafe fn ReportReplicaHealth( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportReplicaHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportPartitionHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } -} -unsafe impl Send for IFabricStatefulServicePartition2 {} -unsafe impl Sync for IFabricStatefulServicePartition2 {} -#[repr(C)] -pub struct IFabricStatefulServicePartition2_Vtbl { - pub base__: IFabricStatefulServicePartition1_Vtbl, - pub ReportReplicaHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, - pub ReportPartitionHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServicePartition3, - IFabricStatefulServicePartition3_Vtbl, - 0x51f1269d_b061_4c1c_96cf_6508cece813b -); -impl core::ops::Deref for IFabricStatefulServicePartition3 { - type Target = IFabricStatefulServicePartition2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatefulServicePartition3, - windows_core::IUnknown, - IFabricStatefulServicePartition, - IFabricStatefulServicePartition1, - IFabricStatefulServicePartition2 -); -impl IFabricStatefulServicePartition3 { - pub unsafe fn ReportReplicaHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportReplicaHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } - pub unsafe fn ReportPartitionHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportPartitionHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } -} -unsafe impl Send for IFabricStatefulServicePartition3 {} -unsafe impl Sync for IFabricStatefulServicePartition3 {} -#[repr(C)] -pub struct IFabricStatefulServicePartition3_Vtbl { - pub base__: IFabricStatefulServicePartition2_Vtbl, - pub ReportReplicaHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, - pub ReportPartitionHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatefulServiceReplica, - IFabricStatefulServiceReplica_Vtbl, - 0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a -); -impl core::ops::Deref for IFabricStatefulServiceReplica { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatefulServiceReplica, windows_core::IUnknown); -impl IFabricStatefulServiceReplica { - pub unsafe fn BeginOpen( - &self, - openmode: super::FabricTypes::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOpen)( - windows_core::Interface::as_raw(self), - openmode, - partition.param().abi(), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOpen(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOpen)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginChangeRole( - &self, - newrole: super::FabricTypes::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginChangeRole)( - windows_core::Interface::as_raw(self), - newrole, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndChangeRole( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndChangeRole)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginClose( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginClose)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndClose)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStatefulServiceReplica {} -unsafe impl Sync for IFabricStatefulServiceReplica {} -#[repr(C)] -pub struct IFabricStatefulServiceReplica_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_REPLICA_OPEN_MODE, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginChangeRole: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_REPLICA_ROLE, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndChangeRole: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricStatelessServiceFactory, - IFabricStatelessServiceFactory_Vtbl, - 0xcc53af8f_74cd_11df_ac3e_0024811e3892 -); -impl core::ops::Deref for IFabricStatelessServiceFactory { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatelessServiceFactory, windows_core::IUnknown); -impl IFabricStatelessServiceFactory { - pub unsafe fn CreateInstance( - &self, - servicetypename: P0, - servicename: P1, - initializationdata: &[u8], - partitionid: windows_core::GUID, - instanceid: i64, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).CreateInstance)( - windows_core::Interface::as_raw(self), - servicetypename.param().abi(), - servicename.param().abi(), - initializationdata.len().try_into().unwrap(), - core::mem::transmute(initializationdata.as_ptr()), - core::mem::transmute(partitionid), - instanceid, - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } -} -unsafe impl Send for IFabricStatelessServiceFactory {} -unsafe impl Sync for IFabricStatelessServiceFactory {} -#[repr(C)] -pub struct IFabricStatelessServiceFactory_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub CreateInstance: unsafe extern "system" fn( - *mut core::ffi::c_void, - windows_core::PCWSTR, - super::FabricTypes::FABRIC_URI, - u32, - *const u8, - windows_core::GUID, - i64, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatelessServiceInstance, - IFabricStatelessServiceInstance_Vtbl, - 0xcc53af90_74cd_11df_ac3e_0024811e3892 -); -impl core::ops::Deref for IFabricStatelessServiceInstance { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatelessServiceInstance, windows_core::IUnknown); -impl IFabricStatelessServiceInstance { - pub unsafe fn BeginOpen( - &self, - partition: P0, - callback: P1, - ) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOpen)( - windows_core::Interface::as_raw(self), - partition.param().abi(), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOpen( - &self, - context: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOpen)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn BeginClose( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginClose)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - (windows_core::Interface::vtable(self).EndClose)( - windows_core::Interface::as_raw(self), - context.param().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStatelessServiceInstance {} -unsafe impl Sync for IFabricStatelessServiceInstance {} -#[repr(C)] -pub struct IFabricStatelessServiceInstance_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndClose: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricStatelessServicePartition, - IFabricStatelessServicePartition_Vtbl, - 0xcc53af91_74cd_11df_ac3e_0024811e3892 -); -impl core::ops::Deref for IFabricStatelessServicePartition { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStatelessServicePartition, windows_core::IUnknown); -impl IFabricStatelessServicePartition { - pub unsafe fn GetPartitionInfo( - &self, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).GetPartitionInfo)( - windows_core::Interface::as_raw(self), - &mut result__, - ) - .map(|| result__) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::FabricTypes::FABRIC_LOAD_METRIC], - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportLoad)( - windows_core::Interface::as_raw(self), - metrics.len().try_into().unwrap(), - core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportFault)( - windows_core::Interface::as_raw(self), - faulttype, - ) - .ok() - } -} -unsafe impl Send for IFabricStatelessServicePartition {} -unsafe impl Sync for IFabricStatelessServicePartition {} -#[repr(C)] -pub struct IFabricStatelessServicePartition_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub GetPartitionInfo: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> windows_core::HRESULT, - pub ReportLoad: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, - *const super::FabricTypes::FABRIC_LOAD_METRIC, - ) -> windows_core::HRESULT, - pub ReportFault: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatelessServicePartition1, - IFabricStatelessServicePartition1_Vtbl, - 0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b -); -impl core::ops::Deref for IFabricStatelessServicePartition1 { - type Target = IFabricStatelessServicePartition; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatelessServicePartition1, - windows_core::IUnknown, - IFabricStatelessServicePartition -); -impl IFabricStatelessServicePartition1 { - pub unsafe fn ReportMoveCost( - &self, - movecost: super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportMoveCost)( - windows_core::Interface::as_raw(self), - movecost, - ) - .ok() - } -} -unsafe impl Send for IFabricStatelessServicePartition1 {} -unsafe impl Sync for IFabricStatelessServicePartition1 {} -#[repr(C)] -pub struct IFabricStatelessServicePartition1_Vtbl { - pub base__: IFabricStatelessServicePartition_Vtbl, - pub ReportMoveCost: unsafe extern "system" fn( - *mut core::ffi::c_void, - super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatelessServicePartition2, - IFabricStatelessServicePartition2_Vtbl, - 0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4 -); -impl core::ops::Deref for IFabricStatelessServicePartition2 { - type Target = IFabricStatelessServicePartition1; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatelessServicePartition2, - windows_core::IUnknown, - IFabricStatelessServicePartition, - IFabricStatelessServicePartition1 -); -impl IFabricStatelessServicePartition2 { - pub unsafe fn ReportInstanceHealth( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportInstanceHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportPartitionHealth)( - windows_core::Interface::as_raw(self), - healthinfo, - ) - .ok() - } -} -unsafe impl Send for IFabricStatelessServicePartition2 {} -unsafe impl Sync for IFabricStatelessServicePartition2 {} -#[repr(C)] -pub struct IFabricStatelessServicePartition2_Vtbl { - pub base__: IFabricStatelessServicePartition1_Vtbl, - pub ReportInstanceHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, - pub ReportPartitionHealth: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStatelessServicePartition3, - IFabricStatelessServicePartition3_Vtbl, - 0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f -); -impl core::ops::Deref for IFabricStatelessServicePartition3 { - type Target = IFabricStatelessServicePartition2; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStatelessServicePartition3, - windows_core::IUnknown, - IFabricStatelessServicePartition, - IFabricStatelessServicePartition1, - IFabricStatelessServicePartition2 -); -impl IFabricStatelessServicePartition3 { - pub unsafe fn ReportInstanceHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportInstanceHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } - pub unsafe fn ReportPartitionHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()> { - (windows_core::Interface::vtable(self).ReportPartitionHealth2)( - windows_core::Interface::as_raw(self), - healthinfo, - sendoptions, - ) - .ok() - } -} -unsafe impl Send for IFabricStatelessServicePartition3 {} -unsafe impl Sync for IFabricStatelessServicePartition3 {} -#[repr(C)] -pub struct IFabricStatelessServicePartition3_Vtbl { - pub base__: IFabricStatelessServicePartition2_Vtbl, - pub ReportInstanceHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, - pub ReportPartitionHealth2: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStoreEventHandler, - IFabricStoreEventHandler_Vtbl, - 0x220e6da4_985b_4dee_8fe9_77521b838795 -); -impl core::ops::Deref for IFabricStoreEventHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStoreEventHandler, windows_core::IUnknown); -impl IFabricStoreEventHandler { - pub unsafe fn OnDataLoss(&self) { - (windows_core::Interface::vtable(self).OnDataLoss)(windows_core::Interface::as_raw(self)) - } -} -unsafe impl Send for IFabricStoreEventHandler {} -unsafe impl Sync for IFabricStoreEventHandler {} -#[repr(C)] -pub struct IFabricStoreEventHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub OnDataLoss: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricStoreEventHandler2, - IFabricStoreEventHandler2_Vtbl, - 0xcce4523f_614b_4d6a_98a3_1e197c0213ea -); -impl core::ops::Deref for IFabricStoreEventHandler2 { - type Target = IFabricStoreEventHandler; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!( - IFabricStoreEventHandler2, - windows_core::IUnknown, - IFabricStoreEventHandler -); -impl IFabricStoreEventHandler2 { - pub unsafe fn BeginOnDataLoss( - &self, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginOnDataLoss)( - windows_core::Interface::as_raw(self), - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndOnDataLoss)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) - } -} -unsafe impl Send for IFabricStoreEventHandler2 {} -unsafe impl Sync for IFabricStoreEventHandler2 {} -#[repr(C)] -pub struct IFabricStoreEventHandler2_Vtbl { - pub base__: IFabricStoreEventHandler_Vtbl, - pub BeginOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u8, - ) -> windows_core::HRESULT, -} -windows_core::imp::define_interface!( - IFabricStorePostBackupHandler, - IFabricStorePostBackupHandler_Vtbl, - 0x2af2e8a6_41df_4e32_9d2a_d73a711e652a -); -impl core::ops::Deref for IFabricStorePostBackupHandler { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricStorePostBackupHandler, windows_core::IUnknown); -impl IFabricStorePostBackupHandler { - pub unsafe fn BeginPostBackup( - &self, - info: *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginPostBackup)( - windows_core::Interface::as_raw(self), - info, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) - } - pub unsafe fn EndPostBackup(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndPostBackup)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ContextId< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_ContextId(this) + } + } + unsafe extern "system" fn get_CodePackageName< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_CodePackageName(this) + } + } + unsafe extern "system" fn get_CodePackageVersion< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_CodePackageVersion(this) + } + } + unsafe extern "system" fn get_WorkDirectory< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_WorkDirectory(this) + } + } + unsafe extern "system" fn get_LogDirectory< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_LogDirectory(this) + } + } + unsafe extern "system" fn get_TempDirectory< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_TempDirectory(this) + } + } + unsafe extern "system" fn get_ServiceTypes< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_ServiceTypes(this) + } + } + unsafe extern "system" fn get_ServiceGroupTypes< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_ServiceGroupTypes(this) + } + } + unsafe extern "system" fn get_ApplicationPrincipals< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_ApplicationPrincipals(this) + } + } + unsafe extern "system" fn get_ServiceEndpointResources< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::get_ServiceEndpointResources(this) + } + } + unsafe extern "system" fn GetServiceEndpointResource< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + serviceendpointresourcename: windows_core::PCWSTR, + bufferedvalue: *mut *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetServiceEndpointResource( + this, + core::mem::transmute(&serviceendpointresourcename), + ) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetCodePackageNames< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + names: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetCodePackageNames(this) { + Ok(ok__) => { + names.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetConfigurationPackageNames< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + names: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetConfigurationPackageNames(this) { + Ok(ok__) => { + names.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetDataPackageNames< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + names: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetDataPackageNames(this) { + Ok(ok__) => { + names.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetCodePackage< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + codepackagename: windows_core::PCWSTR, + codepackage: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetCodePackage( + this, + core::mem::transmute(&codepackagename), + ) { + Ok(ok__) => { + codepackage.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetConfigurationPackage< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + configpackagename: windows_core::PCWSTR, + configpackage: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetConfigurationPackage( + this, + core::mem::transmute(&configpackagename), + ) { + Ok(ok__) => { + configpackage.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetDataPackage< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + datapackagename: windows_core::PCWSTR, + datapackage: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::GetDataPackage( + this, + core::mem::transmute(&datapackagename), + ) { + Ok(ok__) => { + datapackage.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn RegisterCodePackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callback: *mut core::ffi::c_void, + callbackhandle: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::RegisterCodePackageChangeHandler( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + callbackhandle.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn UnregisterCodePackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callbackhandle: i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::UnregisterCodePackageChangeHandler( + this, + core::mem::transmute_copy(&callbackhandle), + ) + .into() + } + } + unsafe extern "system" fn RegisterConfigurationPackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callback: *mut core::ffi::c_void, + callbackhandle: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl:: RegisterConfigurationPackageChangeHandler ( this , core::mem::transmute_copy ( & callback ) , ) { Ok ( ok__ ) => { callbackhandle . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + } + } + unsafe extern "system" fn UnregisterConfigurationPackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callbackhandle: i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl:: UnregisterConfigurationPackageChangeHandler ( this , core::mem::transmute_copy ( & callbackhandle ) , ) . into ( ) + } + } + unsafe extern "system" fn RegisterDataPackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callback: *mut core::ffi::c_void, + callbackhandle: *mut i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext_Impl::RegisterDataPackageChangeHandler( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + callbackhandle.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn UnregisterDataPackageChangeHandler< + Identity: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callbackhandle: i64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext_Impl::UnregisterDataPackageChangeHandler( + this, + core::mem::transmute_copy(&callbackhandle), + ) + .into() + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ContextId: get_ContextId::, + get_CodePackageName: get_CodePackageName::, + get_CodePackageVersion: get_CodePackageVersion::, + get_WorkDirectory: get_WorkDirectory::, + get_LogDirectory: get_LogDirectory::, + get_TempDirectory: get_TempDirectory::, + get_ServiceTypes: get_ServiceTypes::, + get_ServiceGroupTypes: get_ServiceGroupTypes::, + get_ApplicationPrincipals: get_ApplicationPrincipals::, + get_ServiceEndpointResources: get_ServiceEndpointResources::, + GetServiceEndpointResource: GetServiceEndpointResource::, + GetCodePackageNames: GetCodePackageNames::, + GetConfigurationPackageNames: GetConfigurationPackageNames::, + GetDataPackageNames: GetDataPackageNames::, + GetCodePackage: GetCodePackage::, + GetConfigurationPackage: GetConfigurationPackage::, + GetDataPackage: GetDataPackage::, + RegisterCodePackageChangeHandler: RegisterCodePackageChangeHandler::, + UnregisterCodePackageChangeHandler: UnregisterCodePackageChangeHandler::< + Identity, + OFFSET, + >, + RegisterConfigurationPackageChangeHandler: RegisterConfigurationPackageChangeHandler::< + Identity, + OFFSET, + >, + UnregisterConfigurationPackageChangeHandler: + UnregisterConfigurationPackageChangeHandler::, + RegisterDataPackageChangeHandler: RegisterDataPackageChangeHandler::, + UnregisterDataPackageChangeHandler: UnregisterDataPackageChangeHandler::< + Identity, + OFFSET, + >, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID } } -unsafe impl Send for IFabricStorePostBackupHandler {} -unsafe impl Sync for IFabricStorePostBackupHandler {} -#[repr(C)] -pub struct IFabricStorePostBackupHandler_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub BeginPostBackup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, - *mut core::ffi::c_void, - *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT, - pub EndPostBackup: unsafe extern "system" fn( - *mut core::ffi::c_void, - *mut core::ffi::c_void, - *mut u8, - ) -> windows_core::HRESULT, -} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext {} windows_core::imp::define_interface!( - IFabricTransaction, - IFabricTransaction_Vtbl, - 0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8 + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext2_Vtbl, + 0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9 ); -impl core::ops::Deref for IFabricTransaction { - type Target = IFabricTransactionBase; +impl core::ops::Deref for IFabricCodePackageActivationContext2 { + type Target = IFabricCodePackageActivationContext; fn deref(&self) -> &Self::Target { unsafe { core::mem::transmute(self) } } } windows_core::imp::interface_hierarchy!( - IFabricTransaction, + IFabricCodePackageActivationContext2, windows_core::IUnknown, - IFabricTransactionBase + IFabricCodePackageActivationContext ); -impl IFabricTransaction { - pub unsafe fn BeginCommit( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).BeginCommit)( - windows_core::Interface::as_raw(self), - timeoutmilliseconds, - callback.param().abi(), - &mut result__, - ) - .and_then(|| windows_core::Type::from_abi(result__)) +impl IFabricCodePackageActivationContext2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationName)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn EndCommit(&self, context: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(self).EndCommit)( - windows_core::Interface::as_raw(self), - context.param().abi(), - &mut result__, - ) - .map(|| result__) + pub unsafe fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_ApplicationTypeName)( + windows_core::Interface::as_raw(self), + ) + } } - pub unsafe fn Rollback(&self) { - (windows_core::Interface::vtable(self).Rollback)(windows_core::Interface::as_raw(self)) + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn GetServiceManifestName( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetServiceManifestName)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetServiceManifestVersion)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -unsafe impl Send for IFabricTransaction {} -unsafe impl Sync for IFabricTransaction {} #[repr(C)] -pub struct IFabricTransaction_Vtbl { - pub base__: IFabricTransactionBase_Vtbl, - pub BeginCommit: unsafe extern "system" fn( - *mut core::ffi::c_void, - u32, +pub struct IFabricCodePackageActivationContext2_Vtbl { + pub base__: IFabricCodePackageActivationContext_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ApplicationName: + unsafe extern "system" fn(*mut core::ffi::c_void) -> super::FabricTypes::FABRIC_URI, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ApplicationName: usize, + pub get_ApplicationTypeName: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub GetServiceManifestName: unsafe extern "system" fn( *mut core::ffi::c_void, *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub EndCommit: unsafe extern "system" fn( - *mut core::ffi::c_void, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + GetServiceManifestName: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub GetServiceManifestVersion: unsafe extern "system" fn( *mut core::ffi::c_void, - *mut i64, + *mut *mut core::ffi::c_void, ) -> windows_core::HRESULT, - pub Rollback: unsafe extern "system" fn(*mut core::ffi::c_void), -} -windows_core::imp::define_interface!( - IFabricTransactionBase, - IFabricTransactionBase_Vtbl, - 0x32d656a1_7ad5_47b8_bd66_a2e302626b7e -); -impl core::ops::Deref for IFabricTransactionBase { - type Target = windows_core::IUnknown; - fn deref(&self) -> &Self::Target { - unsafe { core::mem::transmute(self) } - } -} -windows_core::imp::interface_hierarchy!(IFabricTransactionBase, windows_core::IUnknown); -impl IFabricTransactionBase { - pub unsafe fn get_Id(&self) -> *mut windows_core::GUID { - (windows_core::Interface::vtable(self).get_Id)(windows_core::Interface::as_raw(self)) - } - pub unsafe fn get_IsolationLevel( - &self, - ) -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL { - (windows_core::Interface::vtable(self).get_IsolationLevel)(windows_core::Interface::as_raw( - self, - )) - } -} -unsafe impl Send for IFabricTransactionBase {} -unsafe impl Sync for IFabricTransactionBase {} -#[repr(C)] -pub struct IFabricTransactionBase_Vtbl { - pub base__: windows_core::IUnknown_Vtbl, - pub get_Id: unsafe extern "system" fn(*mut core::ffi::c_void) -> *mut windows_core::GUID, - pub get_IsolationLevel: - unsafe extern "system" fn( - *mut core::ffi::c_void, - ) - -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + GetServiceManifestVersion: usize, } -pub const FabricRuntime: windows_core::GUID = - windows_core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); -pub type FnFabricMain = Option< - unsafe extern "system" fn( - runtime: Option, - activationcontext: Option, - ) -> windows_core::HRESULT, ->; -pub trait IFabricAtomicGroupStateProvider_Impl: Sized { - fn BeginAtomicGroupCommit( - &self, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndAtomicGroupCommit( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginAtomicGroupRollback( - &self, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndAtomicGroupRollback( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginUndoProgress( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext2_Impl: + IFabricCodePackageActivationContext_Impl +{ + fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI; + fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR; + fn GetServiceManifestName( &self, - fromcommitsequencenumber: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndUndoProgress( + ) -> windows_core::Result; + fn GetServiceManifestVersion( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricAtomicGroupStateProvider {} -impl IFabricAtomicGroupStateProvider_Vtbl { - pub const fn new( - ) -> IFabricAtomicGroupStateProvider_Vtbl - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - unsafe extern "system" fn BeginAtomicGroupCommit< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext2_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ApplicationName< + Identity: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateProvider_Impl::BeginAtomicGroupCommit( - this, - core::mem::transmute_copy(&atomicgroupid), - core::mem::transmute_copy(&commitsequencenumber), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> super::FabricTypes::FABRIC_URI { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext2_Impl::get_ApplicationName(this) + } + } + unsafe extern "system" fn get_ApplicationTypeName< + Identity: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext2_Impl::get_ApplicationTypeName(this) + } + } + unsafe extern "system" fn GetServiceManifestName< + Identity: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + servicemanifestname: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext2_Impl::GetServiceManifestName(this) { + Ok(ok__) => { + servicemanifestname.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndAtomicGroupCommit< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetServiceManifestVersion< + Identity: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAtomicGroupStateProvider_Impl::EndAtomicGroupCommit( - this, - windows_core::from_raw_borrowed(&context), + servicemanifestversion: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext2_Impl::GetServiceManifestVersion(this) { + Ok(ok__) => { + servicemanifestversion.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: IFabricCodePackageActivationContext_Vtbl::new::(), + get_ApplicationName: get_ApplicationName::, + get_ApplicationTypeName: get_ApplicationTypeName::, + GetServiceManifestName: GetServiceManifestName::, + GetServiceManifestVersion: GetServiceManifestVersion::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext2 {} +windows_core::imp::define_interface!( + IFabricCodePackageActivationContext3, + IFabricCodePackageActivationContext3_Vtbl, + 0x6efee900_f491_4b03_bc5b_3a70de103593 +); +impl core::ops::Deref for IFabricCodePackageActivationContext3 { + type Target = IFabricCodePackageActivationContext2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext3, + windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2 +); +impl IFabricCodePackageActivationContext3 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportApplicationHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportApplicationHealth)( + windows_core::Interface::as_raw(self), + healthinfo, ) - .into() + .ok() } - unsafe extern "system" fn BeginAtomicGroupRollback< - Identity: windows_core::IUnknownImpl, + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportDeployedApplicationHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricCodePackageActivationContext3_Vtbl { + pub base__: IFabricCodePackageActivationContext2_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportApplicationHealth: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportDeployedApplicationHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportDeployedApplicationHealth: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportDeployedServicePackageHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportDeployedServicePackageHealth: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext3_Impl: + IFabricCodePackageActivationContext2_Impl +{ + fn ReportApplicationHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()>; + fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()>; + fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext3_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn ReportApplicationHealth< + Identity: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateProvider_Impl::BeginAtomicGroupRollback( - this, - core::mem::transmute_copy(&atomicgroupid), - core::mem::transmute_copy(&rollbackequencenumber), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext3_Impl::ReportApplicationHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() } } - unsafe extern "system" fn EndAtomicGroupRollback< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAtomicGroupStateProvider_Impl::EndAtomicGroupRollback( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() - } - unsafe extern "system" fn BeginUndoProgress< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn ReportDeployedApplicationHealth< + Identity: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - fromcommitsequencenumber: i64, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateProvider_Impl::BeginUndoProgress( - this, - core::mem::transmute_copy(&fromcommitsequencenumber), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext3_Impl::ReportDeployedApplicationHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() } } - unsafe extern "system" fn EndUndoProgress< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn ReportDeployedServicePackageHealth< + Identity: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricAtomicGroupStateProvider_Impl::EndUndoProgress( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext3_Impl::ReportDeployedServicePackageHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginAtomicGroupCommit: BeginAtomicGroupCommit::, - EndAtomicGroupCommit: EndAtomicGroupCommit::, - BeginAtomicGroupRollback: BeginAtomicGroupRollback::, - EndAtomicGroupRollback: EndAtomicGroupRollback::, - BeginUndoProgress: BeginUndoProgress::, - EndUndoProgress: EndUndoProgress::, + base__: IFabricCodePackageActivationContext2_Vtbl::new::(), + ReportApplicationHealth: ReportApplicationHealth::, + ReportDeployedApplicationHealth: ReportDeployedApplicationHealth::, + ReportDeployedServicePackageHealth: ReportDeployedServicePackageHealth::< + Identity, + OFFSET, + >, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricAtomicGroupStateReplicator_Impl: Sized { - fn CreateAtomicGroup(&self) -> windows_core::Result; - fn BeginReplicateAtomicGroupOperation( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext3 {} +windows_core::imp::define_interface!( + IFabricCodePackageActivationContext4, + IFabricCodePackageActivationContext4_Vtbl, + 0x99efebb6_a7b4_4d45_b45e_f191a66eef03 +); +impl core::ops::Deref for IFabricCodePackageActivationContext4 { + type Target = IFabricCodePackageActivationContext3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext4, + windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3 +); +impl IFabricCodePackageActivationContext4 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportApplicationHealth2( &self, - atomicgroupid: i64, - operationdata: Option<&IFabricOperationData>, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - operationsequencenumber: *mut i64, - ) -> windows_core::Result; - fn EndReplicateAtomicGroupOperation( + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportApplicationHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportDeployedApplicationHealth2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginReplicateAtomicGroupCommit( + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportDeployedApplicationHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportDeployedServicePackageHealth2( &self, - atomicgroupid: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - commitsequencenumber: *mut i64, - ) -> windows_core::Result; - fn EndReplicateAtomicGroupCommit( + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricCodePackageActivationContext4_Vtbl { + pub base__: IFabricCodePackageActivationContext3_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportApplicationHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportDeployedApplicationHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportDeployedApplicationHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportDeployedServicePackageHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportDeployedServicePackageHealth2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext4_Impl: + IFabricCodePackageActivationContext3_Impl +{ + fn ReportApplicationHealth2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; - fn BeginReplicateAtomicGroupRollback( + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()>; + fn ReportDeployedApplicationHealth2( &self, - atomicgroupid: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - rollbacksequencenumber: *mut i64, - ) -> windows_core::Result; - fn EndReplicateAtomicGroupRollback( + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()>; + fn ReportDeployedServicePackageHealth2( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result; + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricAtomicGroupStateReplicator {} -impl IFabricAtomicGroupStateReplicator_Vtbl { - pub const fn new( - ) -> IFabricAtomicGroupStateReplicator_Vtbl - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - unsafe extern "system" fn CreateAtomicGroup< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext4_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn ReportApplicationHealth2< + Identity: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - atomicgroupid: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::CreateAtomicGroup(this) { - Ok(ok__) => { - atomicgroupid.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext4_Impl::ReportApplicationHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() } } - unsafe extern "system" fn BeginReplicateAtomicGroupOperation< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn ReportDeployedApplicationHealth2< + Identity: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - atomicgroupid: i64, - operationdata: *mut core::ffi::c_void, - callback: *mut core::ffi::c_void, - operationsequencenumber: *mut i64, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupOperation( - this, - core::mem::transmute_copy(&atomicgroupid), - windows_core::from_raw_borrowed(&operationdata), - windows_core::from_raw_borrowed(&callback), - core::mem::transmute_copy(&operationsequencenumber), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext4_Impl::ReportDeployedApplicationHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() } } - unsafe extern "system" fn EndReplicateAtomicGroupOperation< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn ReportDeployedServicePackageHealth2< + Identity: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - operationsequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupOperation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - operationsequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext4_Impl::ReportDeployedServicePackageHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() } } - unsafe extern "system" fn BeginReplicateAtomicGroupCommit< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - atomicgroupid: i64, - callback: *mut core::ffi::c_void, - commitsequencenumber: *mut i64, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupCommit( - this, - core::mem::transmute_copy(&atomicgroupid), - windows_core::from_raw_borrowed(&callback), - core::mem::transmute_copy(&commitsequencenumber), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + Self { + base__: IFabricCodePackageActivationContext3_Vtbl::new::(), + ReportApplicationHealth2: ReportApplicationHealth2::, + ReportDeployedApplicationHealth2: ReportDeployedApplicationHealth2::, + ReportDeployedServicePackageHealth2: ReportDeployedServicePackageHealth2::< + Identity, + OFFSET, + >, } - unsafe extern "system" fn EndReplicateAtomicGroupCommit< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - commitsequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupCommit( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitsequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext4 {} +windows_core::imp::define_interface!( + IFabricCodePackageActivationContext5, + IFabricCodePackageActivationContext5_Vtbl, + 0xfe45387e_8711_4949_ac36_31dc95035513 +); +impl core::ops::Deref for IFabricCodePackageActivationContext5 { + type Target = IFabricCodePackageActivationContext4; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext5, + windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3, + IFabricCodePackageActivationContext4 +); +impl IFabricCodePackageActivationContext5 { + pub unsafe fn get_ServiceListenAddress(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_ServiceListenAddress)( + windows_core::Interface::as_raw(self), + ) } - unsafe extern "system" fn BeginReplicateAtomicGroupRollback< - Identity: windows_core::IUnknownImpl, + } + pub unsafe fn get_ServicePublishAddress(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_ServicePublishAddress)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricCodePackageActivationContext5_Vtbl { + pub base__: IFabricCodePackageActivationContext4_Vtbl, + pub get_ServiceListenAddress: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, + pub get_ServicePublishAddress: + unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext5_Impl: + IFabricCodePackageActivationContext4_Impl +{ + fn get_ServiceListenAddress(&self) -> windows_core::PCWSTR; + fn get_ServicePublishAddress(&self) -> windows_core::PCWSTR; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext5_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_ServiceListenAddress< + Identity: IFabricCodePackageActivationContext5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - atomicgroupid: i64, - callback: *mut core::ffi::c_void, - rollbacksequencenumber: *mut i64, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::BeginReplicateAtomicGroupRollback( - this, - core::mem::transmute_copy(&atomicgroupid), - windows_core::from_raw_borrowed(&callback), - core::mem::transmute_copy(&rollbacksequencenumber), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext5_Impl::get_ServiceListenAddress(this) } } - unsafe extern "system" fn EndReplicateAtomicGroupRollback< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_ServicePublishAddress< + Identity: IFabricCodePackageActivationContext5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - rollbacksequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricAtomicGroupStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricAtomicGroupStateReplicator_Impl::EndReplicateAtomicGroupRollback( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - rollbacksequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivationContext5_Impl::get_ServicePublishAddress(this) } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - CreateAtomicGroup: CreateAtomicGroup::, - BeginReplicateAtomicGroupOperation: BeginReplicateAtomicGroupOperation::< - Identity, - OFFSET, - >, - EndReplicateAtomicGroupOperation: EndReplicateAtomicGroupOperation::, - BeginReplicateAtomicGroupCommit: BeginReplicateAtomicGroupCommit::, - EndReplicateAtomicGroupCommit: EndReplicateAtomicGroupCommit::, - BeginReplicateAtomicGroupRollback: BeginReplicateAtomicGroupRollback::, - EndReplicateAtomicGroupRollback: EndReplicateAtomicGroupRollback::, + base__: IFabricCodePackageActivationContext4_Vtbl::new::(), + get_ServiceListenAddress: get_ServiceListenAddress::, + get_ServicePublishAddress: get_ServicePublishAddress::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricCodePackage_Impl: Sized { - fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> windows_core::PCWSTR; +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext5 {} +windows_core::imp::define_interface!( + IFabricCodePackageActivationContext6, + IFabricCodePackageActivationContext6_Vtbl, + 0xfa5fda9b_472c_45a0_9b60_a374691227a4 +); +impl core::ops::Deref for IFabricCodePackageActivationContext6 { + type Target = IFabricCodePackageActivationContext5; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricCodePackage {} -impl IFabricCodePackage_Vtbl { - pub const fn new( - ) -> IFabricCodePackage_Vtbl +windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext6, + windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3, + IFabricCodePackageActivationContext4, + IFabricCodePackageActivationContext5 +); +impl IFabricCodePackageActivationContext6 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn GetDirectory( + &self, + logicaldirectoryname: P0, + ) -> windows_core::Result where - Identity: IFabricCodePackage_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Description< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CODE_PACKAGE_DESCRIPTION - where - Identity: IFabricCodePackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackage_Impl::get_Description(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetDirectory)( + windows_core::Interface::as_raw(self), + logicaldirectoryname.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn get_Path< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricCodePackageActivationContext6_Vtbl { + pub base__: IFabricCodePackageActivationContext5_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub GetDirectory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + GetDirectory: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivationContext6_Impl: + IFabricCodePackageActivationContext5_Impl +{ + fn GetDirectory( + &self, + logicaldirectoryname: &windows_core::PCWSTR, + ) -> windows_core::Result; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivationContext6_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn GetDirectory< + Identity: IFabricCodePackageActivationContext6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackage_Impl::get_Path(this) + logicaldirectoryname: windows_core::PCWSTR, + directorypath: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivationContext6_Impl::GetDirectory( + this, + core::mem::transmute(&logicaldirectoryname), + ) { + Ok(ok__) => { + directorypath.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, + base__: IFabricCodePackageActivationContext5_Vtbl::new::(), + GetDirectory: GetDirectory::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID } } -pub trait IFabricCodePackage2_Impl: Sized + IFabricCodePackage_Impl { - fn get_SetupEntryPointRunAsPolicy( +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivationContext6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivationContext6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivationContext6 {} +windows_core::imp::define_interface!( + IFabricCodePackageActivator, + IFabricCodePackageActivator_Vtbl, + 0x70be1b10_b259_46fc_b813_0b75720e7183 +); +windows_core::imp::interface_hierarchy!(IFabricCodePackageActivator, windows_core::IUnknown); +impl IFabricCodePackageActivator { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginActivateCodePackage( &self, - ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION; - fn get_EntryPointRunAsPolicy(&self) - -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION; -} -impl windows_core::RuntimeName for IFabricCodePackage2 {} -impl IFabricCodePackage2_Vtbl { - pub const fn new( - ) -> IFabricCodePackage2_Vtbl + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + environment: *const super::FabricTypes::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result where - Identity: IFabricCodePackage2_Impl, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginActivateCodePackage)( + windows_core::Interface::as_raw(self), + codepackagenames, + environment, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndActivateCodePackage(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, { - unsafe extern "system" fn get_SetupEntryPointRunAsPolicy< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION - where - Identity: IFabricCodePackage2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackage2_Impl::get_SetupEntryPointRunAsPolicy(this) + unsafe { + (windows_core::Interface::vtable(self).EndActivateCodePackage)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } - unsafe extern "system" fn get_EntryPointRunAsPolicy< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_RUNAS_POLICY_DESCRIPTION - where - Identity: IFabricCodePackage2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackage2_Impl::get_EntryPointRunAsPolicy(this) + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginDeactivateCodePackage( + &self, + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginDeactivateCodePackage)( + windows_core::Interface::as_raw(self), + codepackagenames, + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: IFabricCodePackage_Vtbl::new::(), - get_SetupEntryPointRunAsPolicy: get_SetupEntryPointRunAsPolicy::, - get_EntryPointRunAsPolicy: get_EntryPointRunAsPolicy::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndDeactivateCodePackage(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndDeactivateCodePackage)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn AbortCodePackage( + &self, + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).AbortCodePackage)( + windows_core::Interface::as_raw(self), + codepackagenames, + ) + .ok() + } + } + pub unsafe fn RegisterCodePackageEventHandler( + &self, + eventhandler: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).RegisterCodePackageEventHandler)( + windows_core::Interface::as_raw(self), + eventhandler.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn UnregisterCodePackageEventHandler( + &self, + callbackhandle: u64, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).UnregisterCodePackageEventHandler)( + windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } } } -pub trait IFabricCodePackageActivationContext_Impl: Sized { - fn get_ContextId(&self) -> windows_core::PCWSTR; - fn get_CodePackageName(&self) -> windows_core::PCWSTR; - fn get_CodePackageVersion(&self) -> windows_core::PCWSTR; - fn get_WorkDirectory(&self) -> windows_core::PCWSTR; - fn get_LogDirectory(&self) -> windows_core::PCWSTR; - fn get_TempDirectory(&self) -> windows_core::PCWSTR; - fn get_ServiceTypes(&self) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST; - fn get_ServiceGroupTypes( - &self, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST; - fn get_ApplicationPrincipals( - &self, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION; - fn get_ServiceEndpointResources( - &self, - ) -> *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST; - fn GetServiceEndpointResource( - &self, - serviceendpointresourcename: &windows_core::PCWSTR, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; - fn GetCodePackageNames( - &self, - ) -> windows_core::Result; - fn GetConfigurationPackageNames( - &self, - ) -> windows_core::Result; - fn GetDataPackageNames( - &self, - ) -> windows_core::Result; - fn GetCodePackage( - &self, - codepackagename: &windows_core::PCWSTR, - ) -> windows_core::Result; - fn GetConfigurationPackage( +#[repr(C)] +pub struct IFabricCodePackageActivator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginActivateCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STRING_LIST, + *const super::FabricTypes::FABRIC_STRING_MAP, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginActivateCodePackage: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndActivateCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndActivateCodePackage: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginDeactivateCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STRING_LIST, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginDeactivateCodePackage: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndDeactivateCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndDeactivateCodePackage: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub AbortCodePackage: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STRING_LIST, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + AbortCodePackage: usize, + pub RegisterCodePackageEventHandler: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u64, + ) -> windows_core::HRESULT, + pub UnregisterCodePackageEventHandler: + unsafe extern "system" fn(*mut core::ffi::c_void, u64) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricCodePackageActivator_Impl: windows_core::IUnknownImpl { + fn BeginActivateCodePackage( &self, - configpackagename: &windows_core::PCWSTR, - ) -> windows_core::Result; - fn GetDataPackage( + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + environment: *const super::FabricTypes::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndActivateCodePackage( &self, - datapackagename: &windows_core::PCWSTR, - ) -> windows_core::Result; - fn RegisterCodePackageChangeHandler( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn BeginDeactivateCodePackage( &self, - callback: Option<&IFabricCodePackageChangeHandler>, - ) -> windows_core::Result; - fn UnregisterCodePackageChangeHandler(&self, callbackhandle: i64) -> windows_core::Result<()>; - fn RegisterConfigurationPackageChangeHandler( + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, + ) -> windows_core::Result; + fn EndDeactivateCodePackage( &self, - callback: Option<&IFabricConfigurationPackageChangeHandler>, - ) -> windows_core::Result; - fn UnregisterConfigurationPackageChangeHandler( + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, + ) -> windows_core::Result<()>; + fn AbortCodePackage( &self, - callbackhandle: i64, + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, ) -> windows_core::Result<()>; - fn RegisterDataPackageChangeHandler( + fn RegisterCodePackageEventHandler( &self, - callback: Option<&IFabricDataPackageChangeHandler>, - ) -> windows_core::Result; - fn UnregisterDataPackageChangeHandler(&self, callbackhandle: i64) -> windows_core::Result<()>; + eventhandler: windows_core::Ref<'_, IFabricCodePackageEventHandler>, + ) -> windows_core::Result; + fn UnregisterCodePackageEventHandler(&self, callbackhandle: u64) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricCodePackageActivationContext {} -impl IFabricCodePackageActivationContext_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext_Vtbl - where - Identity: IFabricCodePackageActivationContext_Impl, - { - unsafe extern "system" fn get_ContextId< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_ContextId(this) - } - unsafe extern "system" fn get_CodePackageName< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_CodePackageName(this) - } - unsafe extern "system" fn get_CodePackageVersion< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_CodePackageVersion(this) - } - unsafe extern "system" fn get_WorkDirectory< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_WorkDirectory(this) - } - unsafe extern "system" fn get_LogDirectory< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_LogDirectory(this) - } - unsafe extern "system" fn get_TempDirectory< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_TempDirectory(this) - } - unsafe extern "system" fn get_ServiceTypes< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_ServiceTypes(this) - } - unsafe extern "system" fn get_ServiceGroupTypes< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_ServiceGroupTypes(this) - } - unsafe extern "system" fn get_ApplicationPrincipals< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricCodePackageActivator_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn BeginActivateCodePackage< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_ApplicationPrincipals(this) + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + environment: *const super::FabricTypes::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivator_Impl::BeginActivateCodePackage( + this, + core::mem::transmute_copy(&codepackagenames), + core::mem::transmute_copy(&environment), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn get_ServiceEndpointResources< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndActivateCodePackage< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::get_ServiceEndpointResources(this) + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivator_Impl::EndActivateCodePackage( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } - unsafe extern "system" fn GetServiceEndpointResource< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn BeginDeactivateCodePackage< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - serviceendpointresourcename: windows_core::PCWSTR, - bufferedvalue: *mut *mut super::FabricTypes::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetServiceEndpointResource( - this, - core::mem::transmute(&serviceendpointresourcename), - ) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivator_Impl::BeginDeactivateCodePackage( + this, + core::mem::transmute_copy(&codepackagenames), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn GetCodePackageNames< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EndDeactivateCodePackage< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - names: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetCodePackageNames(this) { - Ok(ok__) => { - names.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + context: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivator_Impl::EndDeactivateCodePackage( + this, + core::mem::transmute_copy(&context), + ) + .into() } } - unsafe extern "system" fn GetConfigurationPackageNames< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn AbortCodePackage< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - names: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetConfigurationPackageNames(this) { - Ok(ok__) => { - names.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivator_Impl::AbortCodePackage( + this, + core::mem::transmute_copy(&codepackagenames), + ) + .into() } } - unsafe extern "system" fn GetDataPackageNames< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn RegisterCodePackageEventHandler< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - names: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetDataPackageNames(this) { - Ok(ok__) => { - names.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + eventhandler: *mut core::ffi::c_void, + callbackhandle: *mut u64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricCodePackageActivator_Impl::RegisterCodePackageEventHandler( + this, + core::mem::transmute_copy(&eventhandler), + ) { + Ok(ok__) => { + callbackhandle.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn GetCodePackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn UnregisterCodePackageEventHandler< + Identity: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - codepackagename: windows_core::PCWSTR, - codepackage: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetCodePackage( - this, - core::mem::transmute(&codepackagename), - ) { - Ok(ok__) => { - codepackage.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + callbackhandle: u64, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageActivator_Impl::UnregisterCodePackageEventHandler( + this, + core::mem::transmute_copy(&callbackhandle), + ) + .into() } } - unsafe extern "system" fn GetConfigurationPackage< - Identity: windows_core::IUnknownImpl, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginActivateCodePackage: BeginActivateCodePackage::, + EndActivateCodePackage: EndActivateCodePackage::, + BeginDeactivateCodePackage: BeginDeactivateCodePackage::, + EndDeactivateCodePackage: EndDeactivateCodePackage::, + AbortCodePackage: AbortCodePackage::, + RegisterCodePackageEventHandler: RegisterCodePackageEventHandler::, + UnregisterCodePackageEventHandler: UnregisterCodePackageEventHandler::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricCodePackageActivator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricCodePackageActivator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricCodePackageActivator {} +windows_core::imp::define_interface!( + IFabricCodePackageChangeHandler, + IFabricCodePackageChangeHandler_Vtbl, + 0xb90d36cd_acb5_427a_b318_3b045981d0cc +); +windows_core::imp::interface_hierarchy!(IFabricCodePackageChangeHandler, windows_core::IUnknown); +impl IFabricCodePackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, codepackage: P1) + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageAdded)( + windows_core::Interface::as_raw(self), + source.param().abi(), + codepackage.param().abi(), + ) + } + } + pub unsafe fn OnPackageRemoved(&self, source: P0, codepackage: P1) + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageRemoved)( + windows_core::Interface::as_raw(self), + source.param().abi(), + codepackage.param().abi(), + ) + } + } + pub unsafe fn OnPackageModified( + &self, + source: P0, + previouscodepackage: P1, + codepackage: P2, + ) where + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageModified)( + windows_core::Interface::as_raw(self), + source.param().abi(), + previouscodepackage.param().abi(), + codepackage.param().abi(), + ) + } + } +} +#[repr(C)] +pub struct IFabricCodePackageChangeHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), +} +pub trait IFabricCodePackageChangeHandler_Impl: windows_core::IUnknownImpl { + fn OnPackageAdded( + &self, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + codepackage: windows_core::Ref<'_, IFabricCodePackage>, + ); + fn OnPackageRemoved( + &self, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + codepackage: windows_core::Ref<'_, IFabricCodePackage>, + ); + fn OnPackageModified( + &self, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + previouscodepackage: windows_core::Ref<'_, IFabricCodePackage>, + codepackage: windows_core::Ref<'_, IFabricCodePackage>, + ); +} +impl IFabricCodePackageChangeHandler_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn OnPackageAdded< + Identity: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - configpackagename: windows_core::PCWSTR, - configpackage: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetConfigurationPackage( - this, - core::mem::transmute(&configpackagename), - ) { - Ok(ok__) => { - configpackage.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + codepackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageChangeHandler_Impl::OnPackageAdded( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&codepackage), + ) } } - unsafe extern "system" fn GetDataPackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn OnPackageRemoved< + Identity: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - datapackagename: windows_core::PCWSTR, - datapackage: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::GetDataPackage( - this, - core::mem::transmute(&datapackagename), - ) { - Ok(ok__) => { - datapackage.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + codepackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageChangeHandler_Impl::OnPackageRemoved( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&codepackage), + ) } } - unsafe extern "system" fn RegisterCodePackageChangeHandler< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn OnPackageModified< + Identity: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - callback: *mut core::ffi::c_void, - callbackhandle: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::RegisterCodePackageChangeHandler( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - callbackhandle.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + previouscodepackage: *mut core::ffi::c_void, + codepackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageChangeHandler_Impl::OnPackageModified( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&previouscodepackage), + core::mem::transmute_copy(&codepackage), + ) } } - unsafe extern "system" fn UnregisterCodePackageChangeHandler< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - callbackhandle: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::UnregisterCodePackageChangeHandler( - this, - core::mem::transmute_copy(&callbackhandle), - ) - .into() - } - unsafe extern "system" fn RegisterConfigurationPackageChangeHandler< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - callback: *mut core::ffi::c_void, - callbackhandle: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl:: RegisterConfigurationPackageChangeHandler ( this , windows_core::from_raw_borrowed ( & callback ) , ) { Ok ( ok__ ) => { callbackhandle . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + OnPackageAdded: OnPackageAdded::, + OnPackageRemoved: OnPackageRemoved::, + OnPackageModified: OnPackageModified::, } - unsafe extern "system" fn UnregisterConfigurationPackageChangeHandler< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - callbackhandle: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::UnregisterConfigurationPackageChangeHandler( - this, - core::mem::transmute_copy(&callbackhandle), + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricCodePackageChangeHandler {} +unsafe impl Send for IFabricCodePackageChangeHandler {} +unsafe impl Sync for IFabricCodePackageChangeHandler {} +windows_core::imp::define_interface!( + IFabricCodePackageEventHandler, + IFabricCodePackageEventHandler_Vtbl, + 0x899e0ca8_16df_458e_8915_d0307b4ab101 +); +windows_core::imp::interface_hierarchy!(IFabricCodePackageEventHandler, windows_core::IUnknown); +impl IFabricCodePackageEventHandler { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn OnCodePackageEvent( + &self, + source: P0, + eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ) where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnCodePackageEvent)( + windows_core::Interface::as_raw(self), + source.param().abi(), + eventdesc, ) - .into() } - unsafe extern "system" fn RegisterDataPackageChangeHandler< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricCodePackageEventHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub OnCodePackageEvent: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ), + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + OnCodePackageEvent: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricCodePackageEventHandler_Impl: windows_core::IUnknownImpl { + fn OnCodePackageEvent( + &self, + source: windows_core::Ref<'_, IFabricCodePackageActivator>, + eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ); +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricCodePackageEventHandler_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn OnCodePackageEvent< + Identity: IFabricCodePackageEventHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - callback: *mut core::ffi::c_void, - callbackhandle: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext_Impl::RegisterDataPackageChangeHandler( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - callbackhandle.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricCodePackageEventHandler_Impl::OnCodePackageEvent( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&eventdesc), + ) } } - unsafe extern "system" fn UnregisterDataPackageChangeHandler< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - callbackhandle: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext_Impl::UnregisterDataPackageChangeHandler( - this, - core::mem::transmute_copy(&callbackhandle), - ) - .into() - } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_ContextId: get_ContextId::, - get_CodePackageName: get_CodePackageName::, - get_CodePackageVersion: get_CodePackageVersion::, - get_WorkDirectory: get_WorkDirectory::, - get_LogDirectory: get_LogDirectory::, - get_TempDirectory: get_TempDirectory::, - get_ServiceTypes: get_ServiceTypes::, - get_ServiceGroupTypes: get_ServiceGroupTypes::, - get_ApplicationPrincipals: get_ApplicationPrincipals::, - get_ServiceEndpointResources: get_ServiceEndpointResources::, - GetServiceEndpointResource: GetServiceEndpointResource::, - GetCodePackageNames: GetCodePackageNames::, - GetConfigurationPackageNames: GetConfigurationPackageNames::, - GetDataPackageNames: GetDataPackageNames::, - GetCodePackage: GetCodePackage::, - GetConfigurationPackage: GetConfigurationPackage::, - GetDataPackage: GetDataPackage::, - RegisterCodePackageChangeHandler: RegisterCodePackageChangeHandler::, - UnregisterCodePackageChangeHandler: UnregisterCodePackageChangeHandler::< - Identity, - OFFSET, - >, - RegisterConfigurationPackageChangeHandler: RegisterConfigurationPackageChangeHandler::< - Identity, - OFFSET, - >, - UnregisterConfigurationPackageChangeHandler: - UnregisterConfigurationPackageChangeHandler::, - RegisterDataPackageChangeHandler: RegisterDataPackageChangeHandler::, - UnregisterDataPackageChangeHandler: UnregisterDataPackageChangeHandler::< - Identity, - OFFSET, - >, + OnCodePackageEvent: OnCodePackageEvent::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricCodePackageActivationContext2_Impl: - Sized + IFabricCodePackageActivationContext_Impl -{ - fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI; - fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR; - fn GetServiceManifestName( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricCodePackageEventHandler {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricCodePackageEventHandler {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricCodePackageEventHandler {} +windows_core::imp::define_interface!( + IFabricConfigurationPackage, + IFabricConfigurationPackage_Vtbl, + 0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d +); +windows_core::imp::interface_hierarchy!(IFabricConfigurationPackage, windows_core::IUnknown); +impl IFabricConfigurationPackage { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Description( &self, - ) -> windows_core::Result; - fn GetServiceManifestVersion( + ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_Description)( + windows_core::Interface::as_raw(self), + ) + } + } + pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS { + unsafe { + (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw( + self, + )) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetSection( &self, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricCodePackageActivationContext2 {} -impl IFabricCodePackageActivationContext2_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext2_Vtbl + sectionname: P0, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION> where - Identity: IFabricCodePackageActivationContext2_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_ApplicationName< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_URI - where - Identity: IFabricCodePackageActivationContext2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext2_Impl::get_ApplicationName(this) - } - unsafe extern "system" fn get_ApplicationTypeName< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext2_Impl::get_ApplicationTypeName(this) - } - unsafe extern "system" fn GetServiceManifestName< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - servicemanifestname: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext2_Impl::GetServiceManifestName(this) { - Ok(ok__) => { - servicemanifestname.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetSection)( + windows_core::Interface::as_raw(self), + sectionname.param().abi(), + &mut result__, + ) + .map(|| result__) } - unsafe extern "system" fn GetServiceManifestVersion< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - servicemanifestversion: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext2_Impl::GetServiceManifestVersion(this) { - Ok(ok__) => { - servicemanifestversion.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub unsafe fn GetValue( + &self, + sectionname: P0, + parametername: P1, + isencrypted: *mut u8, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValue)( + windows_core::Interface::as_raw(self), + sectionname.param().abi(), + parametername.param().abi(), + isencrypted as _, + &mut result__, + ) + .map(|| result__) } - Self { - base__: IFabricCodePackageActivationContext_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, - get_ApplicationTypeName: get_ApplicationTypeName::, - GetServiceManifestName: GetServiceManifestName::, - GetServiceManifestVersion: GetServiceManifestVersion::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn DecryptValue( + &self, + encryptedvalue: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).DecryptValue)( + windows_core::Interface::as_raw(self), + encryptedvalue.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } } -pub trait IFabricCodePackageActivationContext3_Impl: - Sized + IFabricCodePackageActivationContext2_Impl -{ - fn ReportApplicationHealth( +#[repr(C)] +pub struct IFabricConfigurationPackage_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_Description :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_Description :usize , pub get_Path :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> windows_core::PCWSTR , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub get_Settings :unsafe extern "system" fn ( * mut core::ffi::c_void , ) -> *mut super::FabricTypes:: FABRIC_CONFIGURATION_SETTINGS , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] get_Settings :usize , # [ cfg ( feature = "ServiceFabric_FabricTypes" ) ] pub GetSection :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut *mut super::FabricTypes:: FABRIC_CONFIGURATION_SECTION ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricTypes" ) ) ] GetSection :usize , pub GetValue :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , windows_core::PCWSTR , *mut u8 , *mut windows_core::PCWSTR ) -> windows_core::HRESULT , # [ cfg ( feature = "ServiceFabric_FabricCommon" ) ] pub DecryptValue :unsafe extern "system" fn ( * mut core::ffi::c_void , windows_core::PCWSTR , *mut * mut core::ffi::c_void ) -> windows_core::HRESULT , # [ cfg ( not ( feature = "ServiceFabric_FabricCommon" ) ) ] DecryptValue :usize , } +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricConfigurationPackage_Impl: windows_core::IUnknownImpl { + fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> windows_core::PCWSTR; + fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS; + fn GetSection( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()>; - fn ReportDeployedApplicationHealth( + sectionname: &windows_core::PCWSTR, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION>; + fn GetValue( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()>; - fn ReportDeployedServicePackageHealth( + sectionname: &windows_core::PCWSTR, + parametername: &windows_core::PCWSTR, + isencrypted: *mut u8, + ) -> windows_core::Result; + fn DecryptValue( &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::Result<()>; + encryptedvalue: &windows_core::PCWSTR, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricCodePackageActivationContext3 {} -impl IFabricCodePackageActivationContext3_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext3_Vtbl - where - Identity: IFabricCodePackageActivationContext3_Impl, - { - unsafe extern "system" fn ReportApplicationHealth< - Identity: windows_core::IUnknownImpl, +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricConfigurationPackage_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Description< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext3_Impl::ReportApplicationHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackage_Impl::get_Description(this) + } } - unsafe extern "system" fn ReportDeployedApplicationHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_Path< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext3_Impl::ReportDeployedApplicationHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackage_Impl::get_Path(this) + } } - unsafe extern "system" fn ReportDeployedServicePackageHealth< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_Settings< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext3_Impl::ReportDeployedServicePackageHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() - } - Self { - base__: IFabricCodePackageActivationContext2_Vtbl::new::(), - ReportApplicationHealth: ReportApplicationHealth::, - ReportDeployedApplicationHealth: ReportDeployedApplicationHealth::, - ReportDeployedServicePackageHealth: ReportDeployedServicePackageHealth::< - Identity, - OFFSET, - >, + ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackage_Impl::get_Settings(this) + } } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext4_Impl: - Sized + IFabricCodePackageActivationContext3_Impl -{ - fn ReportApplicationHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()>; - fn ReportDeployedApplicationHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()>; - fn ReportDeployedServicePackageHealth2( - &self, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricCodePackageActivationContext4 {} -impl IFabricCodePackageActivationContext4_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext4_Vtbl - where - Identity: IFabricCodePackageActivationContext4_Impl, - { - unsafe extern "system" fn ReportApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetSection< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext4_Impl::ReportApplicationHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + sectionname: windows_core::PCWSTR, + bufferedvalue: *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricConfigurationPackage_Impl::GetSection( + this, + core::mem::transmute(§ionname), + ) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn ReportDeployedApplicationHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn GetValue< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext4_Impl::ReportDeployedApplicationHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + sectionname: windows_core::PCWSTR, + parametername: windows_core::PCWSTR, + isencrypted: *mut u8, + bufferedvalue: *mut windows_core::PCWSTR, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricConfigurationPackage_Impl::GetValue( + this, + core::mem::transmute(§ionname), + core::mem::transmute(¶metername), + core::mem::transmute_copy(&isencrypted), + ) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn ReportDeployedServicePackageHealth2< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn DecryptValue< + Identity: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext4_Impl::ReportDeployedServicePackageHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + encryptedvalue: windows_core::PCWSTR, + decryptedvalue: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricConfigurationPackage_Impl::DecryptValue( + this, + core::mem::transmute(&encryptedvalue), + ) { + Ok(ok__) => { + decryptedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: IFabricCodePackageActivationContext3_Vtbl::new::(), - ReportApplicationHealth2: ReportApplicationHealth2::, - ReportDeployedApplicationHealth2: ReportDeployedApplicationHealth2::, - ReportDeployedServicePackageHealth2: ReportDeployedServicePackageHealth2::< - Identity, - OFFSET, - >, + base__: windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + get_Path: get_Path::, + get_Settings: get_Settings::, + GetSection: GetSection::, + GetValue: GetValue::, + DecryptValue: DecryptValue::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricCodePackageActivationContext5_Impl: - Sized + IFabricCodePackageActivationContext4_Impl -{ - fn get_ServiceListenAddress(&self) -> windows_core::PCWSTR; - fn get_ServicePublishAddress(&self) -> windows_core::PCWSTR; +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricConfigurationPackage {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricConfigurationPackage {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricConfigurationPackage {} +windows_core::imp::define_interface!( + IFabricConfigurationPackage2, + IFabricConfigurationPackage2_Vtbl, + 0xd3161f31_708a_4f83_91ff_f2af15f74a2f +); +impl core::ops::Deref for IFabricConfigurationPackage2 { + type Target = IFabricConfigurationPackage; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricCodePackageActivationContext5 {} -impl IFabricCodePackageActivationContext5_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext5_Vtbl +windows_core::imp::interface_hierarchy!( + IFabricConfigurationPackage2, + windows_core::IUnknown, + IFabricConfigurationPackage +); +impl IFabricConfigurationPackage2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetValues( + &self, + sectionname: P0, + parameterprefix: P1, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST> where - Identity: IFabricCodePackageActivationContext5_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn get_ServiceListenAddress< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext5_Impl::get_ServiceListenAddress(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetValues)( + windows_core::Interface::as_raw(self), + sectionname.param().abi(), + parameterprefix.param().abi(), + &mut result__, + ) + .map(|| result__) } - unsafe extern "system" fn get_ServicePublishAddress< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricConfigurationPackage2_Vtbl { + pub base__: IFabricConfigurationPackage_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetValues: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + windows_core::PCWSTR, + *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetValues: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricConfigurationPackage2_Impl: IFabricConfigurationPackage_Impl { + fn GetValues( + &self, + sectionname: &windows_core::PCWSTR, + parameterprefix: &windows_core::PCWSTR, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricConfigurationPackage2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn GetValues< + Identity: IFabricConfigurationPackage2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricCodePackageActivationContext5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivationContext5_Impl::get_ServicePublishAddress(this) + sectionname: windows_core::PCWSTR, + parameterprefix: windows_core::PCWSTR, + bufferedvalue: *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricConfigurationPackage2_Impl::GetValues( + this, + core::mem::transmute(§ionname), + core::mem::transmute(¶meterprefix), + ) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: IFabricCodePackageActivationContext4_Vtbl::new::(), - get_ServiceListenAddress: get_ServiceListenAddress::, - get_ServicePublishAddress: get_ServicePublishAddress::, + base__: IFabricConfigurationPackage_Vtbl::new::(), + GetValues: GetValues::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricCodePackageActivationContext6_Impl: - Sized + IFabricCodePackageActivationContext5_Impl -{ - fn GetDirectory( - &self, - logicaldirectoryname: &windows_core::PCWSTR, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricCodePackageActivationContext6 {} -impl IFabricCodePackageActivationContext6_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivationContext6_Vtbl +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricConfigurationPackage2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricConfigurationPackage2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricConfigurationPackage2 {} +windows_core::imp::define_interface!( + IFabricConfigurationPackageChangeHandler, + IFabricConfigurationPackageChangeHandler_Vtbl, + 0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85 +); +windows_core::imp::interface_hierarchy!( + IFabricConfigurationPackageChangeHandler, + windows_core::IUnknown +); +impl IFabricConfigurationPackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, configpackage: P1) + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageAdded)( + windows_core::Interface::as_raw(self), + source.param().abi(), + configpackage.param().abi(), + ) + } + } + pub unsafe fn OnPackageRemoved(&self, source: P0, configpackage: P1) where - Identity: IFabricCodePackageActivationContext6_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn GetDirectory< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - logicaldirectoryname: windows_core::PCWSTR, - directorypath: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivationContext6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivationContext6_Impl::GetDirectory( - this, - core::mem::transmute(&logicaldirectoryname), - ) { - Ok(ok__) => { - directorypath.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: IFabricCodePackageActivationContext5_Vtbl::new::(), - GetDirectory: GetDirectory::, + unsafe { + (windows_core::Interface::vtable(self).OnPackageRemoved)( + windows_core::Interface::as_raw(self), + source.param().abi(), + configpackage.param().abi(), + ) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID + pub unsafe fn OnPackageModified( + &self, + source: P0, + previousconfigpackage: P1, + configpackage: P2, + ) where + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageModified)( + windows_core::Interface::as_raw(self), + source.param().abi(), + previousconfigpackage.param().abi(), + configpackage.param().abi(), + ) + } } } -pub trait IFabricCodePackageActivator_Impl: Sized { - fn BeginActivateCodePackage( - &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - environment: *const super::FabricTypes::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndActivateCodePackage( - &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn BeginDeactivateCodePackage( - &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, - ) -> windows_core::Result; - fn EndDeactivateCodePackage( +#[repr(C)] +pub struct IFabricConfigurationPackageChangeHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), +} +pub trait IFabricConfigurationPackageChangeHandler_Impl: windows_core::IUnknownImpl { + fn OnPackageAdded( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, - ) -> windows_core::Result<()>; - fn AbortCodePackage( + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + configpackage: windows_core::Ref<'_, IFabricConfigurationPackage>, + ); + fn OnPackageRemoved( &self, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - ) -> windows_core::Result<()>; - fn RegisterCodePackageEventHandler( + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + configpackage: windows_core::Ref<'_, IFabricConfigurationPackage>, + ); + fn OnPackageModified( &self, - eventhandler: Option<&IFabricCodePackageEventHandler>, - ) -> windows_core::Result; - fn UnregisterCodePackageEventHandler(&self, callbackhandle: u64) -> windows_core::Result<()>; + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + previousconfigpackage: windows_core::Ref<'_, IFabricConfigurationPackage>, + configpackage: windows_core::Ref<'_, IFabricConfigurationPackage>, + ); } -impl windows_core::RuntimeName for IFabricCodePackageActivator {} -impl IFabricCodePackageActivator_Vtbl { - pub const fn new( - ) -> IFabricCodePackageActivator_Vtbl - where - Identity: IFabricCodePackageActivator_Impl, - { - unsafe extern "system" fn BeginActivateCodePackage< - Identity: windows_core::IUnknownImpl, +impl IFabricConfigurationPackageChangeHandler_Vtbl { + pub const fn new< + Identity: IFabricConfigurationPackageChangeHandler_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn OnPackageAdded< + Identity: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - environment: *const super::FabricTypes::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivator_Impl::BeginActivateCodePackage( - this, - core::mem::transmute_copy(&codepackagenames), - core::mem::transmute_copy(&environment), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + configpackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackageChangeHandler_Impl::OnPackageAdded( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&configpackage), + ) } } - unsafe extern "system" fn EndActivateCodePackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn OnPackageRemoved< + Identity: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivator_Impl::EndActivateCodePackage( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + source: *mut core::ffi::c_void, + configpackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackageChangeHandler_Impl::OnPackageRemoved( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&configpackage), + ) + } } - unsafe extern "system" fn BeginDeactivateCodePackage< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn OnPackageModified< + Identity: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivator_Impl::BeginDeactivateCodePackage( - this, - core::mem::transmute_copy(&codepackagenames), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + source: *mut core::ffi::c_void, + previousconfigpackage: *mut core::ffi::c_void, + configpackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricConfigurationPackageChangeHandler_Impl::OnPackageModified( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&previousconfigpackage), + core::mem::transmute_copy(&configpackage), + ) } } - unsafe extern "system" fn EndDeactivateCodePackage< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivator_Impl::EndDeactivateCodePackage( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + OnPackageAdded: OnPackageAdded::, + OnPackageRemoved: OnPackageRemoved::, + OnPackageModified: OnPackageModified::, } - unsafe extern "system" fn AbortCodePackage< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - codepackagenames: *const super::FabricTypes::FABRIC_STRING_LIST, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivator_Impl::AbortCodePackage( - this, - core::mem::transmute_copy(&codepackagenames), + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricConfigurationPackageChangeHandler {} +unsafe impl Send for IFabricConfigurationPackageChangeHandler {} +unsafe impl Sync for IFabricConfigurationPackageChangeHandler {} +windows_core::imp::define_interface!( + IFabricDataPackage, + IFabricDataPackage_Vtbl, + 0xaa67de09_3657_435f_a2f6_b3a17a0a4371 +); +windows_core::imp::interface_hierarchy!(IFabricDataPackage, windows_core::IUnknown); +impl IFabricDataPackage { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Description( + &self, + ) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION { + unsafe { + (windows_core::Interface::vtable(self).get_Description)( + windows_core::Interface::as_raw(self), ) - .into() } - unsafe extern "system" fn RegisterCodePackageEventHandler< - Identity: windows_core::IUnknownImpl, + } + pub unsafe fn get_Path(&self) -> windows_core::PCWSTR { + unsafe { + (windows_core::Interface::vtable(self).get_Path)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricDataPackage_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Description: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Description: usize, + pub get_Path: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricDataPackage_Impl: windows_core::IUnknownImpl { + fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> windows_core::PCWSTR; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricDataPackage_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Description< + Identity: IFabricDataPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - eventhandler: *mut core::ffi::c_void, - callbackhandle: *mut u64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricCodePackageActivator_Impl::RegisterCodePackageEventHandler( - this, - windows_core::from_raw_borrowed(&eventhandler), - ) { - Ok(ok__) => { - callbackhandle.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDataPackage_Impl::get_Description(this) } } - unsafe extern "system" fn UnregisterCodePackageEventHandler< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_Path< + Identity: IFabricDataPackage_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - callbackhandle: u64, - ) -> windows_core::HRESULT - where - Identity: IFabricCodePackageActivator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageActivator_Impl::UnregisterCodePackageEventHandler( - this, - core::mem::transmute_copy(&callbackhandle), - ) - .into() + ) -> windows_core::PCWSTR { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDataPackage_Impl::get_Path(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - BeginActivateCodePackage: BeginActivateCodePackage::, - EndActivateCodePackage: EndActivateCodePackage::, - BeginDeactivateCodePackage: BeginDeactivateCodePackage::, - EndDeactivateCodePackage: EndDeactivateCodePackage::, - AbortCodePackage: AbortCodePackage::, - RegisterCodePackageEventHandler: RegisterCodePackageEventHandler::, - UnregisterCodePackageEventHandler: UnregisterCodePackageEventHandler::, + get_Description: get_Description::, + get_Path: get_Path::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricDataPackage {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricDataPackage {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricDataPackage {} +windows_core::imp::define_interface!( + IFabricDataPackageChangeHandler, + IFabricDataPackageChangeHandler_Vtbl, + 0x8d0a726f_bd17_4b32_807b_be2a8024b2e0 +); +windows_core::imp::interface_hierarchy!(IFabricDataPackageChangeHandler, windows_core::IUnknown); +impl IFabricDataPackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, datapackage: P1) + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageAdded)( + windows_core::Interface::as_raw(self), + source.param().abi(), + datapackage.param().abi(), + ) + } } + pub unsafe fn OnPackageRemoved(&self, source: P0, datapackage: P1) + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageRemoved)( + windows_core::Interface::as_raw(self), + source.param().abi(), + datapackage.param().abi(), + ) + } + } + pub unsafe fn OnPackageModified( + &self, + source: P0, + previousdatapackage: P1, + datapackage: P2, + ) where + P0: windows_core::Param, + P1: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnPackageModified)( + windows_core::Interface::as_raw(self), + source.param().abi(), + previousdatapackage.param().abi(), + datapackage.param().abi(), + ) + } + } +} +#[repr(C)] +pub struct IFabricDataPackageChangeHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ), } -pub trait IFabricCodePackageChangeHandler_Impl: Sized { +pub trait IFabricDataPackageChangeHandler_Impl: windows_core::IUnknownImpl { fn OnPackageAdded( &self, - source: Option<&IFabricCodePackageActivationContext>, - codepackage: Option<&IFabricCodePackage>, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + datapackage: windows_core::Ref<'_, IFabricDataPackage>, ); fn OnPackageRemoved( &self, - source: Option<&IFabricCodePackageActivationContext>, - codepackage: Option<&IFabricCodePackage>, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + datapackage: windows_core::Ref<'_, IFabricDataPackage>, ); fn OnPackageModified( &self, - source: Option<&IFabricCodePackageActivationContext>, - previouscodepackage: Option<&IFabricCodePackage>, - codepackage: Option<&IFabricCodePackage>, + source: windows_core::Ref<'_, IFabricCodePackageActivationContext>, + previousdatapackage: windows_core::Ref<'_, IFabricDataPackage>, + datapackage: windows_core::Ref<'_, IFabricDataPackage>, ); } -impl windows_core::RuntimeName for IFabricCodePackageChangeHandler {} -impl IFabricCodePackageChangeHandler_Vtbl { - pub const fn new( - ) -> IFabricCodePackageChangeHandler_Vtbl - where - Identity: IFabricCodePackageChangeHandler_Impl, +impl IFabricDataPackageChangeHandler_Vtbl { + pub const fn new() -> Self { unsafe extern "system" fn OnPackageAdded< - Identity: windows_core::IUnknownImpl, + Identity: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, source: *mut core::ffi::c_void, - codepackage: *mut core::ffi::c_void, - ) where - Identity: IFabricCodePackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageChangeHandler_Impl::OnPackageAdded( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&codepackage), - ) + datapackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDataPackageChangeHandler_Impl::OnPackageAdded( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&datapackage), + ) + } } unsafe extern "system" fn OnPackageRemoved< - Identity: windows_core::IUnknownImpl, + Identity: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, source: *mut core::ffi::c_void, - codepackage: *mut core::ffi::c_void, - ) where - Identity: IFabricCodePackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageChangeHandler_Impl::OnPackageRemoved( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&codepackage), - ) + datapackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDataPackageChangeHandler_Impl::OnPackageRemoved( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&datapackage), + ) + } } unsafe extern "system" fn OnPackageModified< - Identity: windows_core::IUnknownImpl, + Identity: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, source: *mut core::ffi::c_void, - previouscodepackage: *mut core::ffi::c_void, - codepackage: *mut core::ffi::c_void, - ) where - Identity: IFabricCodePackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageChangeHandler_Impl::OnPackageModified( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&previouscodepackage), - windows_core::from_raw_borrowed(&codepackage), - ) + previousdatapackage: *mut core::ffi::c_void, + datapackage: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricDataPackageChangeHandler_Impl::OnPackageModified( + this, + core::mem::transmute_copy(&source), + core::mem::transmute_copy(&previousdatapackage), + core::mem::transmute_copy(&datapackage), + ) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -7031,1021 +4062,1355 @@ impl IFabricCodePackageChangeHandler_Vtbl { } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricCodePackageEventHandler_Impl: Sized { - fn OnCodePackageEvent( - &self, - source: Option<&IFabricCodePackageActivator>, - eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ); +impl windows_core::RuntimeName for IFabricDataPackageChangeHandler {} +unsafe impl Send for IFabricDataPackageChangeHandler {} +unsafe impl Sync for IFabricDataPackageChangeHandler {} +windows_core::imp::define_interface!( + IFabricEseLocalStoreSettingsResult, + IFabricEseLocalStoreSettingsResult_Vtbl, + 0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65 +); +windows_core::imp::interface_hierarchy!(IFabricEseLocalStoreSettingsResult, windows_core::IUnknown); +impl IFabricEseLocalStoreSettingsResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS { + unsafe { + (windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw( + self, + )) + } + } } -impl windows_core::RuntimeName for IFabricCodePackageEventHandler {} -impl IFabricCodePackageEventHandler_Vtbl { - pub const fn new( - ) -> IFabricCodePackageEventHandler_Vtbl - where - Identity: IFabricCodePackageEventHandler_Impl, - { - unsafe extern "system" fn OnCodePackageEvent< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricEseLocalStoreSettingsResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Settings: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Settings: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricEseLocalStoreSettingsResult_Impl: windows_core::IUnknownImpl { + fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricEseLocalStoreSettingsResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Settings< + Identity: IFabricEseLocalStoreSettingsResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - eventdesc: *const super::FabricTypes::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ) where - Identity: IFabricCodePackageEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricCodePackageEventHandler_Impl::OnCodePackageEvent( - this, - windows_core::from_raw_borrowed(&source), - core::mem::transmute_copy(&eventdesc), - ) + ) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricEseLocalStoreSettingsResult_Impl::get_Settings(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - OnCodePackageEvent: OnCodePackageEvent::, + get_Settings: get_Settings::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricConfigurationPackage_Impl: Sized { - fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> windows_core::PCWSTR; - fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS; - fn GetSection( - &self, - sectionname: &windows_core::PCWSTR, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION>; - fn GetValue( - &self, - sectionname: &windows_core::PCWSTR, - parametername: &windows_core::PCWSTR, - isencrypted: *mut u8, - ) -> windows_core::Result; - fn DecryptValue( +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricEseLocalStoreSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricEseLocalStoreSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricEseLocalStoreSettingsResult {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreEnumerator, + IFabricKeyValueStoreEnumerator_Vtbl, + 0x6722b848_15bb_4528_bf54_c7bbe27b6f9a +); +windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreEnumerator, windows_core::IUnknown); +impl IFabricKeyValueStoreEnumerator { + pub unsafe fn EnumerateByKey( &self, - encryptedvalue: &windows_core::PCWSTR, - ) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricConfigurationPackage {} -impl IFabricConfigurationPackage_Vtbl { - pub const fn new( - ) -> IFabricConfigurationPackage_Vtbl + keyprefix: P0, + ) -> windows_core::Result where - Identity: IFabricConfigurationPackage_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn get_Description< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackage_Impl::get_Description(this) - } - unsafe extern "system" fn get_Path< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackage_Impl::get_Path(this) - } - unsafe extern "system" fn get_Settings< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_CONFIGURATION_SETTINGS - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackage_Impl::get_Settings(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateByKey)( + windows_core::Interface::as_raw(self), + keyprefix.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetSection< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - sectionname: windows_core::PCWSTR, - bufferedvalue: *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_SECTION, - ) -> windows_core::HRESULT - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricConfigurationPackage_Impl::GetSection( - this, - core::mem::transmute(§ionname), - ) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + } + pub unsafe fn EnumerateMetadataByKey( + &self, + keyprefix: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + windows_core::Interface::as_raw(self), + keyprefix.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn GetValue< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreEnumerator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub EnumerateByKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateMetadataByKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricKeyValueStoreEnumerator_Impl: windows_core::IUnknownImpl { + fn EnumerateByKey( + &self, + keyprefix: &windows_core::PCWSTR, + ) -> windows_core::Result; + fn EnumerateMetadataByKey( + &self, + keyprefix: &windows_core::PCWSTR, + ) -> windows_core::Result; +} +impl IFabricKeyValueStoreEnumerator_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn EnumerateByKey< + Identity: IFabricKeyValueStoreEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - sectionname: windows_core::PCWSTR, - parametername: windows_core::PCWSTR, - isencrypted: *mut u8, - bufferedvalue: *mut windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricConfigurationPackage_Impl::GetValue( - this, - core::mem::transmute(§ionname), - core::mem::transmute(¶metername), - core::mem::transmute_copy(&isencrypted), - ) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + keyprefix: windows_core::PCWSTR, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreEnumerator_Impl::EnumerateByKey( + this, + core::mem::transmute(&keyprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn DecryptValue< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EnumerateMetadataByKey< + Identity: IFabricKeyValueStoreEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - encryptedvalue: windows_core::PCWSTR, - decryptedvalue: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricConfigurationPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricConfigurationPackage_Impl::DecryptValue( - this, - core::mem::transmute(&encryptedvalue), - ) { - Ok(ok__) => { - decryptedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + keyprefix: windows_core::PCWSTR, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreEnumerator_Impl::EnumerateMetadataByKey( + this, + core::mem::transmute(&keyprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, - get_Settings: get_Settings::, - GetSection: GetSection::, - GetValue: GetValue::, - DecryptValue: DecryptValue::, + EnumerateByKey: EnumerateByKey::, + EnumerateMetadataByKey: EnumerateMetadataByKey::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricConfigurationPackage2_Impl: Sized + IFabricConfigurationPackage_Impl { - fn GetValues( - &self, - sectionname: &windows_core::PCWSTR, - parameterprefix: &windows_core::PCWSTR, - ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST>; +impl windows_core::RuntimeName for IFabricKeyValueStoreEnumerator {} +unsafe impl Send for IFabricKeyValueStoreEnumerator {} +unsafe impl Sync for IFabricKeyValueStoreEnumerator {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreEnumerator2, + IFabricKeyValueStoreEnumerator2_Vtbl, + 0x63dfd264_4f2b_4be6_8234_1fa200165fe9 +); +impl core::ops::Deref for IFabricKeyValueStoreEnumerator2 { + type Target = IFabricKeyValueStoreEnumerator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricConfigurationPackage2 {} -impl IFabricConfigurationPackage2_Vtbl { - pub const fn new( - ) -> IFabricConfigurationPackage2_Vtbl +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreEnumerator2, + windows_core::IUnknown, + IFabricKeyValueStoreEnumerator +); +impl IFabricKeyValueStoreEnumerator2 { + pub unsafe fn EnumerateByKey2( + &self, + keyprefix: P0, + strictprefix: bool, + ) -> windows_core::Result where - Identity: IFabricConfigurationPackage2_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn GetValues< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - sectionname: windows_core::PCWSTR, - parameterprefix: windows_core::PCWSTR, - bufferedvalue: *mut *mut super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> windows_core::HRESULT - where - Identity: IFabricConfigurationPackage2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricConfigurationPackage2_Impl::GetValues( - this, - core::mem::transmute(§ionname), - core::mem::transmute(¶meterprefix), - ) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: IFabricConfigurationPackage_Vtbl::new::(), - GetValues: GetValues::, + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateByKey2)( + windows_core::Interface::as_raw(self), + keyprefix.param().abi(), + strictprefix, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub unsafe fn EnumerateMetadataByKey2( + &self, + keyprefix: P0, + strictprefix: bool, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + windows_core::Interface::as_raw(self), + keyprefix.param().abi(), + strictprefix, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricConfigurationPackageChangeHandler_Impl: Sized { - fn OnPackageAdded( - &self, - source: Option<&IFabricCodePackageActivationContext>, - configpackage: Option<&IFabricConfigurationPackage>, - ); - fn OnPackageRemoved( +#[repr(C)] +pub struct IFabricKeyValueStoreEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreEnumerator_Vtbl, + pub EnumerateByKey2: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + bool, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateMetadataByKey2: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + bool, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricKeyValueStoreEnumerator2_Impl: IFabricKeyValueStoreEnumerator_Impl { + fn EnumerateByKey2( &self, - source: Option<&IFabricCodePackageActivationContext>, - configpackage: Option<&IFabricConfigurationPackage>, - ); - fn OnPackageModified( + keyprefix: &windows_core::PCWSTR, + strictprefix: bool, + ) -> windows_core::Result; + fn EnumerateMetadataByKey2( &self, - source: Option<&IFabricCodePackageActivationContext>, - previousconfigpackage: Option<&IFabricConfigurationPackage>, - configpackage: Option<&IFabricConfigurationPackage>, - ); + keyprefix: &windows_core::PCWSTR, + strictprefix: bool, + ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricConfigurationPackageChangeHandler {} -impl IFabricConfigurationPackageChangeHandler_Vtbl { - pub const fn new( - ) -> IFabricConfigurationPackageChangeHandler_Vtbl - where - Identity: IFabricConfigurationPackageChangeHandler_Impl, +impl IFabricKeyValueStoreEnumerator2_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn OnPackageAdded< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - configpackage: *mut core::ffi::c_void, - ) where - Identity: IFabricConfigurationPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackageChangeHandler_Impl::OnPackageAdded( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&configpackage), - ) - } - unsafe extern "system" fn OnPackageRemoved< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EnumerateByKey2< + Identity: IFabricKeyValueStoreEnumerator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - configpackage: *mut core::ffi::c_void, - ) where - Identity: IFabricConfigurationPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackageChangeHandler_Impl::OnPackageRemoved( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&configpackage), - ) + keyprefix: windows_core::PCWSTR, + strictprefix: bool, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreEnumerator2_Impl::EnumerateByKey2( + this, + core::mem::transmute(&keyprefix), + core::mem::transmute_copy(&strictprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } - unsafe extern "system" fn OnPackageModified< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn EnumerateMetadataByKey2< + Identity: IFabricKeyValueStoreEnumerator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - previousconfigpackage: *mut core::ffi::c_void, - configpackage: *mut core::ffi::c_void, - ) where - Identity: IFabricConfigurationPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricConfigurationPackageChangeHandler_Impl::OnPackageModified( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&previousconfigpackage), - windows_core::from_raw_borrowed(&configpackage), - ) + keyprefix: windows_core::PCWSTR, + strictprefix: bool, + result: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreEnumerator2_Impl::EnumerateMetadataByKey2( + this, + core::mem::transmute(&keyprefix), + core::mem::transmute_copy(&strictprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - OnPackageAdded: OnPackageAdded::, - OnPackageRemoved: OnPackageRemoved::, - OnPackageModified: OnPackageModified::, + base__: IFabricKeyValueStoreEnumerator_Vtbl::new::(), + EnumerateByKey2: EnumerateByKey2::, + EnumerateMetadataByKey2: EnumerateMetadataByKey2::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricDataPackage_Impl: Sized { - fn get_Description(&self) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> windows_core::PCWSTR; +impl windows_core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} +unsafe impl Send for IFabricKeyValueStoreEnumerator2 {} +unsafe impl Sync for IFabricKeyValueStoreEnumerator2 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemEnumerator, + IFabricKeyValueStoreItemEnumerator_Vtbl, + 0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2 +); +windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreItemEnumerator, windows_core::IUnknown); +impl IFabricKeyValueStoreItemEnumerator { + pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)) + .ok() + } + } + pub unsafe fn get_Current(&self) -> Option { + unsafe { + (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw( + self, + )) + } + } } -impl windows_core::RuntimeName for IFabricDataPackage {} -impl IFabricDataPackage_Vtbl { - pub const fn new( - ) -> IFabricDataPackage_Vtbl - where - Identity: IFabricDataPackage_Impl, - { - unsafe extern "system" fn get_Description< - Identity: windows_core::IUnknownImpl, +#[repr(C)] +pub struct IFabricKeyValueStoreItemEnumerator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub get_Current: + unsafe extern "system" fn(*mut core::ffi::c_void) -> Option, +} +pub trait IFabricKeyValueStoreItemEnumerator_Impl: windows_core::IUnknownImpl { + fn MoveNext(&self) -> windows_core::Result<()>; + fn get_Current(&self) -> Option; +} +impl IFabricKeyValueStoreItemEnumerator_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn MoveNext< + Identity: IFabricKeyValueStoreItemEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_DATA_PACKAGE_DESCRIPTION - where - Identity: IFabricDataPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDataPackage_Impl::get_Description(this) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemEnumerator_Impl::MoveNext(this).into() + } } - unsafe extern "system" fn get_Path< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_Current< + Identity: IFabricKeyValueStoreItemEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::PCWSTR - where - Identity: IFabricDataPackage_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDataPackage_Impl::get_Path(this) + ) -> Option { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemEnumerator_Impl::get_Current(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, + MoveNext: MoveNext::, + get_Current: get_Current::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricDataPackageChangeHandler_Impl: Sized { - fn OnPackageAdded( - &self, - source: Option<&IFabricCodePackageActivationContext>, - datapackage: Option<&IFabricDataPackage>, - ); - fn OnPackageRemoved( - &self, - source: Option<&IFabricCodePackageActivationContext>, - datapackage: Option<&IFabricDataPackage>, - ); - fn OnPackageModified( - &self, - source: Option<&IFabricCodePackageActivationContext>, - previousdatapackage: Option<&IFabricDataPackage>, - datapackage: Option<&IFabricDataPackage>, - ); +impl windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} +unsafe impl Send for IFabricKeyValueStoreItemEnumerator {} +unsafe impl Sync for IFabricKeyValueStoreItemEnumerator {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemEnumerator2, + IFabricKeyValueStoreItemEnumerator2_Vtbl, + 0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd +); +impl core::ops::Deref for IFabricKeyValueStoreItemEnumerator2 { + type Target = IFabricKeyValueStoreItemEnumerator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricDataPackageChangeHandler {} -impl IFabricDataPackageChangeHandler_Vtbl { - pub const fn new( - ) -> IFabricDataPackageChangeHandler_Vtbl - where - Identity: IFabricDataPackageChangeHandler_Impl, - { - unsafe extern "system" fn OnPackageAdded< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - datapackage: *mut core::ffi::c_void, - ) where - Identity: IFabricDataPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDataPackageChangeHandler_Impl::OnPackageAdded( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&datapackage), - ) - } - unsafe extern "system" fn OnPackageRemoved< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - datapackage: *mut core::ffi::c_void, - ) where - Identity: IFabricDataPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDataPackageChangeHandler_Impl::OnPackageRemoved( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&datapackage), +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemEnumerator2, + windows_core::IUnknown, + IFabricKeyValueStoreItemEnumerator +); +impl IFabricKeyValueStoreItemEnumerator2 { + pub unsafe fn TryMoveNext(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryMoveNext)( + windows_core::Interface::as_raw(self), + &mut result__, ) + .map(|| result__) } - unsafe extern "system" fn OnPackageModified< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreItemEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreItemEnumerator_Vtbl, + pub TryMoveNext: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, +} +pub trait IFabricKeyValueStoreItemEnumerator2_Impl: + IFabricKeyValueStoreItemEnumerator_Impl +{ + fn TryMoveNext(&self) -> windows_core::Result; +} +impl IFabricKeyValueStoreItemEnumerator2_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn TryMoveNext< + Identity: IFabricKeyValueStoreItemEnumerator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - source: *mut core::ffi::c_void, - previousdatapackage: *mut core::ffi::c_void, - datapackage: *mut core::ffi::c_void, - ) where - Identity: IFabricDataPackageChangeHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricDataPackageChangeHandler_Impl::OnPackageModified( - this, - windows_core::from_raw_borrowed(&source), - windows_core::from_raw_borrowed(&previousdatapackage), - windows_core::from_raw_borrowed(&datapackage), - ) + success: *mut u8, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreItemEnumerator2_Impl::TryMoveNext(this) { + Ok(ok__) => { + success.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } } Self { - base__: windows_core::IUnknown_Vtbl::new::(), - OnPackageAdded: OnPackageAdded::, - OnPackageRemoved: OnPackageRemoved::, - OnPackageModified: OnPackageModified::, + base__: IFabricKeyValueStoreItemEnumerator_Vtbl::new::(), + TryMoveNext: TryMoveNext::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricEseLocalStoreSettingsResult_Impl: Sized { - fn get_Settings(&self) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS; -} -impl windows_core::RuntimeName for IFabricEseLocalStoreSettingsResult {} -impl IFabricEseLocalStoreSettingsResult_Vtbl { - pub const fn new( - ) -> IFabricEseLocalStoreSettingsResult_Vtbl - where - Identity: IFabricEseLocalStoreSettingsResult_Impl, - { - unsafe extern "system" fn get_Settings< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_ESE_LOCAL_STORE_SETTINGS - where - Identity: IFabricEseLocalStoreSettingsResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricEseLocalStoreSettingsResult_Impl::get_Settings(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Settings: get_Settings::, +impl windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} +unsafe impl Send for IFabricKeyValueStoreItemEnumerator2 {} +unsafe impl Sync for IFabricKeyValueStoreItemEnumerator2 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemMetadataEnumerator, + IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, + 0x0bc06aee_fffa_4450_9099_116a5f0e0b53 +); +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataEnumerator, + windows_core::IUnknown +); +impl IFabricKeyValueStoreItemMetadataEnumerator { + pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + pub unsafe fn get_Current(&self) -> Option { + unsafe { + (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw( + self, + )) + } } } -pub trait IFabricKeyValueStoreEnumerator_Impl: Sized { - fn EnumerateByKey( - &self, - keyprefix: &windows_core::PCWSTR, - ) -> windows_core::Result; - fn EnumerateMetadataByKey( - &self, - keyprefix: &windows_core::PCWSTR, - ) -> windows_core::Result; +#[repr(C)] +pub struct IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub get_Current: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> Option, } -impl windows_core::RuntimeName for IFabricKeyValueStoreEnumerator {} -impl IFabricKeyValueStoreEnumerator_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreEnumerator_Vtbl - where - Identity: IFabricKeyValueStoreEnumerator_Impl, - { - unsafe extern "system" fn EnumerateByKey< - Identity: windows_core::IUnknownImpl, +pub trait IFabricKeyValueStoreItemMetadataEnumerator_Impl: windows_core::IUnknownImpl { + fn MoveNext(&self) -> windows_core::Result<()>; + fn get_Current(&self) -> Option; +} +impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { + pub const fn new< + Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn MoveNext< + Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - keyprefix: windows_core::PCWSTR, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreEnumerator_Impl::EnumerateByKey( - this, - core::mem::transmute(&keyprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemMetadataEnumerator_Impl::MoveNext(this).into() } } - unsafe extern "system" fn EnumerateMetadataByKey< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn get_Current< + Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - keyprefix: windows_core::PCWSTR, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreEnumerator_Impl::EnumerateMetadataByKey( - this, - core::mem::transmute(&keyprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> Option { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemMetadataEnumerator_Impl::get_Current(this) } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - EnumerateByKey: EnumerateByKey::, - EnumerateMetadataByKey: EnumerateMetadataByKey::, + MoveNext: MoveNext::, + get_Current: get_Current::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} +unsafe impl Send for IFabricKeyValueStoreItemMetadataEnumerator {} +unsafe impl Sync for IFabricKeyValueStoreItemMetadataEnumerator {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemMetadataEnumerator2, + IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl, + 0x8803d53e_dd73_40fc_a662_1bfe999419ea +); +impl core::ops::Deref for IFabricKeyValueStoreItemMetadataEnumerator2 { + type Target = IFabricKeyValueStoreItemMetadataEnumerator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataEnumerator2, + windows_core::IUnknown, + IFabricKeyValueStoreItemMetadataEnumerator +); +impl IFabricKeyValueStoreItemMetadataEnumerator2 { + pub unsafe fn TryMoveNext(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryMoveNext)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } } } -pub trait IFabricKeyValueStoreEnumerator2_Impl: - Sized + IFabricKeyValueStoreEnumerator_Impl +#[repr(C)] +pub struct IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, + pub TryMoveNext: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, +} +pub trait IFabricKeyValueStoreItemMetadataEnumerator2_Impl: + IFabricKeyValueStoreItemMetadataEnumerator_Impl { - fn EnumerateByKey2( - &self, - keyprefix: &windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, - ) -> windows_core::Result; - fn EnumerateMetadataByKey2( - &self, - keyprefix: &windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, - ) -> windows_core::Result; + fn TryMoveNext(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} -impl IFabricKeyValueStoreEnumerator2_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreEnumerator2_Vtbl - where - Identity: IFabricKeyValueStoreEnumerator2_Impl, - { - unsafe extern "system" fn EnumerateByKey2< - Identity: windows_core::IUnknownImpl, +impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { + pub const fn new< + Identity: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, + const OFFSET: isize, + >() -> Self { + unsafe extern "system" fn TryMoveNext< + Identity: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - keyprefix: windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreEnumerator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreEnumerator2_Impl::EnumerateByKey2( - this, - core::mem::transmute(&keyprefix), - core::mem::transmute_copy(&strictprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + success: *mut u8, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreItemMetadataEnumerator2_Impl::TryMoveNext(this) { + Ok(ok__) => { + success.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: windows_core::IUnknownImpl, + Self { + base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl::new::(), + TryMoveNext: TryMoveNext::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} +unsafe impl Send for IFabricKeyValueStoreItemMetadataEnumerator2 {} +unsafe impl Sync for IFabricKeyValueStoreItemMetadataEnumerator2 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemMetadataResult, + IFabricKeyValueStoreItemMetadataResult_Vtbl, + 0x17c483a1_69e6_4bdc_a058_54fd4a1839fd +); +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataResult, + windows_core::IUnknown +); +impl IFabricKeyValueStoreItemMetadataResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Metadata( + &self, + ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + unsafe { + (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreItemMetadataResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Metadata: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Metadata: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricKeyValueStoreItemMetadataResult_Impl: windows_core::IUnknownImpl { + fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricKeyValueStoreItemMetadataResult_Vtbl { + pub const fn new( + ) -> Self { + unsafe extern "system" fn get_Metadata< + Identity: IFabricKeyValueStoreItemMetadataResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - keyprefix: windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, - result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreEnumerator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreEnumerator2_Impl::EnumerateMetadataByKey2( - this, - core::mem::transmute(&keyprefix), - core::mem::transmute_copy(&strictprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemMetadataResult_Impl::get_Metadata(this) } } Self { - base__: IFabricKeyValueStoreEnumerator_Vtbl::new::(), - EnumerateByKey2: EnumerateByKey2::, - EnumerateMetadataByKey2: EnumerateMetadataByKey2::, + base__: windows_core::IUnknown_Vtbl::new::(), + get_Metadata: get_Metadata::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID } } -pub trait IFabricKeyValueStoreItemEnumerator_Impl: Sized { - fn MoveNext(&self) -> windows_core::Result<()>; - fn get_Current(&self) -> Option; -} -impl windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} -impl IFabricKeyValueStoreItemEnumerator_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemEnumerator_Vtbl - where - Identity: IFabricKeyValueStoreItemEnumerator_Impl, - { - unsafe extern "system" fn MoveNext< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreItemEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemEnumerator_Impl::MoveNext(this).into() +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricKeyValueStoreItemMetadataResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricKeyValueStoreItemMetadataResult {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreItemResult, + IFabricKeyValueStoreItemResult_Vtbl, + 0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e +); +windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreItemResult, windows_core::IUnknown); +impl IFabricKeyValueStoreItemResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Item(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM { + unsafe { + (windows_core::Interface::vtable(self).get_Item)(windows_core::Interface::as_raw(self)) } - unsafe extern "system" fn get_Current< - Identity: windows_core::IUnknownImpl, + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreItemResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Item: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Item: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricKeyValueStoreItemResult_Impl: windows_core::IUnknownImpl { + fn get_Item(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricKeyValueStoreItemResult_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn get_Item< + Identity: IFabricKeyValueStoreItemResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> Option - where - Identity: IFabricKeyValueStoreItemEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemEnumerator_Impl::get_Current(this) + ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreItemResult_Impl::get_Item(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), - MoveNext: MoveNext::, - get_Current: get_Current::, + get_Item: get_Item::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricKeyValueStoreItemEnumerator2_Impl: - Sized + IFabricKeyValueStoreItemEnumerator_Impl -{ - fn TryMoveNext(&self) -> windows_core::Result; +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricKeyValueStoreItemResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricKeyValueStoreItemResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricKeyValueStoreItemResult {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreNotification, + IFabricKeyValueStoreNotification_Vtbl, + 0xcb660aa6_c51e_4f05_9526_93982b550e8f +); +impl core::ops::Deref for IFabricKeyValueStoreNotification { + type Target = IFabricKeyValueStoreItemResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} -impl IFabricKeyValueStoreItemEnumerator2_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemEnumerator2_Vtbl - where - Identity: IFabricKeyValueStoreItemEnumerator2_Impl, +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotification, + windows_core::IUnknown, + IFabricKeyValueStoreItemResult +); +impl IFabricKeyValueStoreNotification { + pub unsafe fn IsDelete(&self) -> bool { + unsafe { + (windows_core::Interface::vtable(self).IsDelete)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreNotification_Vtbl { + pub base__: IFabricKeyValueStoreItemResult_Vtbl, + pub IsDelete: unsafe extern "system" fn(*mut core::ffi::c_void) -> bool, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricKeyValueStoreNotification_Impl: IFabricKeyValueStoreItemResult_Impl { + fn IsDelete(&self) -> bool; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricKeyValueStoreNotification_Vtbl { + pub const fn new() -> Self { - unsafe extern "system" fn TryMoveNext< - Identity: windows_core::IUnknownImpl, + unsafe extern "system" fn IsDelete< + Identity: IFabricKeyValueStoreNotification_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - success: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreItemEnumerator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreItemEnumerator2_Impl::TryMoveNext(this) { - Ok(ok__) => { - success.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), + ) -> bool { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreNotification_Impl::IsDelete(this) } } Self { - base__: IFabricKeyValueStoreItemEnumerator_Vtbl::new::(), - TryMoveNext: TryMoveNext::, + base__: IFabricKeyValueStoreItemResult_Vtbl::new::(), + IsDelete: IsDelete::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricKeyValueStoreNotification {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricKeyValueStoreNotification {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricKeyValueStoreNotification {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreNotificationEnumerator, + IFabricKeyValueStoreNotificationEnumerator_Vtbl, + 0xef25bc08_be76_43c7_adad_20f01fba3399 +); +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotificationEnumerator, + windows_core::IUnknown +); +impl IFabricKeyValueStoreNotificationEnumerator { + pub unsafe fn MoveNext(&self) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).MoveNext)(windows_core::Interface::as_raw(self)) + .ok() + } + } + pub unsafe fn get_Current(&self) -> Option { + unsafe { + (windows_core::Interface::vtable(self).get_Current)(windows_core::Interface::as_raw( + self, + )) + } + } + pub unsafe fn Reset(&self) { + unsafe { + (windows_core::Interface::vtable(self).Reset)(windows_core::Interface::as_raw(self)) + } } } -pub trait IFabricKeyValueStoreItemMetadataEnumerator_Impl: Sized { +#[repr(C)] +pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub get_Current: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> Option, + pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void), +} +pub trait IFabricKeyValueStoreNotificationEnumerator_Impl: windows_core::IUnknownImpl { fn MoveNext(&self) -> windows_core::Result<()>; - fn get_Current(&self) -> Option; + fn get_Current(&self) -> Option; + fn Reset(&self); } -impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} -impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemMetadataEnumerator_Vtbl - where - Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - { +impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { + pub const fn new< + Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >() -> Self { unsafe extern "system" fn MoveNext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemMetadataEnumerator_Impl::MoveNext(this).into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreNotificationEnumerator_Impl::MoveNext(this).into() + } } unsafe extern "system" fn get_Current< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> Option - where - Identity: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemMetadataEnumerator_Impl::get_Current(this) + ) -> Option { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreNotificationEnumerator_Impl::get_Current(this) + } + } + unsafe extern "system" fn Reset< + Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreNotificationEnumerator_Impl::Reset(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), MoveNext: MoveNext::, get_Current: get_Current::, + Reset: Reset::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + iid == &::IID } } -pub trait IFabricKeyValueStoreItemMetadataEnumerator2_Impl: - Sized + IFabricKeyValueStoreItemMetadataEnumerator_Impl +impl windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} +unsafe impl Send for IFabricKeyValueStoreNotificationEnumerator {} +unsafe impl Sync for IFabricKeyValueStoreNotificationEnumerator {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreNotificationEnumerator2, + IFabricKeyValueStoreNotificationEnumerator2_Vtbl, + 0x55eec7c6_ae81_407a_b84c_22771d314ac7 +); +impl core::ops::Deref for IFabricKeyValueStoreNotificationEnumerator2 { + type Target = IFabricKeyValueStoreNotificationEnumerator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotificationEnumerator2, + windows_core::IUnknown, + IFabricKeyValueStoreNotificationEnumerator +); +impl IFabricKeyValueStoreNotificationEnumerator2 { + pub unsafe fn TryMoveNext(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryMoveNext)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreNotificationEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl, + pub TryMoveNext: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, +} +pub trait IFabricKeyValueStoreNotificationEnumerator2_Impl: + IFabricKeyValueStoreNotificationEnumerator_Impl { fn TryMoveNext(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} -impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl - where - Identity: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, - { +impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { + pub const fn new< + Identity: IFabricKeyValueStoreNotificationEnumerator2_Impl, + const OFFSET: isize, + >() -> Self { unsafe extern "system" fn TryMoveNext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreNotificationEnumerator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, success: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreItemMetadataEnumerator2_Impl::TryMoveNext(this) { - Ok(ok__) => { - success.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreNotificationEnumerator2_Impl::TryMoveNext(this) { + Ok(ok__) => { + success.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { - base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl::new::(), + base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl::new::(), TryMoveNext: TryMoveNext::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + iid == &::IID + || iid == &::IID } } -pub trait IFabricKeyValueStoreItemMetadataResult_Impl: Sized { - fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA; +impl windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} +unsafe impl Send for IFabricKeyValueStoreNotificationEnumerator2 {} +unsafe impl Sync for IFabricKeyValueStoreNotificationEnumerator2 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica_Vtbl, + 0x97da35c4_38ed_4a2a_8f37_fbeb56382235 +); +impl core::ops::Deref for IFabricKeyValueStoreReplica { + type Target = IFabricStatefulServiceReplica; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } } -impl windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} -impl IFabricKeyValueStoreItemMetadataResult_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemMetadataResult_Vtbl - where - Identity: IFabricKeyValueStoreItemMetadataResult_Impl, - { - unsafe extern "system" fn get_Metadata< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM_METADATA - where - Identity: IFabricKeyValueStoreItemMetadataResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemMetadataResult_Impl::get_Metadata(this) +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica, + windows_core::IUnknown, + IFabricStatefulServiceReplica +); +impl IFabricKeyValueStoreReplica { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::FabricTypes::FABRIC_EPOCH, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).GetCurrentEpoch)( + windows_core::Interface::as_raw(self), + currentepoch as _, + ) + .ok() } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Metadata: get_Metadata::, + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).UpdateReplicatorSettings)( + windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + pub unsafe fn CreateTransaction(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateTransaction)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricKeyValueStoreItemResult_Impl: Sized { - fn get_Item(&self) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM; -} -impl windows_core::RuntimeName for IFabricKeyValueStoreItemResult {} -impl IFabricKeyValueStoreItemResult_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreItemResult_Vtbl + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> windows_core::Result<()> where - Identity: IFabricKeyValueStoreItemResult_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn get_Item< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_KEY_VALUE_STORE_ITEM - where - Identity: IFabricKeyValueStoreItemResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreItemResult_Impl::get_Item(this) - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_Item: get_Item::, + unsafe { + (windows_core::Interface::vtable(self).Add)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + value.len().try_into().unwrap(), + core::mem::transmute(value.as_ptr()), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreNotification_Impl: - Sized + IFabricKeyValueStoreItemResult_Impl -{ - fn IsDelete(&self) -> windows::Win32::Foundation::BOOLEAN; -} -impl windows_core::RuntimeName for IFabricKeyValueStoreNotification {} -impl IFabricKeyValueStoreNotification_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreNotification_Vtbl + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> windows_core::Result<()> where - Identity: IFabricKeyValueStoreNotification_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn IsDelete< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows::Win32::Foundation::BOOLEAN - where - Identity: IFabricKeyValueStoreNotification_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreNotification_Impl::IsDelete(this) - } - Self { - base__: IFabricKeyValueStoreItemResult_Vtbl::new::(), - IsDelete: IsDelete::, + unsafe { + (windows_core::Interface::vtable(self).Remove)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + checksequencenumber, + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).Update)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + value.len().try_into().unwrap(), + core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } } -} -pub trait IFabricKeyValueStoreNotificationEnumerator_Impl: Sized { - fn MoveNext(&self) -> windows_core::Result<()>; - fn get_Current(&self) -> Option; - fn Reset(&self); -} -impl windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} -impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreNotificationEnumerator_Vtbl + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> windows_core::Result where - Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn MoveNext< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreNotificationEnumerator_Impl::MoveNext(this).into() + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).Get)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn get_Current< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> Option - where - Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreNotificationEnumerator_Impl::get_Current(this) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetMetadata)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - unsafe extern "system" fn Reset( - this: *mut core::ffi::c_void, - ) where - Identity: IFabricKeyValueStoreNotificationEnumerator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreNotificationEnumerator_Impl::Reset(this) + } + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).Contains)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + &mut result__, + ) + .map(|| result__) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - MoveNext: MoveNext::, - get_Current: get_Current::, - Reset: Reset::, + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).Enumerate)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreNotificationEnumerator2_Impl: - Sized + IFabricKeyValueStoreNotificationEnumerator_Impl -{ - fn TryMoveNext(&self) -> windows_core::Result; -} -impl windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} -impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreNotificationEnumerator2_Vtbl + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> windows_core::Result where - Identity: IFabricKeyValueStoreNotificationEnumerator2_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - unsafe extern "system" fn TryMoveNext< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - success: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreNotificationEnumerator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreNotificationEnumerator2_Impl::TryMoveNext(this) { - Ok(ok__) => { - success.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateByKey)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + keyprefix.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl::new::(), - TryMoveNext: TryMoveNext::, + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateMetadata)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + keyprefix.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } } -pub trait IFabricKeyValueStoreReplica_Impl: Sized + IFabricStatefulServiceReplica_Impl { +#[repr(C)] +pub struct IFabricKeyValueStoreReplica_Vtbl { + pub base__: IFabricStatefulServiceReplica_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetCurrentEpoch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut super::FabricTypes::FABRIC_EPOCH, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetCurrentEpoch: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub UpdateReplicatorSettings: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + UpdateReplicatorSettings: usize, + pub CreateTransaction: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub Add: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i32, + *const u8, + ) -> windows_core::HRESULT, + pub Remove: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i64, + ) -> windows_core::HRESULT, + pub Update: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i32, + *const u8, + i64, + ) -> windows_core::HRESULT, + pub Get: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub GetMetadata: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub Contains: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut u8, + ) -> windows_core::HRESULT, + pub Enumerate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateByKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateMetadata: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateMetadataByKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica_Impl: IFabricStatefulServiceReplica_Impl { fn GetCurrentEpoch( &self, currentepoch: *mut super::FabricTypes::FABRIC_EPOCH, @@ -8057,20 +5422,20 @@ pub trait IFabricKeyValueStoreReplica_Impl: Sized + IFabricStatefulServiceReplic fn CreateTransaction(&self) -> windows_core::Result; fn Add( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, ) -> windows_core::Result<()>; fn Remove( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, checksequencenumber: i64, ) -> windows_core::Result<()>; fn Update( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, @@ -8078,141 +5443,143 @@ pub trait IFabricKeyValueStoreReplica_Impl: Sized + IFabricStatefulServiceReplic ) -> windows_core::Result<()>; fn Get( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, ) -> windows_core::Result; fn GetMetadata( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, ) -> windows_core::Result; fn Contains( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, ) -> windows_core::Result; fn Enumerate( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, ) -> windows_core::Result; fn EnumerateByKey( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, keyprefix: &windows_core::PCWSTR, ) -> windows_core::Result; fn EnumerateMetadata( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, ) -> windows_core::Result; fn EnumerateMetadataByKey( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, keyprefix: &windows_core::PCWSTR, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica_Vtbl - where - Identity: IFabricKeyValueStoreReplica_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn GetCurrentEpoch< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, currentepoch: *mut super::FabricTypes::FABRIC_EPOCH, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica_Impl::GetCurrentEpoch( - this, - core::mem::transmute_copy(¤tepoch), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica_Impl::GetCurrentEpoch( + this, + core::mem::transmute_copy(¤tepoch), + ) + .into() + } } unsafe extern "system" fn UpdateReplicatorSettings< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica_Impl::UpdateReplicatorSettings( - this, - core::mem::transmute_copy(&replicatorsettings), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica_Impl::UpdateReplicatorSettings( + this, + core::mem::transmute_copy(&replicatorsettings), + ) + .into() + } } unsafe extern "system" fn CreateTransaction< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::CreateTransaction(this) { - Ok(ok__) => { - transaction.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::CreateTransaction(this) { + Ok(ok__) => { + transaction.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn Add( + unsafe extern "system" fn Add< + Identity: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica_Impl::Add( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&valuesizeinbytes), - core::mem::transmute_copy(&value), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica_Impl::Add( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&valuesizeinbytes), + core::mem::transmute_copy(&value), + ) + .into() + } } unsafe extern "system" fn Remove< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, checksequencenumber: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica_Impl::Remove( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&checksequencenumber), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica_Impl::Remove( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&checksequencenumber), + ) + .into() + } } unsafe extern "system" fn Update< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8221,187 +5588,190 @@ impl IFabricKeyValueStoreReplica_Vtbl { valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica_Impl::Update( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&valuesizeinbytes), - core::mem::transmute_copy(&value), - core::mem::transmute_copy(&checksequencenumber), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica_Impl::Update( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&valuesizeinbytes), + core::mem::transmute_copy(&value), + core::mem::transmute_copy(&checksequencenumber), + ) + .into() + } } - unsafe extern "system" fn Get( + unsafe extern "system" fn Get< + Identity: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::Get( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::Get( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetMetadata< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::GetMetadata( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::GetMetadata( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn Contains< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, result: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::Contains( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::Contains( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn Enumerate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::Enumerate( - this, - windows_core::from_raw_borrowed(&transaction), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::Enumerate( + this, + core::mem::transmute_copy(&transaction), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EnumerateByKey< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, keyprefix: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::EnumerateByKey( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&keyprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::EnumerateByKey( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&keyprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadata< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::EnumerateMetadata( - this, - windows_core::from_raw_borrowed(&transaction), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::EnumerateMetadata( + this, + core::mem::transmute_copy(&transaction), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, keyprefix: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica_Impl::EnumerateMetadataByKey( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&keyprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica_Impl::EnumerateMetadataByKey( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&keyprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -8426,7 +5796,104 @@ impl IFabricKeyValueStoreReplica_Vtbl { || iid == &::IID } } -pub trait IFabricKeyValueStoreReplica2_Impl: Sized + IFabricKeyValueStoreReplica_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica2_Vtbl, + 0xfef805b2_5aca_4caa_9c51_fb3bd577a792 +); +impl core::ops::Deref for IFabricKeyValueStoreReplica2 { + type Target = IFabricKeyValueStoreReplica; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica2, + windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica +); +impl IFabricKeyValueStoreReplica2 { + pub unsafe fn Backup(&self, backupdirectory: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).Backup)( + windows_core::Interface::as_raw(self), + backupdirectory.param().abi(), + ) + .ok() + } + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).Restore)( + windows_core::Interface::as_raw(self), + backupdirectory.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateTransaction2)( + windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreReplica2_Vtbl { + pub base__: IFabricKeyValueStoreReplica_Vtbl, + pub Backup: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, + pub Restore: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub CreateTransaction2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + CreateTransaction2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica2_Impl: IFabricKeyValueStoreReplica_Impl { fn Backup(&self, backupdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn Restore(&self, backupdirectory: &windows_core::PCWSTR) -> windows_core::Result<()>; fn CreateTransaction2( @@ -8434,62 +5901,67 @@ pub trait IFabricKeyValueStoreReplica2_Impl: Sized + IFabricKeyValueStoreReplica settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica2_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica2_Vtbl - where - Identity: IFabricKeyValueStoreReplica2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn Backup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, backupdirectory: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica2_Impl::Backup(this, core::mem::transmute(&backupdirectory)) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica2_Impl::Backup( + this, + core::mem::transmute(&backupdirectory), + ) .into() + } } unsafe extern "system" fn Restore< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, backupdirectory: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica2_Impl::Restore(this, core::mem::transmute(&backupdirectory)) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica2_Impl::Restore( + this, + core::mem::transmute(&backupdirectory), + ) .into() + } } unsafe extern "system" fn CreateTransaction2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, transaction: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica2_Impl::CreateTransaction2( - this, - core::mem::transmute_copy(&settings), - ) { - Ok(ok__) => { - transaction.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica2_Impl::CreateTransaction2( + this, + core::mem::transmute_copy(&settings), + ) { + Ok(ok__) => { + transaction.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -8505,28 +5977,136 @@ impl IFabricKeyValueStoreReplica2_Vtbl { || iid == &::IID } } -pub trait IFabricKeyValueStoreReplica3_Impl: Sized + IFabricKeyValueStoreReplica2_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica2 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica3, + IFabricKeyValueStoreReplica3_Vtbl, + 0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f +); +impl core::ops::Deref for IFabricKeyValueStoreReplica3 { + type Target = IFabricKeyValueStoreReplica2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica3, + windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2 +); +impl IFabricKeyValueStoreReplica3 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginBackup( + &self, + backupdirectory: P0, + backupoption: super::FabricTypes::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: P2, + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P2: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginBackup)( + windows_core::Interface::as_raw(self), + backupdirectory.param().abi(), + backupoption, + postbackuphandler.param().abi(), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndBackup(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndBackup)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreReplica3_Vtbl { + pub base__: IFabricKeyValueStoreReplica2_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginBackup: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + super::FabricTypes::FABRIC_STORE_BACKUP_OPTION, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginBackup: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndBackup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndBackup: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica3_Impl: IFabricKeyValueStoreReplica2_Impl { fn BeginBackup( &self, backupdirectory: &windows_core::PCWSTR, backupoption: super::FabricTypes::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: Option<&IFabricStorePostBackupHandler>, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + postbackuphandler: windows_core::Ref<'_, IFabricStorePostBackupHandler>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndBackup( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica3_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica3_Vtbl - where - Identity: IFabricKeyValueStoreReplica3_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginBackup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8535,41 +6115,41 @@ impl IFabricKeyValueStoreReplica3_Vtbl { postbackuphandler: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica3_Impl::BeginBackup( - this, - core::mem::transmute(&backupdirectory), - core::mem::transmute_copy(&backupoption), - windows_core::from_raw_borrowed(&postbackuphandler), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica3_Impl::BeginBackup( + this, + core::mem::transmute(&backupdirectory), + core::mem::transmute_copy(&backupoption), + core::mem::transmute_copy(&postbackuphandler), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndBackup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica3_Impl::EndBackup( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica3_Impl::EndBackup( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricKeyValueStoreReplica2_Vtbl::new::(), @@ -8584,65 +6164,158 @@ impl IFabricKeyValueStoreReplica3_Vtbl { || iid == &::IID } } -pub trait IFabricKeyValueStoreReplica4_Impl: Sized + IFabricKeyValueStoreReplica3_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica3 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica3 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica4, + IFabricKeyValueStoreReplica4_Vtbl, + 0xff16d2f1_41a9_4c64_804a_a20bf28c04f3 +); +impl core::ops::Deref for IFabricKeyValueStoreReplica4 { + type Target = IFabricKeyValueStoreReplica3; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica4, + windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3 +); +impl IFabricKeyValueStoreReplica4 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRestore( + &self, + backupdirectory: P0, + callback: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestore)( + windows_core::Interface::as_raw(self), + backupdirectory.param().abi(), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRestore(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRestore)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreReplica4_Vtbl { + pub base__: IFabricKeyValueStoreReplica3_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRestore: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRestore: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRestore: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRestore: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica4_Impl: IFabricKeyValueStoreReplica3_Impl { fn BeginRestore( &self, backupdirectory: &windows_core::PCWSTR, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRestore( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica4_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica4_Vtbl - where - Identity: IFabricKeyValueStoreReplica4_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginRestore< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, backupdirectory: windows_core::PCWSTR, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica4_Impl::BeginRestore( - this, - core::mem::transmute(&backupdirectory), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica4_Impl::BeginRestore( + this, + core::mem::transmute(&backupdirectory), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRestore< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica4_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica4_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricKeyValueStoreReplica4_Impl::EndRestore( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricKeyValueStoreReplica4_Impl::EndRestore( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } Self { base__: IFabricKeyValueStoreReplica3_Vtbl::new::(), @@ -8658,23 +6331,272 @@ impl IFabricKeyValueStoreReplica4_Vtbl { || iid == &::IID } } -pub trait IFabricKeyValueStoreReplica5_Impl: Sized + IFabricKeyValueStoreReplica4_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica4 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica4 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica5, + IFabricKeyValueStoreReplica5_Vtbl, + 0x34f2da40_6227_448a_be72_c517b0d69432 +); +impl core::ops::Deref for IFabricKeyValueStoreReplica5 { + type Target = IFabricKeyValueStoreReplica4; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica5, + windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3, + IFabricKeyValueStoreReplica4 +); +impl IFabricKeyValueStoreReplica5 { + pub unsafe fn TryAdd( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryAdd)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + value.len().try_into().unwrap(), + core::mem::transmute(value.as_ptr()), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn TryRemove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryRemove)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + checksequencenumber, + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn TryUpdate( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryUpdate)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + value.len().try_into().unwrap(), + core::mem::transmute(value.as_ptr()), + checksequencenumber, + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn TryGet( + &self, + transaction: P0, + key: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryGet)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub unsafe fn TryGetMetadata( + &self, + transaction: P0, + key: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).TryGetMetadata)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub unsafe fn EnumerateByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: bool, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateByKey2)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + keyprefix.param().abi(), + strictprefix, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub unsafe fn EnumerateMetadataByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: bool, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + windows_core::Interface::as_raw(self), + transaction.param().abi(), + keyprefix.param().abi(), + strictprefix, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreReplica5_Vtbl { + pub base__: IFabricKeyValueStoreReplica4_Vtbl, + pub TryAdd: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i32, + *const u8, + *mut u8, + ) -> windows_core::HRESULT, + pub TryRemove: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i64, + *mut u8, + ) -> windows_core::HRESULT, + pub TryUpdate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + i32, + *const u8, + i64, + *mut u8, + ) -> windows_core::HRESULT, + pub TryGet: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub TryGetMetadata: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateByKey2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + bool, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub EnumerateMetadataByKey2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + windows_core::PCWSTR, + bool, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica5_Impl: IFabricKeyValueStoreReplica4_Impl { fn TryAdd( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, ) -> windows_core::Result; fn TryRemove( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, checksequencenumber: i64, ) -> windows_core::Result; fn TryUpdate( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, @@ -8682,36 +6604,35 @@ pub trait IFabricKeyValueStoreReplica5_Impl: Sized + IFabricKeyValueStoreReplica ) -> windows_core::Result; fn TryGet( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, ) -> windows_core::Result; fn TryGetMetadata( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, key: &windows_core::PCWSTR, ) -> windows_core::Result; fn EnumerateByKey2( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, keyprefix: &windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, + strictprefix: bool, ) -> windows_core::Result; fn EnumerateMetadataByKey2( &self, - transaction: Option<&IFabricTransactionBase>, + transaction: windows_core::Ref<'_, IFabricTransactionBase>, keyprefix: &windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, + strictprefix: bool, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica5_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica5_Vtbl - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn TryAdd< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8720,27 +6641,27 @@ impl IFabricKeyValueStoreReplica5_Vtbl { valuesizeinbytes: i32, value: *const u8, added: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::TryAdd( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&valuesizeinbytes), - core::mem::transmute_copy(&value), - ) { - Ok(ok__) => { - added.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::TryAdd( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&valuesizeinbytes), + core::mem::transmute_copy(&value), + ) { + Ok(ok__) => { + added.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn TryRemove< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8748,26 +6669,26 @@ impl IFabricKeyValueStoreReplica5_Vtbl { key: windows_core::PCWSTR, checksequencenumber: i64, exists: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::TryRemove( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&checksequencenumber), - ) { - Ok(ok__) => { - exists.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::TryRemove( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&checksequencenumber), + ) { + Ok(ok__) => { + exists.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn TryUpdate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8777,128 +6698,128 @@ impl IFabricKeyValueStoreReplica5_Vtbl { value: *const u8, checksequencenumber: i64, exists: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::TryUpdate( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - core::mem::transmute_copy(&valuesizeinbytes), - core::mem::transmute_copy(&value), - core::mem::transmute_copy(&checksequencenumber), - ) { - Ok(ok__) => { - exists.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::TryUpdate( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + core::mem::transmute_copy(&valuesizeinbytes), + core::mem::transmute_copy(&value), + core::mem::transmute_copy(&checksequencenumber), + ) { + Ok(ok__) => { + exists.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn TryGet< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::TryGet( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::TryGet( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn TryGetMetadata< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, key: windows_core::PCWSTR, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::TryGetMetadata( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&key), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::TryGetMetadata( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&key), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EnumerateByKey2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, keyprefix: windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, + strictprefix: bool, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::EnumerateByKey2( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&keyprefix), - core::mem::transmute_copy(&strictprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::EnumerateByKey2( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&keyprefix), + core::mem::transmute_copy(&strictprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, transaction: *mut core::ffi::c_void, keyprefix: windows_core::PCWSTR, - strictprefix: windows::Win32::Foundation::BOOLEAN, + strictprefix: bool, result: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica5_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica5_Impl::EnumerateMetadataByKey2( - this, - windows_core::from_raw_borrowed(&transaction), - core::mem::transmute(&keyprefix), - core::mem::transmute_copy(&strictprefix), - ) { - Ok(ok__) => { - result.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica5_Impl::EnumerateMetadataByKey2( + this, + core::mem::transmute_copy(&transaction), + core::mem::transmute(&keyprefix), + core::mem::transmute_copy(&strictprefix), + ) { + Ok(ok__) => { + result.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -8921,23 +6842,110 @@ impl IFabricKeyValueStoreReplica5_Vtbl { || iid == &::IID } } -pub trait IFabricKeyValueStoreReplica6_Impl: Sized + IFabricKeyValueStoreReplica5_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica5 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica5 {} +windows_core::imp::define_interface!( + IFabricKeyValueStoreReplica6, + IFabricKeyValueStoreReplica6_Vtbl, + 0x56e77be1_e81f_4e42_8522_162c2d608184 +); +impl core::ops::Deref for IFabricKeyValueStoreReplica6 { + type Target = IFabricKeyValueStoreReplica5; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica6, + windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3, + IFabricKeyValueStoreReplica4, + IFabricKeyValueStoreReplica5 +); +impl IFabricKeyValueStoreReplica6 { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginRestore2( + &self, + backupdirectory: P0, + settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + callback: P2, + ) -> windows_core::Result + where + P0: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRestore2)( + windows_core::Interface::as_raw(self), + backupdirectory.param().abi(), + settings, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricKeyValueStoreReplica6_Vtbl { + pub base__: IFabricKeyValueStoreReplica5_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginRestore2: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginRestore2: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricKeyValueStoreReplica6_Impl: IFabricKeyValueStoreReplica5_Impl { fn BeginRestore2( &self, backupdirectory: &windows_core::PCWSTR, settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricKeyValueStoreReplica6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricKeyValueStoreReplica6_Vtbl { - pub const fn new( - ) -> IFabricKeyValueStoreReplica6_Vtbl - where - Identity: IFabricKeyValueStoreReplica6_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginRestore2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricKeyValueStoreReplica6_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -8945,22 +6953,22 @@ impl IFabricKeyValueStoreReplica6_Vtbl { settings: *const super::FabricTypes::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricKeyValueStoreReplica6_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricKeyValueStoreReplica6_Impl::BeginRestore2( - this, - core::mem::transmute(&backupdirectory), - core::mem::transmute_copy(&settings), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricKeyValueStoreReplica6_Impl::BeginRestore2( + this, + core::mem::transmute(&backupdirectory), + core::mem::transmute_copy(&settings), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -8978,27 +6986,66 @@ impl IFabricKeyValueStoreReplica6_Vtbl { || iid == &::IID } } -pub trait IFabricNodeContextResult_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricKeyValueStoreReplica6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricKeyValueStoreReplica6 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricKeyValueStoreReplica6 {} +windows_core::imp::define_interface!( + IFabricNodeContextResult, + IFabricNodeContextResult_Vtbl, + 0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce +); +windows_core::imp::interface_hierarchy!(IFabricNodeContextResult, windows_core::IUnknown); +impl IFabricNodeContextResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_NodeContext(&self) -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT { + unsafe { + (windows_core::Interface::vtable(self).get_NodeContext)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricNodeContextResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_NodeContext: unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_NodeContext: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricNodeContextResult_Impl: windows_core::IUnknownImpl { fn get_NodeContext(&self) -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT; } -impl windows_core::RuntimeName for IFabricNodeContextResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricNodeContextResult_Vtbl { - pub const fn new( - ) -> IFabricNodeContextResult_Vtbl - where - Identity: IFabricNodeContextResult_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_NodeContext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricNodeContextResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT - where - Identity: IFabricNodeContextResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricNodeContextResult_Impl::get_NodeContext(this) + ) -> *mut super::FabricTypes::FABRIC_NODE_CONTEXT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricNodeContextResult_Impl::get_NodeContext(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -9009,40 +7056,97 @@ impl IFabricNodeContextResult_Vtbl { iid == &::IID } } -pub trait IFabricNodeContextResult2_Impl: Sized + IFabricNodeContextResult_Impl { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricNodeContextResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricNodeContextResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricNodeContextResult {} +windows_core::imp::define_interface!( + IFabricNodeContextResult2, + IFabricNodeContextResult2_Vtbl, + 0x472bf2e1_d617_4b5c_a91d_fabed9ff3550 +); +impl core::ops::Deref for IFabricNodeContextResult2 { + type Target = IFabricNodeContextResult; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricNodeContextResult2, + windows_core::IUnknown, + IFabricNodeContextResult +); +impl IFabricNodeContextResult2 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn GetDirectory( + &self, + logicaldirectoryname: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetDirectory)( + windows_core::Interface::as_raw(self), + logicaldirectoryname.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricNodeContextResult2_Vtbl { + pub base__: IFabricNodeContextResult_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub GetDirectory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + GetDirectory: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricNodeContextResult2_Impl: IFabricNodeContextResult_Impl { fn GetDirectory( &self, logicaldirectoryname: &windows_core::PCWSTR, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricNodeContextResult2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricNodeContextResult2_Vtbl { - pub const fn new( - ) -> IFabricNodeContextResult2_Vtbl - where - Identity: IFabricNodeContextResult2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn GetDirectory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricNodeContextResult2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, logicaldirectoryname: windows_core::PCWSTR, directorypath: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricNodeContextResult2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricNodeContextResult2_Impl::GetDirectory( - this, - core::mem::transmute(&logicaldirectoryname), - ) { - Ok(ok__) => { - directorypath.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricNodeContextResult2_Impl::GetDirectory( + this, + core::mem::transmute(&logicaldirectoryname), + ) { + Ok(ok__) => { + directorypath.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -9055,7 +7159,82 @@ impl IFabricNodeContextResult2_Vtbl { || iid == &::IID } } -pub trait IFabricOperation_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricNodeContextResult2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricNodeContextResult2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricNodeContextResult2 {} +windows_core::imp::define_interface!( + IFabricOperation, + IFabricOperation_Vtbl, + 0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a +); +windows_core::imp::interface_hierarchy!(IFabricOperation, windows_core::IUnknown); +impl IFabricOperation { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA { + unsafe { + (windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw( + self, + )) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetData( + &self, + count: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetData)( + windows_core::Interface::as_raw(self), + count as _, + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn Acknowledge(&self) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).Acknowledge)(windows_core::Interface::as_raw( + self, + )) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricOperation_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_Metadata: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_Metadata: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetData: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetData: usize, + pub Acknowledge: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricOperation_Impl: windows_core::IUnknownImpl { fn get_Metadata(&self) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA; fn GetData( &self, @@ -9063,56 +7242,49 @@ pub trait IFabricOperation_Impl: Sized { ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER>; fn Acknowledge(&self) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricOperation {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricOperation_Vtbl { - pub const fn new( - ) -> IFabricOperation_Vtbl - where - Identity: IFabricOperation_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Metadata< - Identity: windows_core::IUnknownImpl, + Identity: IFabricOperation_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA - where - Identity: IFabricOperation_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricOperation_Impl::get_Metadata(this) + ) -> *mut super::FabricTypes::FABRIC_OPERATION_METADATA { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricOperation_Impl::get_Metadata(this) + } } - unsafe extern "system" fn GetData< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn GetData( this: *mut core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, - ) -> windows_core::HRESULT - where - Identity: IFabricOperation_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperation_Impl::GetData(this, core::mem::transmute_copy(&count)) { - Ok(ok__) => { - buffers.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperation_Impl::GetData(this, core::mem::transmute_copy(&count)) { + Ok(ok__) => { + buffers.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn Acknowledge< - Identity: windows_core::IUnknownImpl, + Identity: IFabricOperation_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricOperation_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricOperation_Impl::Acknowledge(this).into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricOperation_Impl::Acknowledge(this).into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -9125,37 +7297,75 @@ impl IFabricOperation_Vtbl { iid == &::IID } } -pub trait IFabricOperationData_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricOperation {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricOperation {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricOperation {} +windows_core::imp::define_interface!( + IFabricOperationData, + IFabricOperationData_Vtbl, + 0xbab8ad87_37b7_482a_985d_baf38a785dcd +); +windows_core::imp::interface_hierarchy!(IFabricOperationData, windows_core::IUnknown); +impl IFabricOperationData { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetData( + &self, + count: *mut u32, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetData)( + windows_core::Interface::as_raw(self), + count as _, + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricOperationData_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetData: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut u32, + *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetData: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricOperationData_Impl: windows_core::IUnknownImpl { fn GetData( &self, count: *mut u32, ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER>; } -impl windows_core::RuntimeName for IFabricOperationData {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricOperationData_Vtbl { - pub const fn new( - ) -> IFabricOperationData_Vtbl - where - Identity: IFabricOperationData_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn GetData< - Identity: windows_core::IUnknownImpl, + Identity: IFabricOperationData_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::FabricTypes::FABRIC_OPERATION_DATA_BUFFER, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationData_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperationData_Impl::GetData(this, core::mem::transmute_copy(&count)) { - Ok(ok__) => { - buffers.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperationData_Impl::GetData(this, core::mem::transmute_copy(&count)) { + Ok(ok__) => { + buffers.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -9167,67 +7377,131 @@ impl IFabricOperationData_Vtbl { iid == &::IID } } -pub trait IFabricOperationDataStream_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricOperationData {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricOperationData {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricOperationData {} +windows_core::imp::define_interface!( + IFabricOperationDataStream, + IFabricOperationDataStream_Vtbl, + 0xc4e9084c_be92_49c9_8c18_d44d088c2e32 +); +windows_core::imp::interface_hierarchy!(IFabricOperationDataStream, windows_core::IUnknown); +impl IFabricOperationDataStream { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetNext( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetNext)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetNext(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetNext)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricOperationDataStream_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetNext: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetNext: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetNext: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetNext: usize, +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricOperationDataStream_Impl: windows_core::IUnknownImpl { fn BeginGetNext( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetNext( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricOperationDataStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] impl IFabricOperationDataStream_Vtbl { - pub const fn new( - ) -> IFabricOperationDataStream_Vtbl - where - Identity: IFabricOperationDataStream_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginGetNext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricOperationDataStream_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationDataStream_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperationDataStream_Impl::BeginGetNext( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperationDataStream_Impl::BeginGetNext( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndGetNext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricOperationDataStream_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, operationdata: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationDataStream_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperationDataStream_Impl::EndGetNext( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - operationdata.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperationDataStream_Impl::EndGetNext( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + operationdata.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -9240,124 +7514,504 @@ impl IFabricOperationDataStream_Vtbl { iid == &::IID } } -pub trait IFabricOperationStream_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricOperationDataStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricOperationDataStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricOperationDataStream {} +windows_core::imp::define_interface!( + IFabricOperationStream, + IFabricOperationStream_Vtbl, + 0xa98fb97a_d6b0_408a_a878_a9edb09c2587 +); +windows_core::imp::interface_hierarchy!(IFabricOperationStream, windows_core::IUnknown); +impl IFabricOperationStream { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginGetOperation( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginGetOperation)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndGetOperation(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndGetOperation)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricOperationStream_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginGetOperation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginGetOperation: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndGetOperation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndGetOperation: usize, +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricOperationStream_Impl: windows_core::IUnknownImpl { fn BeginGetOperation( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndGetOperation( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricOperationStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] impl IFabricOperationStream_Vtbl { - pub const fn new( - ) -> IFabricOperationStream_Vtbl + pub const fn new() -> Self { + unsafe extern "system" fn BeginGetOperation< + Identity: IFabricOperationStream_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + callback: *mut core::ffi::c_void, + context: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperationStream_Impl::BeginGetOperation( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn EndGetOperation< + Identity: IFabricOperationStream_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + context: *mut core::ffi::c_void, + operation: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricOperationStream_Impl::EndGetOperation( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + operation.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginGetOperation: BeginGetOperation::, + EndGetOperation: EndGetOperation::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricOperationStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricOperationStream {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricOperationStream {} +windows_core::imp::define_interface!( + IFabricOperationStream2, + IFabricOperationStream2_Vtbl, + 0x0930199b_590a_4065_bec9_5f93b6aae086 +); +impl core::ops::Deref for IFabricOperationStream2 { + type Target = IFabricOperationStream; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricOperationStream2, + windows_core::IUnknown, + IFabricOperationStream +); +impl IFabricOperationStream2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportFault( + &self, + faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportFault)( + windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricOperationStream2_Vtbl { + pub base__: IFabricOperationStream_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportFault: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportFault: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricOperationStream2_Impl: IFabricOperationStream_Impl { + fn ReportFault( + &self, + faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::Result<()>; +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl IFabricOperationStream2_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn ReportFault< + Identity: IFabricOperationStream2_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricOperationStream2_Impl::ReportFault( + this, + core::mem::transmute_copy(&faulttype), + ) + .into() + } + } + Self { + base__: IFabricOperationStream_Vtbl::new::(), + ReportFault: ReportFault::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricOperationStream2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricOperationStream2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricOperationStream2 {} +windows_core::imp::define_interface!( + IFabricPrimaryReplicator, + IFabricPrimaryReplicator_Vtbl, + 0x564e50dd_c3a4_4600_a60e_6658874307ae +); +impl core::ops::Deref for IFabricPrimaryReplicator { + type Target = IFabricReplicator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricPrimaryReplicator, + windows_core::IUnknown, + IFabricReplicator +); +impl IFabricPrimaryReplicator { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOnDataLoss)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOnDataLoss)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn UpdateCatchUpReplicaSetConfiguration( + &self, + currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + previousconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).UpdateCatchUpReplicaSetConfiguration)( + windows_core::Interface::as_raw(self), + currentconfiguration, + previousconfiguration, + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginWaitForCatchUpQuorum( + &self, + catchupmode: super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginWaitForCatchUpQuorum)( + windows_core::Interface::as_raw(self), + catchupmode, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndWaitForCatchUpQuorum(&self, context: P0) -> windows_core::Result<()> where - Identity: IFabricOperationStream_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn BeginGetOperation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - callback: *mut core::ffi::c_void, - context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationStream_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperationStream_Impl::BeginGetOperation( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetOperation< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - context: *mut core::ffi::c_void, - operation: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationStream_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricOperationStream_Impl::EndGetOperation( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - operation.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginGetOperation: BeginGetOperation::, - EndGetOperation: EndGetOperation::, + unsafe { + (windows_core::Interface::vtable(self).EndWaitForCatchUpQuorum)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn UpdateCurrentReplicaSetConfiguration( + &self, + currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).UpdateCurrentReplicaSetConfiguration)( + windows_core::Interface::as_raw(self), + currentconfiguration, + ) + .ok() + } } -} -pub trait IFabricOperationStream2_Impl: Sized + IFabricOperationStream_Impl { - fn ReportFault( + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginBuildReplica( &self, - faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::Result<()>; -} -impl windows_core::RuntimeName for IFabricOperationStream2 {} -impl IFabricOperationStream2_Vtbl { - pub const fn new( - ) -> IFabricOperationStream2_Vtbl + replica: *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, + callback: P1, + ) -> windows_core::Result where - Identity: IFabricOperationStream2_Impl, + P1: windows_core::Param, { - unsafe extern "system" fn ReportFault< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT - where - Identity: IFabricOperationStream2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricOperationStream2_Impl::ReportFault(this, core::mem::transmute_copy(&faulttype)) - .into() + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginBuildReplica)( + windows_core::Interface::as_raw(self), + replica, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: IFabricOperationStream_Vtbl::new::(), - ReportFault: ReportFault::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndBuildReplica(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndBuildReplica)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub unsafe fn RemoveReplica(&self, replicaid: i64) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).RemoveReplica)( + windows_core::Interface::as_raw(self), + replicaid, + ) + .ok() + } } } -pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { +#[repr(C)] +pub struct IFabricPrimaryReplicator_Vtbl { + pub base__: IFabricReplicator_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginOnDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u8, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOnDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub UpdateCatchUpReplicaSetConfiguration: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + UpdateCatchUpReplicaSetConfiguration: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginWaitForCatchUpQuorum: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginWaitForCatchUpQuorum: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndWaitForCatchUpQuorum: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndWaitForCatchUpQuorum: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub UpdateCurrentReplicaSetConfiguration: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + UpdateCurrentReplicaSetConfiguration: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginBuildReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginBuildReplica: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndBuildReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndBuildReplica: usize, + pub RemoveReplica: + unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricPrimaryReplicator_Impl: IFabricReplicator_Impl { fn BeginOnDataLoss( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOnDataLoss( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn UpdateCatchUpReplicaSetConfiguration( &self, @@ -9367,11 +8021,11 @@ pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { fn BeginWaitForCatchUpQuorum( &self, catchupmode: super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndWaitForCatchUpQuorum( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn UpdateCurrentReplicaSetConfiguration( &self, @@ -9380,203 +8034,202 @@ pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { fn BeginBuildReplica( &self, replica: *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndBuildReplica( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn RemoveReplica(&self, replicaid: i64) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricPrimaryReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricPrimaryReplicator_Vtbl { - pub const fn new( - ) -> IFabricPrimaryReplicator_Vtbl - where - Identity: IFabricPrimaryReplicator_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPrimaryReplicator_Impl::BeginOnDataLoss( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPrimaryReplicator_Impl::BeginOnDataLoss( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, isstatechanged: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPrimaryReplicator_Impl::EndOnDataLoss( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - isstatechanged.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPrimaryReplicator_Impl::EndOnDataLoss( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + isstatechanged.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn UpdateCatchUpReplicaSetConfiguration< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, previousconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPrimaryReplicator_Impl::UpdateCatchUpReplicaSetConfiguration( - this, - core::mem::transmute_copy(¤tconfiguration), - core::mem::transmute_copy(&previousconfiguration), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPrimaryReplicator_Impl::UpdateCatchUpReplicaSetConfiguration( + this, + core::mem::transmute_copy(¤tconfiguration), + core::mem::transmute_copy(&previousconfiguration), + ) + .into() + } } unsafe extern "system" fn BeginWaitForCatchUpQuorum< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, catchupmode: super::FabricTypes::FABRIC_REPLICA_SET_QUORUM_MODE, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPrimaryReplicator_Impl::BeginWaitForCatchUpQuorum( - this, - core::mem::transmute_copy(&catchupmode), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPrimaryReplicator_Impl::BeginWaitForCatchUpQuorum( + this, + core::mem::transmute_copy(&catchupmode), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndWaitForCatchUpQuorum< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPrimaryReplicator_Impl::EndWaitForCatchUpQuorum( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPrimaryReplicator_Impl::EndWaitForCatchUpQuorum( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn UpdateCurrentReplicaSetConfiguration< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, currentconfiguration: *const super::FabricTypes::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPrimaryReplicator_Impl::UpdateCurrentReplicaSetConfiguration( - this, - core::mem::transmute_copy(¤tconfiguration), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPrimaryReplicator_Impl::UpdateCurrentReplicaSetConfiguration( + this, + core::mem::transmute_copy(¤tconfiguration), + ) + .into() + } } unsafe extern "system" fn BeginBuildReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, replica: *const super::FabricTypes::FABRIC_REPLICA_INFORMATION, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricPrimaryReplicator_Impl::BeginBuildReplica( - this, - core::mem::transmute_copy(&replica), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricPrimaryReplicator_Impl::BeginBuildReplica( + this, + core::mem::transmute_copy(&replica), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndBuildReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPrimaryReplicator_Impl::EndBuildReplica( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPrimaryReplicator_Impl::EndBuildReplica( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn RemoveReplica< - Identity: windows_core::IUnknownImpl, + Identity: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, replicaid: i64, - ) -> windows_core::HRESULT - where - Identity: IFabricPrimaryReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricPrimaryReplicator_Impl::RemoveReplica( - this, - core::mem::transmute_copy(&replicaid), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricPrimaryReplicator_Impl::RemoveReplica( + this, + core::mem::transmute_copy(&replicaid), + ) + .into() + } } Self { base__: IFabricReplicator_Vtbl::new::(), @@ -9597,133 +8250,424 @@ impl IFabricPrimaryReplicator_Vtbl { RemoveReplica: RemoveReplica::, } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricPrimaryReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricPrimaryReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricPrimaryReplicator {} +windows_core::imp::define_interface!( + IFabricProcessExitHandler, + IFabricProcessExitHandler_Vtbl, + 0xc58d50a2_01f0_4267_bbe7_223b565c1346 +); +windows_core::imp::interface_hierarchy!(IFabricProcessExitHandler, windows_core::IUnknown); +impl IFabricProcessExitHandler { + pub unsafe fn FabricProcessExited(&self) { + unsafe { + (windows_core::Interface::vtable(self).FabricProcessExited)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricProcessExitHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub FabricProcessExited: unsafe extern "system" fn(*mut core::ffi::c_void), +} +pub trait IFabricProcessExitHandler_Impl: windows_core::IUnknownImpl { + fn FabricProcessExited(&self); +} +impl IFabricProcessExitHandler_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn FabricProcessExited< + Identity: IFabricProcessExitHandler_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricProcessExitHandler_Impl::FabricProcessExited(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + FabricProcessExited: FabricProcessExited::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricProcessExitHandler {} +unsafe impl Send for IFabricProcessExitHandler {} +unsafe impl Sync for IFabricProcessExitHandler {} +windows_core::imp::define_interface!( + IFabricReplicator, + IFabricReplicator_Vtbl, + 0x067f144a_e5be_4f5e_a181_8b5593e20242 +); +windows_core::imp::interface_hierarchy!(IFabricReplicator, windows_core::IUnknown); +impl IFabricReplicator { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginOpen( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOpen)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOpen)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginChangeRole( + &self, + epoch: *const super::FabricTypes::FABRIC_EPOCH, + role: super::FabricTypes::FABRIC_REPLICA_ROLE, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginChangeRole)( + windows_core::Interface::as_raw(self), + epoch, + role, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndChangeRole(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndChangeRole)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateEpoch( + &self, + epoch: *const super::FabricTypes::FABRIC_EPOCH, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateEpoch)( + windows_core::Interface::as_raw(self), + epoch, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpdateEpoch)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -pub trait IFabricProcessExitHandler_Impl: Sized { - fn FabricProcessExited(&self); -} -impl windows_core::RuntimeName for IFabricProcessExitHandler {} -impl IFabricProcessExitHandler_Vtbl { - pub const fn new( - ) -> IFabricProcessExitHandler_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> windows_core::Result where - Identity: IFabricProcessExitHandler_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn FabricProcessExited< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) where - Identity: IFabricProcessExitHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricProcessExitHandler_Impl::FabricProcessExited(this) + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginClose)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - FabricProcessExited: FabricProcessExited::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndClose)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + pub unsafe fn Abort(&self) { + unsafe { + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) + } + } + pub unsafe fn GetCurrentProgress(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCurrentProgress)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetCatchUpCapability(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCatchUpCapability)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } } } -pub trait IFabricReplicator_Impl: Sized { +#[repr(C)] +pub struct IFabricReplicator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginOpen: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOpen: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginChangeRole: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_EPOCH, + super::FabricTypes::FABRIC_REPLICA_ROLE, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginChangeRole: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndChangeRole: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndChangeRole: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateEpoch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_EPOCH, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateEpoch: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateEpoch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateEpoch: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginClose: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndClose: usize, + pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), + pub GetCurrentProgress: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + pub GetCatchUpCapability: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricReplicator_Impl: windows_core::IUnknownImpl { fn BeginOpen( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOpen( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginChangeRole( &self, epoch: *const super::FabricTypes::FABRIC_EPOCH, role: super::FabricTypes::FABRIC_REPLICA_ROLE, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndChangeRole( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginUpdateEpoch( &self, epoch: *const super::FabricTypes::FABRIC_EPOCH, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateEpoch( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn BeginClose( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndClose( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn Abort(&self); fn GetCurrentProgress(&self) -> windows_core::Result; fn GetCatchUpCapability(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricReplicator_Vtbl { - pub const fn new( - ) -> IFabricReplicator_Vtbl - where - Identity: IFabricReplicator_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginOpen< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::BeginOpen( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::BeginOpen(this, core::mem::transmute_copy(&callback)) + { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - unsafe extern "system" fn EndOpen< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( + unsafe extern "system" fn EndOpen( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, replicationaddress: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::EndOpen(this, windows_core::from_raw_borrowed(&context)) { - Ok(ok__) => { - replicationaddress.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::EndOpen(this, core::mem::transmute_copy(&context)) { + Ok(ok__) => { + replicationaddress.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginChangeRole< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -9731,257 +8675,593 @@ impl IFabricReplicator_Vtbl { role: super::FabricTypes::FABRIC_REPLICA_ROLE, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::BeginChangeRole( - this, - core::mem::transmute_copy(&epoch), - core::mem::transmute_copy(&role), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::BeginChangeRole( + this, + core::mem::transmute_copy(&epoch), + core::mem::transmute_copy(&role), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndChangeRole< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicator_Impl::EndChangeRole(this, windows_core::from_raw_borrowed(&context)) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicator_Impl::EndChangeRole(this, core::mem::transmute_copy(&context)) + .into() + } } unsafe extern "system" fn BeginUpdateEpoch< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, epoch: *const super::FabricTypes::FABRIC_EPOCH, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::BeginUpdateEpoch( - this, - core::mem::transmute_copy(&epoch), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::BeginUpdateEpoch( + this, + core::mem::transmute_copy(&epoch), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateEpoch< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicator_Impl::EndUpdateEpoch(this, windows_core::from_raw_borrowed(&context)) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicator_Impl::EndUpdateEpoch(this, core::mem::transmute_copy(&context)) + .into() + } } unsafe extern "system" fn BeginClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::BeginClose( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::BeginClose(this, core::mem::transmute_copy(&callback)) + { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicator_Impl::EndClose(this, windows_core::from_raw_borrowed(&context)).into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicator_Impl::EndClose(this, core::mem::transmute_copy(&context)).into() + } } - unsafe extern "system" fn Abort( + unsafe extern "system" fn Abort( this: *mut core::ffi::c_void, - ) where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicator_Impl::Abort(this) + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicator_Impl::Abort(this) + } } unsafe extern "system" fn GetCurrentProgress< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, lastsequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::GetCurrentProgress(this) { - Ok(ok__) => { - lastsequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::GetCurrentProgress(this) { + Ok(ok__) => { + lastsequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetCatchUpCapability< - Identity: windows_core::IUnknownImpl, + Identity: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, fromsequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricReplicator_Impl::GetCatchUpCapability(this) { - Ok(ok__) => { - fromsequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricReplicator_Impl::GetCatchUpCapability(this) { + Ok(ok__) => { + fromsequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginChangeRole: BeginChangeRole::, - EndChangeRole: EndChangeRole::, - BeginUpdateEpoch: BeginUpdateEpoch::, - EndUpdateEpoch: EndUpdateEpoch::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - GetCurrentProgress: GetCurrentProgress::, - GetCatchUpCapability: GetCatchUpCapability::, + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginChangeRole: BeginChangeRole::, + EndChangeRole: EndChangeRole::, + BeginUpdateEpoch: BeginUpdateEpoch::, + EndUpdateEpoch: EndUpdateEpoch::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + GetCurrentProgress: GetCurrentProgress::, + GetCatchUpCapability: GetCatchUpCapability::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricReplicator {} +windows_core::imp::define_interface!( + IFabricReplicatorCatchupSpecificQuorum, + IFabricReplicatorCatchupSpecificQuorum_Vtbl, + 0xaa3116fe_277d_482d_bd16_5366fa405757 +); +windows_core::imp::interface_hierarchy!( + IFabricReplicatorCatchupSpecificQuorum, + windows_core::IUnknown +); +#[repr(C)] +pub struct IFabricReplicatorCatchupSpecificQuorum_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, +} +pub trait IFabricReplicatorCatchupSpecificQuorum_Impl: windows_core::IUnknownImpl {} +impl IFabricReplicatorCatchupSpecificQuorum_Vtbl { + pub const fn new( + ) -> Self { + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +impl windows_core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} +unsafe impl Send for IFabricReplicatorCatchupSpecificQuorum {} +unsafe impl Sync for IFabricReplicatorCatchupSpecificQuorum {} +windows_core::imp::define_interface!( + IFabricReplicatorSettingsResult, + IFabricReplicatorSettingsResult_Vtbl, + 0x718954f3_dc1e_4060_9806_0cbf36f71051 +); +windows_core::imp::interface_hierarchy!(IFabricReplicatorSettingsResult, windows_core::IUnknown); +impl IFabricReplicatorSettingsResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_ReplicatorSettings( + &self, + ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS { + unsafe { + (windows_core::Interface::vtable(self).get_ReplicatorSettings)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricReplicatorSettingsResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_ReplicatorSettings: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_ReplicatorSettings: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricReplicatorSettingsResult_Impl: windows_core::IUnknownImpl { + fn get_ReplicatorSettings(&self) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS; +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl IFabricReplicatorSettingsResult_Vtbl { + pub const fn new() -> Self + { + unsafe extern "system" fn get_ReplicatorSettings< + Identity: IFabricReplicatorSettingsResult_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricReplicatorSettingsResult_Impl::get_ReplicatorSettings(this) + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + get_ReplicatorSettings: get_ReplicatorSettings::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricReplicatorSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricReplicatorSettingsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricReplicatorSettingsResult {} +windows_core::imp::define_interface!( + IFabricRuntime, + IFabricRuntime_Vtbl, + 0xcc53af8e_74cd_11df_ac3e_0024811e3892 +); +windows_core::imp::interface_hierarchy!(IFabricRuntime, windows_core::IUnknown); +impl IFabricRuntime { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRegisterStatelessServiceFactory( + &self, + servicetypename: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRegisterStatelessServiceFactory)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + factory.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRegisterStatelessServiceFactory( + &self, + context: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRegisterStatelessServiceFactory)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + pub unsafe fn RegisterStatelessServiceFactory( + &self, + servicetypename: P0, + factory: P1, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).RegisterStatelessServiceFactory)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + factory.param().abi(), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRegisterStatefulServiceFactory( + &self, + servicetypename: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRegisterStatefulServiceFactory)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + factory.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRegisterStatefulServiceFactory( + &self, + context: P0, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRegisterStatefulServiceFactory)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } } -} -pub trait IFabricReplicatorCatchupSpecificQuorum_Impl: Sized {} -impl windows_core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} -impl IFabricReplicatorCatchupSpecificQuorum_Vtbl { - pub const fn new( - ) -> IFabricReplicatorCatchupSpecificQuorum_Vtbl + pub unsafe fn RegisterStatefulServiceFactory( + &self, + servicetypename: P0, + factory: P1, + ) -> windows_core::Result<()> where - Identity: IFabricReplicatorCatchupSpecificQuorum_Impl, + P0: windows_core::Param, + P1: windows_core::Param, { - Self { - base__: windows_core::IUnknown_Vtbl::new::(), + unsafe { + (windows_core::Interface::vtable(self).RegisterStatefulServiceFactory)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + factory.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + pub unsafe fn CreateServiceGroupFactoryBuilder( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateServiceGroupFactoryBuilder)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } } -} -pub trait IFabricReplicatorSettingsResult_Impl: Sized { - fn get_ReplicatorSettings(&self) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS; -} -impl windows_core::RuntimeName for IFabricReplicatorSettingsResult {} -impl IFabricReplicatorSettingsResult_Vtbl { - pub const fn new( - ) -> IFabricReplicatorSettingsResult_Vtbl + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginRegisterServiceGroupFactory( + &self, + groupservicetype: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P3, + ) -> windows_core::Result where - Identity: IFabricReplicatorSettingsResult_Impl, - { - unsafe extern "system" fn get_ReplicatorSettings< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_REPLICATOR_SETTINGS - where - Identity: IFabricReplicatorSettingsResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricReplicatorSettingsResult_Impl::get_ReplicatorSettings(this) + P0: windows_core::Param, + P1: windows_core::Param, + P3: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginRegisterServiceGroupFactory)( + windows_core::Interface::as_raw(self), + groupservicetype.param().abi(), + factory.param().abi(), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - get_ReplicatorSettings: get_ReplicatorSettings::, + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndRegisterServiceGroupFactory(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndRegisterServiceGroupFactory)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + pub unsafe fn RegisterServiceGroupFactory( + &self, + groupservicetype: P0, + factory: P1, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).RegisterServiceGroupFactory)( + windows_core::Interface::as_raw(self), + groupservicetype.param().abi(), + factory.param().abi(), + ) + .ok() + } } } -pub trait IFabricRuntime_Impl: Sized { +#[repr(C)] +pub struct IFabricRuntime_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRegisterStatelessServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRegisterStatelessServiceFactory: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRegisterStatelessServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRegisterStatelessServiceFactory: usize, + pub RegisterStatelessServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRegisterStatefulServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) + -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRegisterStatefulServiceFactory: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRegisterStatefulServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRegisterStatefulServiceFactory: usize, + pub RegisterStatefulServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub CreateServiceGroupFactoryBuilder: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginRegisterServiceGroupFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginRegisterServiceGroupFactory: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndRegisterServiceGroupFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndRegisterServiceGroupFactory: usize, + pub RegisterServiceGroupFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricRuntime_Impl: windows_core::IUnknownImpl { fn BeginRegisterStatelessServiceFactory( &self, servicetypename: &windows_core::PCWSTR, - factory: Option<&IFabricStatelessServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatelessServiceFactory>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRegisterStatelessServiceFactory( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn RegisterStatelessServiceFactory( &self, servicetypename: &windows_core::PCWSTR, - factory: Option<&IFabricStatelessServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatelessServiceFactory>, ) -> windows_core::Result<()>; fn BeginRegisterStatefulServiceFactory( &self, servicetypename: &windows_core::PCWSTR, - factory: Option<&IFabricStatefulServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatefulServiceFactory>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRegisterStatefulServiceFactory( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn RegisterStatefulServiceFactory( &self, servicetypename: &windows_core::PCWSTR, - factory: Option<&IFabricStatefulServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatefulServiceFactory>, ) -> windows_core::Result<()>; fn CreateServiceGroupFactoryBuilder( &self, @@ -9989,29 +9269,25 @@ pub trait IFabricRuntime_Impl: Sized { fn BeginRegisterServiceGroupFactory( &self, groupservicetype: &windows_core::PCWSTR, - factory: Option<&IFabricServiceGroupFactory>, + factory: windows_core::Ref<'_, IFabricServiceGroupFactory>, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndRegisterServiceGroupFactory( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn RegisterServiceGroupFactory( &self, groupservicetype: &windows_core::PCWSTR, - factory: Option<&IFabricServiceGroupFactory>, + factory: windows_core::Ref<'_, IFabricServiceGroupFactory>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricRuntime {} +#[cfg(feature = "ServiceFabric_FabricCommon")] impl IFabricRuntime_Vtbl { - pub const fn new( - ) -> IFabricRuntime_Vtbl - where - Identity: IFabricRuntime_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginRegisterStatelessServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -10020,63 +9296,63 @@ impl IFabricRuntime_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRuntime_Impl::BeginRegisterStatelessServiceFactory( - this, - core::mem::transmute(&servicetypename), - windows_core::from_raw_borrowed(&factory), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRuntime_Impl::BeginRegisterStatelessServiceFactory( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&factory), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterStatelessServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::EndRegisterStatelessServiceFactory( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::EndRegisterStatelessServiceFactory( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn RegisterStatelessServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, servicetypename: windows_core::PCWSTR, factory: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::RegisterStatelessServiceFactory( - this, - core::mem::transmute(&servicetypename), - windows_core::from_raw_borrowed(&factory), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::RegisterStatelessServiceFactory( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&factory), + ) + .into() + } } unsafe extern "system" fn BeginRegisterStatefulServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -10085,82 +9361,82 @@ impl IFabricRuntime_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRuntime_Impl::BeginRegisterStatefulServiceFactory( - this, - core::mem::transmute(&servicetypename), - windows_core::from_raw_borrowed(&factory), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRuntime_Impl::BeginRegisterStatefulServiceFactory( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&factory), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterStatefulServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::EndRegisterStatefulServiceFactory( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::EndRegisterStatefulServiceFactory( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn RegisterStatefulServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, servicetypename: windows_core::PCWSTR, factory: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::RegisterStatefulServiceFactory( - this, - core::mem::transmute(&servicetypename), - windows_core::from_raw_borrowed(&factory), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::RegisterStatefulServiceFactory( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&factory), + ) + .into() + } } unsafe extern "system" fn CreateServiceGroupFactoryBuilder< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, builder: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRuntime_Impl::CreateServiceGroupFactoryBuilder(this) { - Ok(ok__) => { - builder.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRuntime_Impl::CreateServiceGroupFactoryBuilder(this) { + Ok(ok__) => { + builder.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginRegisterServiceGroupFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -10169,60 +9445,60 @@ impl IFabricRuntime_Vtbl { timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricRuntime_Impl::BeginRegisterServiceGroupFactory( - this, - core::mem::transmute(&groupservicetype), - windows_core::from_raw_borrowed(&factory), - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricRuntime_Impl::BeginRegisterServiceGroupFactory( + this, + core::mem::transmute(&groupservicetype), + core::mem::transmute_copy(&factory), + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterServiceGroupFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::EndRegisterServiceGroupFactory( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::EndRegisterServiceGroupFactory( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } unsafe extern "system" fn RegisterServiceGroupFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, groupservicetype: windows_core::PCWSTR, factory: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricRuntime_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricRuntime_Impl::RegisterServiceGroupFactory( - this, - core::mem::transmute(&groupservicetype), - windows_core::from_raw_borrowed(&factory), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricRuntime_Impl::RegisterServiceGroupFactory( + this, + core::mem::transmute(&groupservicetype), + core::mem::transmute_copy(&factory), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -10251,56 +9527,101 @@ impl IFabricRuntime_Vtbl { iid == &::IID } } -pub trait IFabricSecondaryEventHandler_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricRuntime {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricRuntime {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricRuntime {} +windows_core::imp::define_interface!( + IFabricSecondaryEventHandler, + IFabricSecondaryEventHandler_Vtbl, + 0x7d124a7d_258e_49f2_a9b0_e800406103fb +); +windows_core::imp::interface_hierarchy!(IFabricSecondaryEventHandler, windows_core::IUnknown); +impl IFabricSecondaryEventHandler { + pub unsafe fn OnCopyComplete(&self, enumerator: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnCopyComplete)( + windows_core::Interface::as_raw(self), + enumerator.param().abi(), + ) + .ok() + } + } + pub unsafe fn OnReplicationOperation(&self, enumerator: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).OnReplicationOperation)( + windows_core::Interface::as_raw(self), + enumerator.param().abi(), + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricSecondaryEventHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnCopyComplete: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub OnReplicationOperation: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricSecondaryEventHandler_Impl: windows_core::IUnknownImpl { fn OnCopyComplete( &self, - enumerator: Option<&IFabricKeyValueStoreEnumerator>, + enumerator: windows_core::Ref<'_, IFabricKeyValueStoreEnumerator>, ) -> windows_core::Result<()>; fn OnReplicationOperation( &self, - enumerator: Option<&IFabricKeyValueStoreNotificationEnumerator>, + enumerator: windows_core::Ref<'_, IFabricKeyValueStoreNotificationEnumerator>, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricSecondaryEventHandler {} impl IFabricSecondaryEventHandler_Vtbl { - pub const fn new( - ) -> IFabricSecondaryEventHandler_Vtbl - where - Identity: IFabricSecondaryEventHandler_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn OnCopyComplete< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecondaryEventHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enumerator: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecondaryEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricSecondaryEventHandler_Impl::OnCopyComplete( - this, - windows_core::from_raw_borrowed(&enumerator), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricSecondaryEventHandler_Impl::OnCopyComplete( + this, + core::mem::transmute_copy(&enumerator), + ) + .into() + } } unsafe extern "system" fn OnReplicationOperation< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecondaryEventHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enumerator: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricSecondaryEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricSecondaryEventHandler_Impl::OnReplicationOperation( - this, - windows_core::from_raw_borrowed(&enumerator), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricSecondaryEventHandler_Impl::OnReplicationOperation( + this, + core::mem::transmute_copy(&enumerator), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -10312,27 +9633,57 @@ impl IFabricSecondaryEventHandler_Vtbl { iid == &::IID } } -pub trait IFabricSecurityCredentialsResult_Impl: Sized { +impl windows_core::RuntimeName for IFabricSecondaryEventHandler {} +unsafe impl Send for IFabricSecondaryEventHandler {} +unsafe impl Sync for IFabricSecondaryEventHandler {} +windows_core::imp::define_interface!( + IFabricSecurityCredentialsResult, + IFabricSecurityCredentialsResult_Vtbl, + 0x049a111d_6a30_48e9_8f69_470760d3efb9 +); +windows_core::imp::interface_hierarchy!(IFabricSecurityCredentialsResult, windows_core::IUnknown); +impl IFabricSecurityCredentialsResult { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_SecurityCredentials( + &self, + ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS { + unsafe { + (windows_core::Interface::vtable(self).get_SecurityCredentials)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricSecurityCredentialsResult_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_SecurityCredentials: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_SecurityCredentials: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricSecurityCredentialsResult_Impl: windows_core::IUnknownImpl { fn get_SecurityCredentials(&self) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS; } -impl windows_core::RuntimeName for IFabricSecurityCredentialsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricSecurityCredentialsResult_Vtbl { - pub const fn new( - ) -> IFabricSecurityCredentialsResult_Vtbl - where - Identity: IFabricSecurityCredentialsResult_Impl, + pub const fn new() -> Self { unsafe extern "system" fn get_SecurityCredentials< - Identity: windows_core::IUnknownImpl, + Identity: IFabricSecurityCredentialsResult_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS - where - Identity: IFabricSecurityCredentialsResult_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricSecurityCredentialsResult_Impl::get_SecurityCredentials(this) + ) -> *mut super::FabricTypes::FABRIC_SECURITY_CREDENTIALS { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricSecurityCredentialsResult_Impl::get_SecurityCredentials(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -10343,14 +9694,25 @@ impl IFabricSecurityCredentialsResult_Vtbl { iid == &::IID } } -pub trait IFabricServiceGroupFactory_Impl: Sized {} -impl windows_core::RuntimeName for IFabricServiceGroupFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricSecurityCredentialsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricSecurityCredentialsResult {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricSecurityCredentialsResult {} +windows_core::imp::define_interface!( + IFabricServiceGroupFactory, + IFabricServiceGroupFactory_Vtbl, + 0x3860d61d_1e51_4a65_b109_d93c11311657 +); +windows_core::imp::interface_hierarchy!(IFabricServiceGroupFactory, windows_core::IUnknown); +#[repr(C)] +pub struct IFabricServiceGroupFactory_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, +} +pub trait IFabricServiceGroupFactory_Impl: windows_core::IUnknownImpl {} impl IFabricServiceGroupFactory_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupFactory_Vtbl - where - Identity: IFabricServiceGroupFactory_Impl, - { + pub const fn new() -> Self { Self { base__: windows_core::IUnknown_Vtbl::new::(), } @@ -10359,16 +9721,107 @@ impl IFabricServiceGroupFactory_Vtbl { iid == &::IID } } -pub trait IFabricServiceGroupFactoryBuilder_Impl: Sized { +impl windows_core::RuntimeName for IFabricServiceGroupFactory {} +unsafe impl Send for IFabricServiceGroupFactory {} +unsafe impl Sync for IFabricServiceGroupFactory {} +windows_core::imp::define_interface!( + IFabricServiceGroupFactoryBuilder, + IFabricServiceGroupFactoryBuilder_Vtbl, + 0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c +); +windows_core::imp::interface_hierarchy!(IFabricServiceGroupFactoryBuilder, windows_core::IUnknown); +impl IFabricServiceGroupFactoryBuilder { + pub unsafe fn AddStatelessServiceFactory( + &self, + memberservicetype: P0, + factory: P1, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).AddStatelessServiceFactory)( + windows_core::Interface::as_raw(self), + memberservicetype.param().abi(), + factory.param().abi(), + ) + .ok() + } + } + pub unsafe fn AddStatefulServiceFactory( + &self, + memberservicetype: P0, + factory: P1, + ) -> windows_core::Result<()> + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).AddStatefulServiceFactory)( + windows_core::Interface::as_raw(self), + memberservicetype.param().abi(), + factory.param().abi(), + ) + .ok() + } + } + pub unsafe fn RemoveServiceFactory(&self, memberservicetype: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).RemoveServiceFactory)( + windows_core::Interface::as_raw(self), + memberservicetype.param().abi(), + ) + .ok() + } + } + pub unsafe fn ToServiceGroupFactory(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).ToServiceGroupFactory)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupFactoryBuilder_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub AddStatelessServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub AddStatefulServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub RemoveServiceFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + ) -> windows_core::HRESULT, + pub ToServiceGroupFactory: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +pub trait IFabricServiceGroupFactoryBuilder_Impl: windows_core::IUnknownImpl { fn AddStatelessServiceFactory( &self, memberservicetype: &windows_core::PCWSTR, - factory: Option<&IFabricStatelessServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatelessServiceFactory>, ) -> windows_core::Result<()>; fn AddStatefulServiceFactory( &self, memberservicetype: &windows_core::PCWSTR, - factory: Option<&IFabricStatefulServiceFactory>, + factory: windows_core::Ref<'_, IFabricStatefulServiceFactory>, ) -> windows_core::Result<()>; fn RemoveServiceFactory( &self, @@ -10376,85 +9829,81 @@ pub trait IFabricServiceGroupFactoryBuilder_Impl: Sized { ) -> windows_core::Result<()>; fn ToServiceGroupFactory(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricServiceGroupFactoryBuilder {} impl IFabricServiceGroupFactoryBuilder_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupFactoryBuilder_Vtbl - where - Identity: IFabricServiceGroupFactoryBuilder_Impl, + pub const fn new() -> Self { unsafe extern "system" fn AddStatelessServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, memberservicetype: windows_core::PCWSTR, factory: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupFactoryBuilder_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupFactoryBuilder_Impl::AddStatelessServiceFactory( - this, - core::mem::transmute(&memberservicetype), - windows_core::from_raw_borrowed(&factory), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupFactoryBuilder_Impl::AddStatelessServiceFactory( + this, + core::mem::transmute(&memberservicetype), + core::mem::transmute_copy(&factory), + ) + .into() + } } unsafe extern "system" fn AddStatefulServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, memberservicetype: windows_core::PCWSTR, factory: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupFactoryBuilder_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupFactoryBuilder_Impl::AddStatefulServiceFactory( - this, - core::mem::transmute(&memberservicetype), - windows_core::from_raw_borrowed(&factory), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupFactoryBuilder_Impl::AddStatefulServiceFactory( + this, + core::mem::transmute(&memberservicetype), + core::mem::transmute_copy(&factory), + ) + .into() + } } unsafe extern "system" fn RemoveServiceFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, memberservicetype: windows_core::PCWSTR, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupFactoryBuilder_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricServiceGroupFactoryBuilder_Impl::RemoveServiceFactory( - this, - core::mem::transmute(&memberservicetype), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricServiceGroupFactoryBuilder_Impl::RemoveServiceFactory( + this, + core::mem::transmute(&memberservicetype), + ) + .into() + } } unsafe extern "system" fn ToServiceGroupFactory< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, factory: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupFactoryBuilder_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupFactoryBuilder_Impl::ToServiceGroupFactory(this) { - Ok(ok__) => { - factory.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupFactoryBuilder_Impl::ToServiceGroupFactory(this) { + Ok(ok__) => { + factory.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -10469,43 +9918,81 @@ impl IFabricServiceGroupFactoryBuilder_Vtbl { iid == &::IID } } -pub trait IFabricServiceGroupPartition_Impl: Sized { +impl windows_core::RuntimeName for IFabricServiceGroupFactoryBuilder {} +unsafe impl Send for IFabricServiceGroupFactoryBuilder {} +unsafe impl Sync for IFabricServiceGroupFactoryBuilder {} +windows_core::imp::define_interface!( + IFabricServiceGroupPartition, + IFabricServiceGroupPartition_Vtbl, + 0x2b24299a_7489_467f_8e7f_4507bff73b86 +); +windows_core::imp::interface_hierarchy!(IFabricServiceGroupPartition, windows_core::IUnknown); +impl IFabricServiceGroupPartition { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ResolveMember( + &self, + name: super::FabricTypes::FABRIC_URI, + riid: *const windows_core::GUID, + ) -> windows_core::Result<*mut core::ffi::c_void> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).ResolveMember)( + windows_core::Interface::as_raw(self), + name, + riid, + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricServiceGroupPartition_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ResolveMember: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_URI, + *const windows_core::GUID, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ResolveMember: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricServiceGroupPartition_Impl: windows_core::IUnknownImpl { fn ResolveMember( &self, name: super::FabricTypes::FABRIC_URI, riid: *const windows_core::GUID, ) -> windows_core::Result<*mut core::ffi::c_void>; } -impl windows_core::RuntimeName for IFabricServiceGroupPartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricServiceGroupPartition_Vtbl { - pub const fn new( - ) -> IFabricServiceGroupPartition_Vtbl - where - Identity: IFabricServiceGroupPartition_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn ResolveMember< - Identity: windows_core::IUnknownImpl, + Identity: IFabricServiceGroupPartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: super::FabricTypes::FABRIC_URI, riid: *const windows_core::GUID, member: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricServiceGroupPartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricServiceGroupPartition_Impl::ResolveMember( - this, - core::mem::transmute_copy(&name), - core::mem::transmute_copy(&riid), - ) { - Ok(ok__) => { - member.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricServiceGroupPartition_Impl::ResolveMember( + this, + core::mem::transmute_copy(&name), + core::mem::transmute_copy(&riid), + ) { + Ok(ok__) => { + member.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -10517,42 +10004,224 @@ impl IFabricServiceGroupPartition_Vtbl { iid == &::IID } } -pub trait IFabricStateProvider_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricServiceGroupPartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricServiceGroupPartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricServiceGroupPartition {} +windows_core::imp::define_interface!( + IFabricStateProvider, + IFabricStateProvider_Vtbl, + 0x3ebfec79_bd27_43f3_8be8_da38ee723951 +); +windows_core::imp::interface_hierarchy!(IFabricStateProvider, windows_core::IUnknown); +impl IFabricStateProvider { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginUpdateEpoch( + &self, + epoch: *const super::FabricTypes::FABRIC_EPOCH, + previousepochlastsequencenumber: i64, + callback: P2, + ) -> windows_core::Result + where + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginUpdateEpoch)( + windows_core::Interface::as_raw(self), + epoch, + previousepochlastsequencenumber, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndUpdateEpoch)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + pub unsafe fn GetLastCommittedSequenceNumber(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetLastCommittedSequenceNumber)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOnDataLoss)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOnDataLoss)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetCopyContext(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCopyContext)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub unsafe fn GetCopyState( + &self, + uptosequencenumber: i64, + copycontextstream: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCopyState)( + windows_core::Interface::as_raw(self), + uptosequencenumber, + copycontextstream.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricStateProvider_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginUpdateEpoch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_EPOCH, + i64, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginUpdateEpoch: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndUpdateEpoch: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndUpdateEpoch: usize, + pub GetLastCommittedSequenceNumber: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginOnDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u8, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOnDataLoss: usize, + pub GetCopyContext: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub GetCopyState: unsafe extern "system" fn( + *mut core::ffi::c_void, + i64, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricStateProvider_Impl: windows_core::IUnknownImpl { fn BeginUpdateEpoch( &self, epoch: *const super::FabricTypes::FABRIC_EPOCH, previousepochlastsequencenumber: i64, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndUpdateEpoch( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn GetLastCommittedSequenceNumber(&self) -> windows_core::Result; fn BeginOnDataLoss( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOnDataLoss( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn GetCopyContext(&self) -> windows_core::Result; fn GetCopyState( &self, uptosequencenumber: i64, - copycontextstream: Option<&IFabricOperationDataStream>, + copycontextstream: windows_core::Ref<'_, IFabricOperationDataStream>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStateProvider {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricStateProvider_Vtbl { - pub const fn new( - ) -> IFabricStateProvider_Vtbl - where - Identity: IFabricStateProvider_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginUpdateEpoch< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -10560,148 +10229,145 @@ impl IFabricStateProvider_Vtbl { previousepochlastsequencenumber: i64, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::BeginUpdateEpoch( - this, - core::mem::transmute_copy(&epoch), - core::mem::transmute_copy(&previousepochlastsequencenumber), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::BeginUpdateEpoch( + this, + core::mem::transmute_copy(&epoch), + core::mem::transmute_copy(&previousepochlastsequencenumber), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateEpoch< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStateProvider_Impl::EndUpdateEpoch( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStateProvider_Impl::EndUpdateEpoch(this, core::mem::transmute_copy(&context)) + .into() + } } unsafe extern "system" fn GetLastCommittedSequenceNumber< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::GetLastCommittedSequenceNumber(this) { - Ok(ok__) => { - sequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::GetLastCommittedSequenceNumber(this) { + Ok(ok__) => { + sequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::BeginOnDataLoss( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::BeginOnDataLoss( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, isstatechanged: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::EndOnDataLoss( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - isstatechanged.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::EndOnDataLoss( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + isstatechanged.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetCopyContext< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, copycontextstream: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::GetCopyContext(this) { - Ok(ok__) => { - copycontextstream.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::GetCopyContext(this) { + Ok(ok__) => { + copycontextstream.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetCopyState< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uptosequencenumber: i64, copycontextstream: *mut core::ffi::c_void, copystatestream: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateProvider_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateProvider_Impl::GetCopyState( - this, - core::mem::transmute_copy(&uptosequencenumber), - windows_core::from_raw_borrowed(©contextstream), - ) { - Ok(ok__) => { - copystatestream.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateProvider_Impl::GetCopyState( + this, + core::mem::transmute_copy(&uptosequencenumber), + core::mem::transmute_copy(©contextstream), + ) { + Ok(ok__) => { + copystatestream.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -10719,16 +10385,151 @@ impl IFabricStateProvider_Vtbl { iid == &::IID } } -pub trait IFabricStateReplicator_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricStateProvider {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricStateProvider {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricStateProvider {} +windows_core::imp::define_interface!( + IFabricStateReplicator, + IFabricStateReplicator_Vtbl, + 0x89e9a978_c771_44f2_92e8_3bf271cabe9c +); +windows_core::imp::interface_hierarchy!(IFabricStateReplicator, windows_core::IUnknown); +impl IFabricStateReplicator { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginReplicate( + &self, + operationdata: P0, + callback: P1, + sequencenumber: *mut i64, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginReplicate)( + windows_core::Interface::as_raw(self), + operationdata.param().abi(), + callback.param().abi(), + sequencenumber as _, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndReplicate(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndReplicate)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn GetReplicationStream(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetReplicationStream)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub unsafe fn GetCopyStream(&self) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetCopyStream)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).UpdateReplicatorSettings)( + windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStateReplicator_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginReplicate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginReplicate: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndReplicate: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndReplicate: usize, + pub GetReplicationStream: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub GetCopyStream: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub UpdateReplicatorSettings: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + UpdateReplicatorSettings: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricStateReplicator_Impl: windows_core::IUnknownImpl { fn BeginReplicate( &self, - operationdata: Option<&IFabricOperationData>, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + operationdata: windows_core::Ref<'_, IFabricOperationData>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, sequencenumber: *mut i64, ) -> windows_core::Result; fn EndReplicate( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn GetReplicationStream(&self) -> windows_core::Result; fn GetCopyStream(&self) -> windows_core::Result; @@ -10737,15 +10538,14 @@ pub trait IFabricStateReplicator_Impl: Sized { replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStateReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricStateReplicator_Vtbl { - pub const fn new( - ) -> IFabricStateReplicator_Vtbl - where - Identity: IFabricStateReplicator_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginReplicate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -10753,101 +10553,101 @@ impl IFabricStateReplicator_Vtbl { callback: *mut core::ffi::c_void, sequencenumber: *mut i64, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateReplicator_Impl::BeginReplicate( - this, - windows_core::from_raw_borrowed(&operationdata), - windows_core::from_raw_borrowed(&callback), - core::mem::transmute_copy(&sequencenumber), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateReplicator_Impl::BeginReplicate( + this, + core::mem::transmute_copy(&operationdata), + core::mem::transmute_copy(&callback), + core::mem::transmute_copy(&sequencenumber), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndReplicate< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, sequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateReplicator_Impl::EndReplicate( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - sequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateReplicator_Impl::EndReplicate( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + sequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetReplicationStream< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateReplicator_Impl::GetReplicationStream(this) { - Ok(ok__) => { - stream.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateReplicator_Impl::GetReplicationStream(this) { + Ok(ok__) => { + stream.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetCopyStream< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, stream: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateReplicator_Impl::GetCopyStream(this) { - Ok(ok__) => { - stream.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateReplicator_Impl::GetCopyStream(this) { + Ok(ok__) => { + stream.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn UpdateReplicatorSettings< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStateReplicator_Impl::UpdateReplicatorSettings( - this, - core::mem::transmute_copy(&replicatorsettings), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStateReplicator_Impl::UpdateReplicatorSettings( + this, + core::mem::transmute_copy(&replicatorsettings), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -10862,33 +10662,89 @@ impl IFabricStateReplicator_Vtbl { iid == &::IID } } -pub trait IFabricStateReplicator2_Impl: Sized + IFabricStateReplicator_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricStateReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricStateReplicator {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricStateReplicator {} +windows_core::imp::define_interface!( + IFabricStateReplicator2, + IFabricStateReplicator2_Vtbl, + 0x4a28d542_658f_46f9_9bf4_79b7cae25c5d +); +impl core::ops::Deref for IFabricStateReplicator2 { + type Target = IFabricStateReplicator; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStateReplicator2, + windows_core::IUnknown, + IFabricStateReplicator +); +impl IFabricStateReplicator2 { + pub unsafe fn GetReplicatorSettings( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetReplicatorSettings)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricStateReplicator2_Vtbl { + pub base__: IFabricStateReplicator_Vtbl, + pub GetReplicatorSettings: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricStateReplicator2_Impl: IFabricStateReplicator_Impl { fn GetReplicatorSettings(&self) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStateReplicator2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricStateReplicator2_Vtbl { - pub const fn new( - ) -> IFabricStateReplicator2_Vtbl - where - Identity: IFabricStateReplicator2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn GetReplicatorSettings< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStateReplicator2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, replicatorsettings: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStateReplicator2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStateReplicator2_Impl::GetReplicatorSettings(this) { - Ok(ok__) => { - replicatorsettings.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStateReplicator2_Impl::GetReplicatorSettings(this) { + Ok(ok__) => { + replicatorsettings.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -10901,7 +10757,75 @@ impl IFabricStateReplicator2_Vtbl { || iid == &::IID } } -pub trait IFabricStatefulServiceFactory_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricStateReplicator2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricStateReplicator2 {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricStateReplicator2 {} +windows_core::imp::define_interface!( + IFabricStatefulServiceFactory, + IFabricStatefulServiceFactory_Vtbl, + 0x77ff0c6b_6780_48ec_b4b0_61989327b0f2 +); +windows_core::imp::interface_hierarchy!(IFabricStatefulServiceFactory, windows_core::IUnknown); +impl IFabricStatefulServiceFactory { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn CreateReplica( + &self, + servicetypename: P0, + servicename: super::FabricTypes::FABRIC_URI, + initializationdata: &[u8], + partitionid: windows_core::GUID, + replicaid: i64, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateReplica)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + servicename, + initializationdata.len().try_into().unwrap(), + core::mem::transmute(initializationdata.as_ptr()), + core::mem::transmute(partitionid), + replicaid, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricStatefulServiceFactory_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub CreateReplica: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + super::FabricTypes::FABRIC_URI, + u32, + *const u8, + windows_core::GUID, + i64, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + CreateReplica: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatefulServiceFactory_Impl: windows_core::IUnknownImpl { fn CreateReplica( &self, servicetypename: &windows_core::PCWSTR, @@ -10912,56 +10836,205 @@ pub trait IFabricStatefulServiceFactory_Impl: Sized { replicaid: i64, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStatefulServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatefulServiceFactory_Vtbl { - pub const fn new( - ) -> IFabricStatefulServiceFactory_Vtbl + pub const fn new() -> Self { + unsafe extern "system" fn CreateReplica< + Identity: IFabricStatefulServiceFactory_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + servicetypename: windows_core::PCWSTR, + servicename: super::FabricTypes::FABRIC_URI, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: windows_core::GUID, + replicaid: i64, + servicereplica: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceFactory_Impl::CreateReplica( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&servicename), + core::mem::transmute_copy(&initializationdatalength), + core::mem::transmute_copy(&initializationdata), + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&replicaid), + ) { + Ok(ok__) => { + servicereplica.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IUnknown_Vtbl::new::(), + CreateReplica: CreateReplica::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatefulServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatefulServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatefulServiceFactory {} +windows_core::imp::define_interface!( + IFabricStatefulServicePartition, + IFabricStatefulServicePartition_Vtbl, + 0x5beccc37_8655_4f20_bd43_f50691d7cd16 +); +windows_core::imp::interface_hierarchy!(IFabricStatefulServicePartition, windows_core::IUnknown); +impl IFabricStatefulServicePartition { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetPartitionInfo( + &self, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetPartitionInfo)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetReadStatus( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetReadStatus)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetWriteStatus( + &self, + ) -> windows_core::Result { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetWriteStatus)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn CreateReplicator( + &self, + stateprovider: P0, + replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut Option, + ) -> windows_core::Result where - Identity: IFabricStatefulServiceFactory_Impl, + P0: windows_core::Param, { - unsafe extern "system" fn CreateReplica< - Identity: windows_core::IUnknownImpl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - servicetypename: windows_core::PCWSTR, - servicename: super::FabricTypes::FABRIC_URI, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: windows_core::GUID, - replicaid: i64, - servicereplica: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceFactory_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceFactory_Impl::CreateReplica( - this, - core::mem::transmute(&servicetypename), - core::mem::transmute_copy(&servicename), - core::mem::transmute_copy(&initializationdatalength), - core::mem::transmute_copy(&initializationdata), - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&replicaid), - ) { - Ok(ok__) => { - servicereplica.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateReplicator)( + windows_core::Interface::as_raw(self), + stateprovider.param().abi(), + replicatorsettings, + core::mem::transmute(replicator), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) } - Self { - base__: windows_core::IUnknown_Vtbl::new::(), - CreateReplica: CreateReplica::, + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportLoad( + &self, + metrics: &[super::FabricTypes::FABRIC_LOAD_METRIC], + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportLoad)( + windows_core::Interface::as_raw(self), + metrics.len().try_into().unwrap(), + core::mem::transmute(metrics.as_ptr()), + ) + .ok() } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportFault( + &self, + faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportFault)( + windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } } } -pub trait IFabricStatefulServicePartition_Impl: Sized { +#[repr(C)] +pub struct IFabricStatefulServicePartition_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetPartitionInfo: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetPartitionInfo: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetReadStatus: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetReadStatus: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetWriteStatus: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetWriteStatus: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub CreateReplicator: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, + *mut *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + CreateReplicator: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportLoad: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *const super::FabricTypes::FABRIC_LOAD_METRIC, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportLoad: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportFault: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportFault: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatefulServicePartition_Impl: windows_core::IUnknownImpl { fn GetPartitionInfo( &self, ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION>; @@ -10973,9 +11046,9 @@ pub trait IFabricStatefulServicePartition_Impl: Sized { ) -> windows_core::Result; fn CreateReplicator( &self, - stateprovider: Option<&IFabricStateProvider>, + stateprovider: windows_core::Ref<'_, IFabricStateProvider>, replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut Option, + replicator: windows_core::OutRef<'_, IFabricReplicator>, ) -> windows_core::Result; fn ReportLoad( &self, @@ -10987,72 +11060,69 @@ pub trait IFabricStatefulServicePartition_Impl: Sized { faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatefulServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatefulServicePartition_Vtbl { - pub const fn new( - ) -> IFabricStatefulServicePartition_Vtbl - where - Identity: IFabricStatefulServicePartition_Impl, + pub const fn new() -> Self { unsafe extern "system" fn GetPartitionInfo< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bufferedvalue: *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServicePartition_Impl::GetPartitionInfo(this) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServicePartition_Impl::GetPartitionInfo(this) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetReadStatus< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, readstatus: *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServicePartition_Impl::GetReadStatus(this) { - Ok(ok__) => { - readstatus.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServicePartition_Impl::GetReadStatus(this) { + Ok(ok__) => { + readstatus.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn GetWriteStatus< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, writestatus: *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServicePartition_Impl::GetWriteStatus(this) { - Ok(ok__) => { - writestatus.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServicePartition_Impl::GetWriteStatus(this) { + Ok(ok__) => { + writestatus.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn CreateReplicator< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -11060,59 +11130,59 @@ impl IFabricStatefulServicePartition_Vtbl { replicatorsettings: *const super::FabricTypes::FABRIC_REPLICATOR_SETTINGS, replicator: *mut *mut core::ffi::c_void, statereplicator: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServicePartition_Impl::CreateReplicator( - this, - windows_core::from_raw_borrowed(&stateprovider), - core::mem::transmute_copy(&replicatorsettings), - core::mem::transmute_copy(&replicator), - ) { - Ok(ok__) => { - statereplicator.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServicePartition_Impl::CreateReplicator( + this, + core::mem::transmute_copy(&stateprovider), + core::mem::transmute_copy(&replicatorsettings), + core::mem::transmute_copy(&replicator), + ) { + Ok(ok__) => { + statereplicator.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn ReportLoad< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, metriccount: u32, metrics: *const super::FabricTypes::FABRIC_LOAD_METRIC, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition_Impl::ReportLoad( - this, - core::mem::transmute_copy(&metriccount), - core::mem::transmute_copy(&metrics), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition_Impl::ReportLoad( + this, + core::mem::transmute_copy(&metriccount), + core::mem::transmute_copy(&metrics), + ) + .into() + } } unsafe extern "system" fn ReportFault< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition_Impl::ReportFault( - this, - core::mem::transmute_copy(&faulttype), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition_Impl::ReportFault( + this, + core::mem::transmute_copy(&faulttype), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -11128,37 +11198,81 @@ impl IFabricStatefulServicePartition_Vtbl { iid == &::IID } } -pub trait IFabricStatefulServicePartition1_Impl: - Sized + IFabricStatefulServicePartition_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatefulServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatefulServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatefulServicePartition {} +windows_core::imp::define_interface!( + IFabricStatefulServicePartition1, + IFabricStatefulServicePartition1_Vtbl, + 0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf +); +impl core::ops::Deref for IFabricStatefulServicePartition1 { + type Target = IFabricStatefulServicePartition; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition1, + windows_core::IUnknown, + IFabricStatefulServicePartition +); +impl IFabricStatefulServicePartition1 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportMoveCost( + &self, + movecost: super::FabricTypes::FABRIC_MOVE_COST, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportMoveCost)( + windows_core::Interface::as_raw(self), + movecost, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatefulServicePartition1_Vtbl { + pub base__: IFabricStatefulServicePartition_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportMoveCost: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_MOVE_COST, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportMoveCost: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatefulServicePartition1_Impl: IFabricStatefulServicePartition_Impl { fn ReportMoveCost( &self, movecost: super::FabricTypes::FABRIC_MOVE_COST, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatefulServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatefulServicePartition1_Vtbl { - pub const fn new( - ) -> IFabricStatefulServicePartition1_Vtbl - where - Identity: IFabricStatefulServicePartition1_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportMoveCost< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition1_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, movecost: super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition1_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition1_Impl::ReportMoveCost( - this, - core::mem::transmute_copy(&movecost), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition1_Impl::ReportMoveCost( + this, + core::mem::transmute_copy(&movecost), + ) + .into() + } } Self { base__: IFabricStatefulServicePartition_Vtbl::new::(), @@ -11170,9 +11284,77 @@ impl IFabricStatefulServicePartition1_Vtbl { || iid == &::IID } } -pub trait IFabricStatefulServicePartition2_Impl: - Sized + IFabricStatefulServicePartition1_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatefulServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatefulServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatefulServicePartition1 {} +windows_core::imp::define_interface!( + IFabricStatefulServicePartition2, + IFabricStatefulServicePartition2_Vtbl, + 0xdf27b476_fa25_459f_a7d3_87d3eec9c73c +); +impl core::ops::Deref for IFabricStatefulServicePartition2 { + type Target = IFabricStatefulServicePartition1; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition2, + windows_core::IUnknown, + IFabricStatefulServicePartition, + IFabricStatefulServicePartition1 +); +impl IFabricStatefulServicePartition2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportReplicaHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportReplicaHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportPartitionHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatefulServicePartition2_Vtbl { + pub base__: IFabricStatefulServicePartition1_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportReplicaHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportReplicaHealth: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportPartitionHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportPartitionHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatefulServicePartition2_Impl: IFabricStatefulServicePartition1_Impl { fn ReportReplicaHealth( &self, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, @@ -11182,46 +11364,43 @@ pub trait IFabricStatefulServicePartition2_Impl: healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatefulServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatefulServicePartition2_Vtbl { - pub const fn new( - ) -> IFabricStatefulServicePartition2_Vtbl - where - Identity: IFabricStatefulServicePartition2_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportReplicaHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition2_Impl::ReportReplicaHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition2_Impl::ReportReplicaHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() + } } unsafe extern "system" fn ReportPartitionHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition2_Impl::ReportPartitionHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition2_Impl::ReportPartitionHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() + } } Self { base__: IFabricStatefulServicePartition1_Vtbl::new::(), @@ -11235,9 +11414,84 @@ impl IFabricStatefulServicePartition2_Vtbl { || iid == &::IID } } -pub trait IFabricStatefulServicePartition3_Impl: - Sized + IFabricStatefulServicePartition2_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatefulServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatefulServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatefulServicePartition2 {} +windows_core::imp::define_interface!( + IFabricStatefulServicePartition3, + IFabricStatefulServicePartition3_Vtbl, + 0x51f1269d_b061_4c1c_96cf_6508cece813b +); +impl core::ops::Deref for IFabricStatefulServicePartition3 { + type Target = IFabricStatefulServicePartition2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition3, + windows_core::IUnknown, + IFabricStatefulServicePartition, + IFabricStatefulServicePartition1, + IFabricStatefulServicePartition2 +); +impl IFabricStatefulServicePartition3 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportReplicaHealth2( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportReplicaHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportPartitionHealth2( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportPartitionHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatefulServicePartition3_Vtbl { + pub base__: IFabricStatefulServicePartition2_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportReplicaHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportReplicaHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportPartitionHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportPartitionHealth2: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatefulServicePartition3_Impl: IFabricStatefulServicePartition2_Impl { fn ReportReplicaHealth2( &self, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, @@ -11249,50 +11503,47 @@ pub trait IFabricStatefulServicePartition3_Impl: sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatefulServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatefulServicePartition3_Vtbl { - pub const fn new( - ) -> IFabricStatefulServicePartition3_Vtbl - where - Identity: IFabricStatefulServicePartition3_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportReplicaHealth2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition3_Impl::ReportReplicaHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition3_Impl::ReportReplicaHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() + } } unsafe extern "system" fn ReportPartitionHealth2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServicePartition3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServicePartition3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServicePartition3_Impl::ReportPartitionHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServicePartition3_Impl::ReportPartitionHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() + } } Self { base__: IFabricStatefulServicePartition2_Vtbl::new::(), @@ -11307,45 +11558,247 @@ impl IFabricStatefulServicePartition3_Vtbl { || iid == &::IID } } -pub trait IFabricStatefulServiceReplica_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatefulServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatefulServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatefulServicePartition3 {} +windows_core::imp::define_interface!( + IFabricStatefulServiceReplica, + IFabricStatefulServiceReplica_Vtbl, + 0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a +); +windows_core::imp::interface_hierarchy!(IFabricStatefulServiceReplica, windows_core::IUnknown); +impl IFabricStatefulServiceReplica { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginOpen( + &self, + openmode: super::FabricTypes::FABRIC_REPLICA_OPEN_MODE, + partition: P1, + callback: P2, + ) -> windows_core::Result + where + P1: windows_core::Param, + P2: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOpen)( + windows_core::Interface::as_raw(self), + openmode, + partition.param().abi(), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOpen(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOpen)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginChangeRole( + &self, + newrole: super::FabricTypes::FABRIC_REPLICA_ROLE, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginChangeRole)( + windows_core::Interface::as_raw(self), + newrole, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndChangeRole)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginClose)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndClose)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + pub unsafe fn Abort(&self) { + unsafe { + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricStatefulServiceReplica_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_REPLICA_OPEN_MODE, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginOpen: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOpen: usize, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginChangeRole: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_REPLICA_ROLE, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginChangeRole: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndChangeRole: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndChangeRole: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginClose: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndClose: usize, + pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricStatefulServiceReplica_Impl: windows_core::IUnknownImpl { fn BeginOpen( &self, openmode: super::FabricTypes::FABRIC_REPLICA_OPEN_MODE, - partition: Option<&IFabricStatefulServicePartition>, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + partition: windows_core::Ref<'_, IFabricStatefulServicePartition>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOpen( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginChangeRole( &self, newrole: super::FabricTypes::FABRIC_REPLICA_ROLE, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndChangeRole( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginClose( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndClose( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn Abort(&self); } -impl windows_core::RuntimeName for IFabricStatefulServiceReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricStatefulServiceReplica_Vtbl { - pub const fn new( - ) -> IFabricStatefulServiceReplica_Vtbl - where - Identity: IFabricStatefulServiceReplica_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginOpen< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -11353,142 +11806,146 @@ impl IFabricStatefulServiceReplica_Vtbl { partition: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceReplica_Impl::BeginOpen( - this, - core::mem::transmute_copy(&openmode), - windows_core::from_raw_borrowed(&partition), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceReplica_Impl::BeginOpen( + this, + core::mem::transmute_copy(&openmode), + core::mem::transmute_copy(&partition), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, replicator: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceReplica_Impl::EndOpen( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - replicator.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceReplica_Impl::EndOpen( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + replicator.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginChangeRole< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, newrole: super::FabricTypes::FABRIC_REPLICA_ROLE, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceReplica_Impl::BeginChangeRole( - this, - core::mem::transmute_copy(&newrole), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceReplica_Impl::BeginChangeRole( + this, + core::mem::transmute_copy(&newrole), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndChangeRole< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, serviceaddress: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceReplica_Impl::EndChangeRole( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - serviceaddress.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceReplica_Impl::EndChangeRole( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + serviceaddress.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatefulServiceReplica_Impl::BeginClose( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatefulServiceReplica_Impl::BeginClose( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServiceReplica_Impl::EndClose( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServiceReplica_Impl::EndClose( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } - unsafe extern "system" fn Abort( - this: *mut core::ffi::c_void, - ) where + unsafe extern "system" fn Abort< Identity: IFabricStatefulServiceReplica_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatefulServiceReplica_Impl::Abort(this) + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatefulServiceReplica_Impl::Abort(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -11505,7 +11962,75 @@ impl IFabricStatefulServiceReplica_Vtbl { iid == &::IID } } -pub trait IFabricStatelessServiceFactory_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricStatefulServiceReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricStatefulServiceReplica {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricStatefulServiceReplica {} +windows_core::imp::define_interface!( + IFabricStatelessServiceFactory, + IFabricStatelessServiceFactory_Vtbl, + 0xcc53af8f_74cd_11df_ac3e_0024811e3892 +); +windows_core::imp::interface_hierarchy!(IFabricStatelessServiceFactory, windows_core::IUnknown); +impl IFabricStatelessServiceFactory { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn CreateInstance( + &self, + servicetypename: P0, + servicename: super::FabricTypes::FABRIC_URI, + initializationdata: &[u8], + partitionid: windows_core::GUID, + instanceid: i64, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).CreateInstance)( + windows_core::Interface::as_raw(self), + servicetypename.param().abi(), + servicename, + initializationdata.len().try_into().unwrap(), + core::mem::transmute(initializationdata.as_ptr()), + core::mem::transmute(partitionid), + instanceid, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +#[repr(C)] +pub struct IFabricStatelessServiceFactory_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub CreateInstance: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::PCWSTR, + super::FabricTypes::FABRIC_URI, + u32, + *const u8, + windows_core::GUID, + i64, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + CreateInstance: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatelessServiceFactory_Impl: windows_core::IUnknownImpl { fn CreateInstance( &self, servicetypename: &windows_core::PCWSTR, @@ -11516,15 +12041,11 @@ pub trait IFabricStatelessServiceFactory_Impl: Sized { instanceid: i64, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStatelessServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatelessServiceFactory_Vtbl { - pub const fn new( - ) -> IFabricStatelessServiceFactory_Vtbl - where - Identity: IFabricStatelessServiceFactory_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn CreateInstance< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServiceFactory_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -11535,25 +12056,25 @@ impl IFabricStatelessServiceFactory_Vtbl { partitionid: windows_core::GUID, instanceid: i64, serviceinstance: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServiceFactory_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatelessServiceFactory_Impl::CreateInstance( - this, - core::mem::transmute(&servicetypename), - core::mem::transmute_copy(&servicename), - core::mem::transmute_copy(&initializationdatalength), - core::mem::transmute_copy(&initializationdata), - core::mem::transmute(&partitionid), - core::mem::transmute_copy(&instanceid), - ) { - Ok(ok__) => { - serviceinstance.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatelessServiceFactory_Impl::CreateInstance( + this, + core::mem::transmute(&servicetypename), + core::mem::transmute_copy(&servicename), + core::mem::transmute_copy(&initializationdatalength), + core::mem::transmute_copy(&initializationdata), + core::mem::transmute(&partitionid), + core::mem::transmute_copy(&instanceid), + ) { + Ok(ok__) => { + serviceinstance.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -11565,128 +12086,256 @@ impl IFabricStatelessServiceFactory_Vtbl { iid == &::IID } } -pub trait IFabricStatelessServiceInstance_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatelessServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatelessServiceFactory {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatelessServiceFactory {} +windows_core::imp::define_interface!( + IFabricStatelessServiceInstance, + IFabricStatelessServiceInstance_Vtbl, + 0xcc53af90_74cd_11df_ac3e_0024811e3892 +); +windows_core::imp::interface_hierarchy!(IFabricStatelessServiceInstance, windows_core::IUnknown); +impl IFabricStatelessServiceInstance { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginOpen( + &self, + partition: P0, + callback: P1, + ) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOpen)( + windows_core::Interface::as_raw(self), + partition.param().abi(), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOpen)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginClose)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndClose(&self, context: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + unsafe { + (windows_core::Interface::vtable(self).EndClose)( + windows_core::Interface::as_raw(self), + context.param().abi(), + ) + .ok() + } + } + pub unsafe fn Abort(&self) { + unsafe { + (windows_core::Interface::vtable(self).Abort)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricStatelessServiceInstance_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginOpen: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOpen: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOpen: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginClose: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndClose: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndClose: usize, + pub Abort: unsafe extern "system" fn(*mut core::ffi::c_void), +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricStatelessServiceInstance_Impl: windows_core::IUnknownImpl { fn BeginOpen( &self, - partition: Option<&IFabricStatelessServicePartition>, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + partition: windows_core::Ref<'_, IFabricStatelessServicePartition>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOpen( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn BeginClose( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndClose( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result<()>; fn Abort(&self); } -impl windows_core::RuntimeName for IFabricStatelessServiceInstance {} +#[cfg(feature = "ServiceFabric_FabricCommon")] impl IFabricStatelessServiceInstance_Vtbl { - pub const fn new( - ) -> IFabricStatelessServiceInstance_Vtbl - where - Identity: IFabricStatelessServiceInstance_Impl, + pub const fn new() -> Self { unsafe extern "system" fn BeginOpen< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, partition: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServiceInstance_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatelessServiceInstance_Impl::BeginOpen( - this, - windows_core::from_raw_borrowed(&partition), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatelessServiceInstance_Impl::BeginOpen( + this, + core::mem::transmute_copy(&partition), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, serviceaddress: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServiceInstance_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatelessServiceInstance_Impl::EndOpen( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - serviceaddress.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatelessServiceInstance_Impl::EndOpen( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + serviceaddress.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn BeginClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServiceInstance_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatelessServiceInstance_Impl::BeginClose( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatelessServiceInstance_Impl::BeginClose( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServiceInstance_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServiceInstance_Impl::EndClose( - this, - windows_core::from_raw_borrowed(&context), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServiceInstance_Impl::EndClose( + this, + core::mem::transmute_copy(&context), + ) + .into() + } } - unsafe extern "system" fn Abort( - this: *mut core::ffi::c_void, - ) where + unsafe extern "system" fn Abort< Identity: IFabricStatelessServiceInstance_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServiceInstance_Impl::Abort(this) + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServiceInstance_Impl::Abort(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -11701,7 +12350,88 @@ impl IFabricStatelessServiceInstance_Vtbl { iid == &::IID } } -pub trait IFabricStatelessServicePartition_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricStatelessServiceInstance {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricStatelessServiceInstance {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricStatelessServiceInstance {} +windows_core::imp::define_interface!( + IFabricStatelessServicePartition, + IFabricStatelessServicePartition_Vtbl, + 0xcc53af91_74cd_11df_ac3e_0024811e3892 +); +windows_core::imp::interface_hierarchy!(IFabricStatelessServicePartition, windows_core::IUnknown); +impl IFabricStatelessServicePartition { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn GetPartitionInfo( + &self, + ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION> { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).GetPartitionInfo)( + windows_core::Interface::as_raw(self), + &mut result__, + ) + .map(|| result__) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportLoad( + &self, + metrics: &[super::FabricTypes::FABRIC_LOAD_METRIC], + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportLoad)( + windows_core::Interface::as_raw(self), + metrics.len().try_into().unwrap(), + core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportFault( + &self, + faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportFault)( + windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatelessServicePartition_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub GetPartitionInfo: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + GetPartitionInfo: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportLoad: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *const super::FabricTypes::FABRIC_LOAD_METRIC, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportLoad: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportFault: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_FAULT_TYPE, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportFault: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatelessServicePartition_Impl: windows_core::IUnknownImpl { fn GetPartitionInfo( &self, ) -> windows_core::Result<*mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION>; @@ -11715,67 +12445,64 @@ pub trait IFabricStatelessServicePartition_Impl: Sized { faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatelessServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatelessServicePartition_Vtbl { - pub const fn new( - ) -> IFabricStatelessServicePartition_Vtbl - where - Identity: IFabricStatelessServicePartition_Impl, + pub const fn new() -> Self { unsafe extern "system" fn GetPartitionInfo< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bufferedvalue: *mut *mut super::FabricTypes::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStatelessServicePartition_Impl::GetPartitionInfo(this) { - Ok(ok__) => { - bufferedvalue.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStatelessServicePartition_Impl::GetPartitionInfo(this) { + Ok(ok__) => { + bufferedvalue.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn ReportLoad< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, metriccount: u32, metrics: *const super::FabricTypes::FABRIC_LOAD_METRIC, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition_Impl::ReportLoad( - this, - core::mem::transmute_copy(&metriccount), - core::mem::transmute_copy(&metrics), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition_Impl::ReportLoad( + this, + core::mem::transmute_copy(&metriccount), + core::mem::transmute_copy(&metrics), + ) + .into() + } } unsafe extern "system" fn ReportFault< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, faulttype: super::FabricTypes::FABRIC_FAULT_TYPE, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition_Impl::ReportFault( - this, - core::mem::transmute_copy(&faulttype), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition_Impl::ReportFault( + this, + core::mem::transmute_copy(&faulttype), + ) + .into() + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -11788,37 +12515,81 @@ impl IFabricStatelessServicePartition_Vtbl { iid == &::IID } } -pub trait IFabricStatelessServicePartition1_Impl: - Sized + IFabricStatelessServicePartition_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatelessServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatelessServicePartition {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatelessServicePartition {} +windows_core::imp::define_interface!( + IFabricStatelessServicePartition1, + IFabricStatelessServicePartition1_Vtbl, + 0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b +); +impl core::ops::Deref for IFabricStatelessServicePartition1 { + type Target = IFabricStatelessServicePartition; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition1, + windows_core::IUnknown, + IFabricStatelessServicePartition +); +impl IFabricStatelessServicePartition1 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportMoveCost( + &self, + movecost: super::FabricTypes::FABRIC_MOVE_COST, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportMoveCost)( + windows_core::Interface::as_raw(self), + movecost, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatelessServicePartition1_Vtbl { + pub base__: IFabricStatelessServicePartition_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportMoveCost: unsafe extern "system" fn( + *mut core::ffi::c_void, + super::FabricTypes::FABRIC_MOVE_COST, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportMoveCost: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatelessServicePartition1_Impl: IFabricStatelessServicePartition_Impl { fn ReportMoveCost( &self, movecost: super::FabricTypes::FABRIC_MOVE_COST, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatelessServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatelessServicePartition1_Vtbl { - pub const fn new( - ) -> IFabricStatelessServicePartition1_Vtbl - where - Identity: IFabricStatelessServicePartition1_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportMoveCost< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition1_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, movecost: super::FabricTypes::FABRIC_MOVE_COST, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition1_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition1_Impl::ReportMoveCost( - this, - core::mem::transmute_copy(&movecost), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition1_Impl::ReportMoveCost( + this, + core::mem::transmute_copy(&movecost), + ) + .into() + } } Self { base__: IFabricStatelessServicePartition_Vtbl::new::(), @@ -11830,9 +12601,77 @@ impl IFabricStatelessServicePartition1_Vtbl { || iid == &::IID } } -pub trait IFabricStatelessServicePartition2_Impl: - Sized + IFabricStatelessServicePartition1_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatelessServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatelessServicePartition1 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatelessServicePartition1 {} +windows_core::imp::define_interface!( + IFabricStatelessServicePartition2, + IFabricStatelessServicePartition2_Vtbl, + 0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4 +); +impl core::ops::Deref for IFabricStatelessServicePartition2 { + type Target = IFabricStatelessServicePartition1; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition2, + windows_core::IUnknown, + IFabricStatelessServicePartition, + IFabricStatelessServicePartition1 +); +impl IFabricStatelessServicePartition2 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportInstanceHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportInstanceHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportPartitionHealth)( + windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatelessServicePartition2_Vtbl { + pub base__: IFabricStatelessServicePartition1_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportInstanceHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportInstanceHealth: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportPartitionHealth: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportPartitionHealth: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatelessServicePartition2_Impl: IFabricStatelessServicePartition1_Impl { fn ReportInstanceHealth( &self, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, @@ -11842,46 +12681,43 @@ pub trait IFabricStatelessServicePartition2_Impl: healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatelessServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatelessServicePartition2_Vtbl { - pub const fn new( - ) -> IFabricStatelessServicePartition2_Vtbl - where - Identity: IFabricStatelessServicePartition2_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportInstanceHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition2_Impl::ReportInstanceHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition2_Impl::ReportInstanceHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() + } } unsafe extern "system" fn ReportPartitionHealth< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition2_Impl::ReportPartitionHealth( - this, - core::mem::transmute_copy(&healthinfo), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition2_Impl::ReportPartitionHealth( + this, + core::mem::transmute_copy(&healthinfo), + ) + .into() + } } Self { base__: IFabricStatelessServicePartition1_Vtbl::new::(), @@ -11895,9 +12731,84 @@ impl IFabricStatelessServicePartition2_Vtbl { || iid == &::IID } } -pub trait IFabricStatelessServicePartition3_Impl: - Sized + IFabricStatelessServicePartition2_Impl -{ +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatelessServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatelessServicePartition2 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatelessServicePartition2 {} +windows_core::imp::define_interface!( + IFabricStatelessServicePartition3, + IFabricStatelessServicePartition3_Vtbl, + 0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f +); +impl core::ops::Deref for IFabricStatelessServicePartition3 { + type Target = IFabricStatelessServicePartition2; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition3, + windows_core::IUnknown, + IFabricStatelessServicePartition, + IFabricStatelessServicePartition1, + IFabricStatelessServicePartition2 +); +impl IFabricStatelessServicePartition3 { + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportInstanceHealth2( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportInstanceHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn ReportPartitionHealth2( + &self, + healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::Result<()> { + unsafe { + (windows_core::Interface::vtable(self).ReportPartitionHealth2)( + windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } +} +#[repr(C)] +pub struct IFabricStatelessServicePartition3_Vtbl { + pub base__: IFabricStatelessServicePartition2_Vtbl, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportInstanceHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportInstanceHealth2: usize, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub ReportPartitionHealth2: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, + *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + ReportPartitionHealth2: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricStatelessServicePartition3_Impl: IFabricStatelessServicePartition2_Impl { fn ReportInstanceHealth2( &self, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, @@ -11909,50 +12820,47 @@ pub trait IFabricStatelessServicePartition3_Impl: sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, ) -> windows_core::Result<()>; } -impl windows_core::RuntimeName for IFabricStatelessServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricStatelessServicePartition3_Vtbl { - pub const fn new( - ) -> IFabricStatelessServicePartition3_Vtbl - where - Identity: IFabricStatelessServicePartition3_Impl, + pub const fn new() -> Self { unsafe extern "system" fn ReportInstanceHealth2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition3_Impl::ReportInstanceHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition3_Impl::ReportInstanceHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() + } } unsafe extern "system" fn ReportPartitionHealth2< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStatelessServicePartition3_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, healthinfo: *const super::FabricTypes::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> windows_core::HRESULT - where - Identity: IFabricStatelessServicePartition3_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStatelessServicePartition3_Impl::ReportPartitionHealth2( - this, - core::mem::transmute_copy(&healthinfo), - core::mem::transmute_copy(&sendoptions), - ) - .into() + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStatelessServicePartition3_Impl::ReportPartitionHealth2( + this, + core::mem::transmute_copy(&healthinfo), + core::mem::transmute_copy(&sendoptions), + ) + .into() + } } Self { base__: IFabricStatelessServicePartition2_Vtbl::new::(), @@ -11967,26 +12875,48 @@ impl IFabricStatelessServicePartition3_Vtbl { || iid == &::IID } } -pub trait IFabricStoreEventHandler_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricStatelessServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricStatelessServicePartition3 {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricStatelessServicePartition3 {} +windows_core::imp::define_interface!( + IFabricStoreEventHandler, + IFabricStoreEventHandler_Vtbl, + 0x220e6da4_985b_4dee_8fe9_77521b838795 +); +windows_core::imp::interface_hierarchy!(IFabricStoreEventHandler, windows_core::IUnknown); +impl IFabricStoreEventHandler { + pub unsafe fn OnDataLoss(&self) { + unsafe { + (windows_core::Interface::vtable(self).OnDataLoss)(windows_core::Interface::as_raw( + self, + )) + } + } +} +#[repr(C)] +pub struct IFabricStoreEventHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub OnDataLoss: unsafe extern "system" fn(*mut core::ffi::c_void), +} +pub trait IFabricStoreEventHandler_Impl: windows_core::IUnknownImpl { fn OnDataLoss(&self); } -impl windows_core::RuntimeName for IFabricStoreEventHandler {} impl IFabricStoreEventHandler_Vtbl { - pub const fn new( - ) -> IFabricStoreEventHandler_Vtbl - where - Identity: IFabricStoreEventHandler_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn OnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStoreEventHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) where - Identity: IFabricStoreEventHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricStoreEventHandler_Impl::OnDataLoss(this) + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricStoreEventHandler_Impl::OnDataLoss(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -11997,67 +12927,138 @@ impl IFabricStoreEventHandler_Vtbl { iid == &::IID } } -pub trait IFabricStoreEventHandler2_Impl: Sized + IFabricStoreEventHandler_Impl { +impl windows_core::RuntimeName for IFabricStoreEventHandler {} +unsafe impl Send for IFabricStoreEventHandler {} +unsafe impl Sync for IFabricStoreEventHandler {} +windows_core::imp::define_interface!( + IFabricStoreEventHandler2, + IFabricStoreEventHandler2_Vtbl, + 0xcce4523f_614b_4d6a_98a3_1e197c0213ea +); +impl core::ops::Deref for IFabricStoreEventHandler2 { + type Target = IFabricStoreEventHandler; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricStoreEventHandler2, + windows_core::IUnknown, + IFabricStoreEventHandler +); +impl IFabricStoreEventHandler2 { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginOnDataLoss)( + windows_core::Interface::as_raw(self), + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndOnDataLoss(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndOnDataLoss)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricStoreEventHandler2_Vtbl { + pub base__: IFabricStoreEventHandler_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginOnDataLoss: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndOnDataLoss: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u8, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndOnDataLoss: usize, +} +#[cfg(feature = "ServiceFabric_FabricCommon")] +pub trait IFabricStoreEventHandler2_Impl: IFabricStoreEventHandler_Impl { fn BeginOnDataLoss( &self, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndOnDataLoss( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStoreEventHandler2 {} +#[cfg(feature = "ServiceFabric_FabricCommon")] impl IFabricStoreEventHandler2_Vtbl { - pub const fn new( - ) -> IFabricStoreEventHandler2_Vtbl - where - Identity: IFabricStoreEventHandler2_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStoreEventHandler2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStoreEventHandler2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStoreEventHandler2_Impl::BeginOnDataLoss( - this, - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStoreEventHandler2_Impl::BeginOnDataLoss( + this, + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStoreEventHandler2_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, isstatechanged: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricStoreEventHandler2_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStoreEventHandler2_Impl::EndOnDataLoss( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - isstatechanged.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStoreEventHandler2_Impl::EndOnDataLoss( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + isstatechanged.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -12071,70 +13072,152 @@ impl IFabricStoreEventHandler2_Vtbl { || iid == &::IID } } -pub trait IFabricStorePostBackupHandler_Impl: Sized { +#[cfg(feature = "ServiceFabric_FabricCommon")] +impl windows_core::RuntimeName for IFabricStoreEventHandler2 {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Send for IFabricStoreEventHandler2 {} +#[cfg(feature = "ServiceFabric_FabricCommon")] +unsafe impl Sync for IFabricStoreEventHandler2 {} +windows_core::imp::define_interface!( + IFabricStorePostBackupHandler, + IFabricStorePostBackupHandler_Vtbl, + 0x2af2e8a6_41df_4e32_9d2a_d73a711e652a +); +windows_core::imp::interface_hierarchy!(IFabricStorePostBackupHandler, windows_core::IUnknown); +impl IFabricStorePostBackupHandler { + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub unsafe fn BeginPostBackup( + &self, + info: *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginPostBackup)( + windows_core::Interface::as_raw(self), + info, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndPostBackup(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndPostBackup)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } +} +#[repr(C)] +pub struct IFabricStorePostBackupHandler_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + #[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + ))] + pub BeginPostBackup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" + )))] + BeginPostBackup: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndPostBackup: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut u8, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndPostBackup: usize, +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricStorePostBackupHandler_Impl: windows_core::IUnknownImpl { fn BeginPostBackup( &self, info: *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndPostBackup( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; } -impl windows_core::RuntimeName for IFabricStorePostBackupHandler {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricStorePostBackupHandler_Vtbl { - pub const fn new( - ) -> IFabricStorePostBackupHandler_Vtbl - where - Identity: IFabricStorePostBackupHandler_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginPostBackup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStorePostBackupHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, info: *const super::FabricTypes::FABRIC_STORE_BACKUP_INFO, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricStorePostBackupHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStorePostBackupHandler_Impl::BeginPostBackup( - this, - core::mem::transmute_copy(&info), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStorePostBackupHandler_Impl::BeginPostBackup( + this, + core::mem::transmute_copy(&info), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndPostBackup< - Identity: windows_core::IUnknownImpl, + Identity: IFabricStorePostBackupHandler_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, status: *mut u8, - ) -> windows_core::HRESULT - where - Identity: IFabricStorePostBackupHandler_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricStorePostBackupHandler_Impl::EndPostBackup( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - status.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricStorePostBackupHandler_Impl::EndPostBackup( + this, + core::mem::transmute_copy(&context), + ) { + Ok(ok__) => { + status.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } Self { @@ -12147,83 +13230,180 @@ impl IFabricStorePostBackupHandler_Vtbl { iid == &::IID } } -pub trait IFabricTransaction_Impl: Sized + IFabricTransactionBase_Impl { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricStorePostBackupHandler {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricStorePostBackupHandler {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricStorePostBackupHandler {} +windows_core::imp::define_interface!( + IFabricTransaction, + IFabricTransaction_Vtbl, + 0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8 +); +impl core::ops::Deref for IFabricTransaction { + type Target = IFabricTransactionBase; + fn deref(&self) -> &Self::Target { + unsafe { core::mem::transmute(self) } + } +} +windows_core::imp::interface_hierarchy!( + IFabricTransaction, + windows_core::IUnknown, + IFabricTransactionBase +); +impl IFabricTransaction { + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn BeginCommit( + &self, + timeoutmilliseconds: u32, + callback: P1, + ) -> windows_core::Result + where + P1: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).BeginCommit)( + windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub unsafe fn EndCommit(&self, context: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(self).EndCommit)( + windows_core::Interface::as_raw(self), + context.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub unsafe fn Rollback(&self) { + unsafe { + (windows_core::Interface::vtable(self).Rollback)(windows_core::Interface::as_raw(self)) + } + } +} +#[repr(C)] +pub struct IFabricTransaction_Vtbl { + pub base__: IFabricTransactionBase_Vtbl, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub BeginCommit: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + BeginCommit: usize, + #[cfg(feature = "ServiceFabric_FabricCommon")] + pub EndCommit: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut core::ffi::c_void, + *mut i64, + ) -> windows_core::HRESULT, + #[cfg(not(feature = "ServiceFabric_FabricCommon"))] + EndCommit: usize, + pub Rollback: unsafe extern "system" fn(*mut core::ffi::c_void), +} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +pub trait IFabricTransaction_Impl: IFabricTransactionBase_Impl { fn BeginCommit( &self, timeoutmilliseconds: u32, - callback: Option<&super::FabricCommon::IFabricAsyncOperationCallback>, + callback: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationCallback>, ) -> windows_core::Result; fn EndCommit( &self, - context: Option<&super::FabricCommon::IFabricAsyncOperationContext>, + context: windows_core::Ref<'_, super::FabricCommon::IFabricAsyncOperationContext>, ) -> windows_core::Result; fn Rollback(&self); } -impl windows_core::RuntimeName for IFabricTransaction {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] impl IFabricTransaction_Vtbl { - pub const fn new( - ) -> IFabricTransaction_Vtbl - where - Identity: IFabricTransaction_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn BeginCommit< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTransaction_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut core::ffi::c_void, context: *mut *mut core::ffi::c_void, - ) -> windows_core::HRESULT - where - Identity: IFabricTransaction_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTransaction_Impl::BeginCommit( - this, - core::mem::transmute_copy(&timeoutmilliseconds), - windows_core::from_raw_borrowed(&callback), - ) { - Ok(ok__) => { - context.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTransaction_Impl::BeginCommit( + this, + core::mem::transmute_copy(&timeoutmilliseconds), + core::mem::transmute_copy(&callback), + ) { + Ok(ok__) => { + context.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn EndCommit< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTransaction_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, commitsequencenumber: *mut i64, - ) -> windows_core::HRESULT - where - Identity: IFabricTransaction_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IFabricTransaction_Impl::EndCommit( - this, - windows_core::from_raw_borrowed(&context), - ) { - Ok(ok__) => { - commitsequencenumber.write(core::mem::transmute(ok__)); - windows_core::HRESULT(0) + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IFabricTransaction_Impl::EndCommit(this, core::mem::transmute_copy(&context)) + { + Ok(ok__) => { + commitsequencenumber.write(core::mem::transmute(ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), } - Err(err) => err.into(), } } unsafe extern "system" fn Rollback< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTransaction_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) where - Identity: IFabricTransaction_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTransaction_Impl::Rollback(this) + ) { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTransaction_Impl::Rollback(this) + } } Self { base__: IFabricTransactionBase_Vtbl::new::(), @@ -12237,40 +13417,88 @@ impl IFabricTransaction_Vtbl { || iid == &::IID } } -pub trait IFabricTransactionBase_Impl: Sized { +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +impl windows_core::RuntimeName for IFabricTransaction {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Send for IFabricTransaction {} +#[cfg(all( + feature = "ServiceFabric_FabricCommon", + feature = "ServiceFabric_FabricTypes" +))] +unsafe impl Sync for IFabricTransaction {} +windows_core::imp::define_interface!( + IFabricTransactionBase, + IFabricTransactionBase_Vtbl, + 0x32d656a1_7ad5_47b8_bd66_a2e302626b7e +); +windows_core::imp::interface_hierarchy!(IFabricTransactionBase, windows_core::IUnknown); +impl IFabricTransactionBase { + pub unsafe fn get_Id(&self) -> *mut windows_core::GUID { + unsafe { + (windows_core::Interface::vtable(self).get_Id)(windows_core::Interface::as_raw(self)) + } + } + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub unsafe fn get_IsolationLevel( + &self, + ) -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL { + unsafe { + (windows_core::Interface::vtable(self).get_IsolationLevel)( + windows_core::Interface::as_raw(self), + ) + } + } +} +#[repr(C)] +pub struct IFabricTransactionBase_Vtbl { + pub base__: windows_core::IUnknown_Vtbl, + pub get_Id: unsafe extern "system" fn(*mut core::ffi::c_void) -> *mut windows_core::GUID, + #[cfg(feature = "ServiceFabric_FabricTypes")] + pub get_IsolationLevel: + unsafe extern "system" fn( + *mut core::ffi::c_void, + ) + -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL, + #[cfg(not(feature = "ServiceFabric_FabricTypes"))] + get_IsolationLevel: usize, +} +#[cfg(feature = "ServiceFabric_FabricTypes")] +pub trait IFabricTransactionBase_Impl: windows_core::IUnknownImpl { fn get_Id(&self) -> *mut windows_core::GUID; fn get_IsolationLevel(&self) -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL; } -impl windows_core::RuntimeName for IFabricTransactionBase {} +#[cfg(feature = "ServiceFabric_FabricTypes")] impl IFabricTransactionBase_Vtbl { - pub const fn new( - ) -> IFabricTransactionBase_Vtbl - where - Identity: IFabricTransactionBase_Impl, - { + pub const fn new() -> Self { unsafe extern "system" fn get_Id< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTransactionBase_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> *mut windows_core::GUID - where - Identity: IFabricTransactionBase_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTransactionBase_Impl::get_Id(this) + ) -> *mut windows_core::GUID { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTransactionBase_Impl::get_Id(this) + } } unsafe extern "system" fn get_IsolationLevel< - Identity: windows_core::IUnknownImpl, + Identity: IFabricTransactionBase_Impl, const OFFSET: isize, >( this: *mut core::ffi::c_void, - ) -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL - where - Identity: IFabricTransactionBase_Impl, - { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IFabricTransactionBase_Impl::get_IsolationLevel(this) + ) -> super::FabricTypes::FABRIC_TRANSACTION_ISOLATION_LEVEL { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IFabricTransactionBase_Impl::get_IsolationLevel(this) + } } Self { base__: windows_core::IUnknown_Vtbl::new::(), @@ -12282,3 +13510,9 @@ impl IFabricTransactionBase_Vtbl { iid == &::IID } } +#[cfg(feature = "ServiceFabric_FabricTypes")] +impl windows_core::RuntimeName for IFabricTransactionBase {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Send for IFabricTransactionBase {} +#[cfg(feature = "ServiceFabric_FabricTypes")] +unsafe impl Sync for IFabricTransactionBase {} diff --git a/crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs index 3da96401..7b129ee7 100644 --- a/crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs +++ b/crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs @@ -1,3181 +1,7 @@ -// Bindings generated by `windows-bindgen` 0.58.0 +// Bindings generated by `windows-bindgen` 0.59.0 -#![allow( - non_snake_case, - non_upper_case_globals, - non_camel_case_types, - dead_code, - clippy::all -)] -pub const FABRIC_APPLICATION_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND = - FABRIC_APPLICATION_DEFINITION_KIND(1i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_ALL: FABRIC_APPLICATION_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_DEFINITION_KIND_FILTER(65535i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_COMPOSE: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(2i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(4i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = - FABRIC_APPLICATION_DEFINITION_KIND(65535i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_AUTOMATIC: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(2i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_DEFAULT: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_INVALID: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(0i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_MANUAL: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(3i32); -pub const FABRIC_APPLICATION_STATUS_CREATING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(3i32); -pub const FABRIC_APPLICATION_STATUS_DELETING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(4i32); -pub const FABRIC_APPLICATION_STATUS_FAILED: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(5i32); -pub const FABRIC_APPLICATION_STATUS_INVALID: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(0i32); -pub const FABRIC_APPLICATION_STATUS_READY: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(1i32); -pub const FABRIC_APPLICATION_STATUS_UPGRADING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(2i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND(2i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_ALL: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(65535i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_COMPOSE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(2i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(4i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(1i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND(0i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(2i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(4i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_INVALID: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(0i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_PROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(1i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_UNPROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(3i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MAXNODES: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_METRICS: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(4i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_APPLICATION_UPGRADE_KIND_INVALID: FABRIC_APPLICATION_UPGRADE_KIND = - FABRIC_APPLICATION_UPGRADE_KIND(0i32); -pub const FABRIC_APPLICATION_UPGRADE_KIND_ROLLING: FABRIC_APPLICATION_UPGRADE_KIND = - FABRIC_APPLICATION_UPGRADE_KIND(1i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(6i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_INVALID: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(0i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_COMPLETED: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(2i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(7i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(4i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_PENDING: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); -pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; -pub const FABRIC_CHAOS_EVENT_KIND_EXECUTING_FAULTS: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(2i32); -pub const FABRIC_CHAOS_EVENT_KIND_INVALID: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(0i32); -pub const FABRIC_CHAOS_EVENT_KIND_STARTED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(1i32); -pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(6i32); -pub const FABRIC_CHAOS_EVENT_KIND_TEST_ERROR: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(5i32); -pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(4i32); -pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(3i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_ACTIVE: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(1i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_EXPIRED: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(2i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(0i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_PENDING: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(3i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_STOPPED: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(4i32); -pub const FABRIC_CHAOS_STATUS_INVALID: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(0i32); -pub const FABRIC_CHAOS_STATUS_RUNNING: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(1i32); -pub const FABRIC_CHAOS_STATUS_STOPPED: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(2i32); -pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_AAD: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = - FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(1i32); -pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = - FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); -pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); -pub const FABRIC_CLIENT_ROLE_UNKNOWN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(0i32); -pub const FABRIC_CLIENT_ROLE_USER: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(1i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_EXEHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(2i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_INVALID: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(0i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_NONE: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(1i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_INVALID: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(0i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_READY: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(3i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STOPPED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(5i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_TERMINATED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(6i32); -pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); -pub const FABRIC_DATA_LOSS_MODE_INVALID: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(0i32); -pub const FABRIC_DATA_LOSS_MODE_PARTIAL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(1i32); -pub const FABRIC_DEPLOYMENT_STATUS_ACTIVATING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(2i32); -pub const FABRIC_DEPLOYMENT_STATUS_ACTIVE: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(3i32); -pub const FABRIC_DEPLOYMENT_STATUS_DEACTIVATING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(5i32); -pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(1i32); -pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(0i32); -pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(4i32); -pub const FABRIC_DIAGNOSTICS_SINKS_KIND_AZUREINTERNAL: FABRIC_DIAGNOSTICS_SINKS_KIND = - FABRIC_DIAGNOSTICS_SINKS_KIND(1i32); -pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = - FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_INVALID: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(0i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_MANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(2i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(2i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_PROCESS: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(3i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_INVALID: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(0i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_SHARED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(1i32); -pub const FABRIC_ENTRY_POINT_STATUS_INVALID: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(0i32); -pub const FABRIC_ENTRY_POINT_STATUS_PENDING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(1i32); -pub const FABRIC_ENTRY_POINT_STATUS_STARTED: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(3i32); -pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(2i32); -pub const FABRIC_ENTRY_POINT_STATUS_STOPPED: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(5i32); -pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(4i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_FINISHED: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(4i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(5i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(1i32); -pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(8i32); -pub const FABRIC_ENUMERATION_CONSISTENT_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(10i32); -pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(2i32); -pub const FABRIC_ENUMERATION_FINISHED_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(12i32); -pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(0i32); -pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(3i32); -pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(15i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(3i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(2i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_INVALID: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(0i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_WORK: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(1i32); -pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017662i32); -pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); -pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017764i32); -pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017721i32); -pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); -pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017722i32); -pub const FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017767i32); -pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017765i32); -pub const FABRIC_E_APPLICATION_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017766i32); -pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017768i32); -pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017648i32); -pub const FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017762i32); -pub const FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017761i32); -pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017601i32); -pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); -pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017603i32); -pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017664i32); -pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); -pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); -pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); -pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017610i32); -pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017611i32); -pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); -pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017594i32); -pub const FABRIC_E_CERTIFICATE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017641i32); -pub const FABRIC_E_CHAOS_ALREADY_RUNNING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017640i32); -pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); -pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017733i32); -pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017619i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017618i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017589i32); -pub const FABRIC_E_CONFIGURATION_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017735i32); -pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017756i32); -pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017757i32); -pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); -pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017646i32); -pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); -pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017659i32); -pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017650i32); -pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); -pub const FABRIC_E_CORRUPTED_IMAGE_STORE_OBJECT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017723i32); -pub const FABRIC_E_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017595i32); -pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017734i32); -pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); -pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017647i32); -pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); -pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); -pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); -pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); -pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017671i32); -pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); -pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); -pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); -pub const FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017716i32); -pub const FABRIC_E_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017639i32); -pub const FABRIC_E_FABRIC_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017715i32); -pub const FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017714i32); -pub const FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017713i32); -pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017717i32); -pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); -pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017719i32); -pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017607i32); -pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); -pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017663i32); -pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); -pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017705i32); -pub const FABRIC_E_HEALTH_MAX_REPORTS_REACHED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017712i32); -pub const FABRIC_E_HEALTH_STALE_REPORT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017711i32); -pub const FABRIC_E_IMAGEBUILDER_ACCESS_DENIED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017693i32); -pub const FABRIC_E_IMAGEBUILDER_INVALID_MSI_FILE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017692i32); -pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017642i32); -pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); -pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017720i32); -pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017754i32); -pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); -pub const FABRIC_E_INSTANCE_ID_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017680i32); -pub const FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017677i32); -pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); -pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017738i32); -pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); -pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); -pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); -pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017674i32); -pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); -pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); -pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017746i32); -pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); -pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); -pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); -pub const FABRIC_E_INVALID_FOR_STATEFUL_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017617i32); -pub const FABRIC_E_INVALID_FOR_STATELESS_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017616i32); -pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); -pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); -pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); -pub const FABRIC_E_INVALID_PACKAGE_SHARING_POLICY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017676i32); -pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); -pub const FABRIC_E_INVALID_PARTITION_OPERATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017667i32); -pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017624i32); -pub const FABRIC_E_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017741i32); -pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017670i32); -pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017623i32); -pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); -pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); -pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017600i32); -pub const FABRIC_E_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); -pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); -pub const FABRIC_E_INVALID_TEST_COMMAND_STATE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017645i32); -pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017614i32); -pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017745i32); -pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017657i32); -pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); -pub const FABRIC_E_INVALID_X509_STORE_LOCATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017744i32); -pub const FABRIC_E_INVALID_X509_STORE_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017743i32); -pub const FABRIC_E_INVALID_X509_THUMBPRINT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017742i32); -pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); -pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); -pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); -pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017668i32); -pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); -pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); -pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017658i32); -pub const FABRIC_E_NAME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017792i32); -pub const FABRIC_E_NAME_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017791i32); -pub const FABRIC_E_NAME_NOT_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017790i32); -pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); -pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); -pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017678i32); -pub const FABRIC_E_NODE_IS_DOWN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017633i32); -pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); -pub const FABRIC_E_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); -pub const FABRIC_E_NODE_TRANSITION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017632i32); -pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); -pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); -pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); -pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); -pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); -pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); -pub const FABRIC_E_ONLY_VALID_FOR_STATEFUL_PERSISTENT_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017615i32); -pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017784i32); -pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017590i32); -pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); -pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); -pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017675i32); -pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017666i32); -pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); -pub const FABRIC_E_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); -pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); -pub const FABRIC_E_PROPERTY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017783i32); -pub const FABRIC_E_RECONFIGURATION_PENDING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017782i32); -pub const FABRIC_E_RELIABLE_SESSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017702i32); -pub const FABRIC_E_RELIABLE_SESSION_CANNOT_CONNECT: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017701i32); -pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017683i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017698i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017700i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017697i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_LISTENING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017696i32); -pub const FABRIC_E_RELIABLE_SESSION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017687i32); -pub const FABRIC_E_RELIABLE_SESSION_QUEUE_EMPTY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017686i32); -pub const FABRIC_E_RELIABLE_SESSION_QUOTA_EXCEEDED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017685i32); -pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017699i32); -pub const FABRIC_E_RELIABLE_SESSION_SERVICE_FAULTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017684i32); -pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017703i32); -pub const FABRIC_E_REPAIR_TASK_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017689i32); -pub const FABRIC_E_REPAIR_TASK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017688i32); -pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017681i32); -pub const FABRIC_E_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017781i32); -pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017752i32); -pub const FABRIC_E_RESTORE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017609i32); -pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017628i32); -pub const FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017608i32); -pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017665i32); -pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); -pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017588i32); -pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017592i32); -pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017708i32); -pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017660i32); -pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017776i32); -pub const FABRIC_E_SERVICE_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017780i32); -pub const FABRIC_E_SERVICE_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017779i32); -pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017732i32); -pub const FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017751i32); -pub const FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017750i32); -pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017704i32); -pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017777i32); -pub const FABRIC_E_SERVICE_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); -pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); -pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017775i32); -pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017760i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017774i32); -pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017758i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017599i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017598i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017591i32); -pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); -pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017644i32); -pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); -pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); -pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017690i32); -pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); -pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017679i32); -pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); -pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017625i32); -pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017626i32); -pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017654i32); -pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); -pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); -pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017656i32); -pub const FABRIC_E_VOLUME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017597i32); -pub const FABRIC_E_VOLUME_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017596i32); -pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); -pub const FABRIC_FAULT_TYPE_INVALID: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(0i32); -pub const FABRIC_FAULT_TYPE_PERMANENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(1i32); -pub const FABRIC_FAULT_TYPE_TRANSIENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(2i32); -pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(4i32); -pub const FABRIC_HEALTH_ENTITY_KIND_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(8i32); -pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(6i32); -pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(7i32); -pub const FABRIC_HEALTH_ENTITY_KIND_INVALID: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(0i32); -pub const FABRIC_HEALTH_ENTITY_KIND_NODE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(1i32); -pub const FABRIC_HEALTH_ENTITY_KIND_PARTITION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(2i32); -pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(5i32); -pub const FABRIC_HEALTH_ENTITY_KIND_SERVICE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(3i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(18i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(8i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION_TYPE_APPLICATIONS: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(19i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(17i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(5i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(16i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(4i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(1i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(0i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(12i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(7i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(14i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(3i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(13i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(2i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(15i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(6i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SYSTEM_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(9i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DELTA_NODES_CHECK: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(20i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(10i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_NODES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(11i32); -pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; -pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(6i32); -pub const FABRIC_HEALTH_REPORT_KIND_CLUSTER: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(9i32); -pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(7i32); -pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(8i32); -pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(0i32); -pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(4i32); -pub const FABRIC_HEALTH_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(3i32); -pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(5i32); -pub const FABRIC_HEALTH_REPORT_KIND_STATEFUL_SERVICE_REPLICA: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(1i32); -pub const FABRIC_HEALTH_REPORT_KIND_STATELESS_SERVICE_INSTANCE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(2i32); -pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); -pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(65535i32); -pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(0i32); -pub const FABRIC_HEALTH_STATE_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(8i32); -pub const FABRIC_HEALTH_STATE_FILTER_NONE: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(1i32); -pub const FABRIC_HEALTH_STATE_FILTER_OK: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(2i32); -pub const FABRIC_HEALTH_STATE_FILTER_WARNING: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(4i32); -pub const FABRIC_HEALTH_STATE_INVALID: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(0i32); -pub const FABRIC_HEALTH_STATE_OK: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(1i32); -pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); -pub const FABRIC_HEALTH_STATE_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); -pub const FABRIC_HOST_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(2i32); -pub const FABRIC_HOST_ISOLATION_MODE_NONE: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(0i32); -pub const FABRIC_HOST_ISOLATION_MODE_PROCESS: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(1i32); -pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); -pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); -pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); -pub const FABRIC_IGNORE_SEQUENCE_NUMBER_CHECK: u32 = 0u32; -pub const FABRIC_INFINITE_DURATION: u32 = 4294967295u32; -pub const FABRIC_INVALID_ATOMIC_GROUP_ID: i32 = -1i32; -pub const FABRIC_INVALID_INSTANCE_ID: i32 = -1i32; -pub const FABRIC_INVALID_NODE_INSTANCE_ID: u32 = 0u32; -pub const FABRIC_INVALID_OPERATION_INDEX: u32 = 4294967295u32; -pub const FABRIC_INVALID_REPLICA_ID: i32 = -1i32; -pub const FABRIC_INVALID_SEQUENCE_NUMBER: i32 = -1i32; -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_DEFAULT: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(0i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_LOGICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(2i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_PHYSICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(1i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_REBUILD: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(3i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(0i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_MIGRATION: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(1i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_RESTORE_SOURCE_BACKUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_SOURCE_DATABASE_CLEANUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(4i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_ACTIVE: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(5i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_CLEANUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(3i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_SWAP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_CANCELED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(3i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_COMPLETED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(2i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_FAILED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(0i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_PROCESSING: - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(1i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_INVALID: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(0i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NONE: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(1i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NON_BLOCKING_QUORUM_ACKED: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(2i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_ESE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(1i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_TSTORE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(2i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_UNKNOWN: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(0i32); -pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); -pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(0i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_INVALID: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(0i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_ROLLBACK: - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); -pub const FABRIC_MOVE_COST_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); -pub const FABRIC_MOVE_COST_LOW: FABRIC_MOVE_COST = FABRIC_MOVE_COST(1i32); -pub const FABRIC_MOVE_COST_MEDIUM: FABRIC_MOVE_COST = FABRIC_MOVE_COST(2i32); -pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(0i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(1i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(2i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(0i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(1i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(2i32); -pub const FABRIC_NETWORK_STATUS_CREATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(2i32); -pub const FABRIC_NETWORK_STATUS_DELETING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(3i32); -pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); -pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(65535i32); -pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(2i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(0i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(4i32); -pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(16i32); -pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(1i32); -pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(8i32); -pub const FABRIC_NETWORK_STATUS_INVALID: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(0i32); -pub const FABRIC_NETWORK_STATUS_READY: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(1i32); -pub const FABRIC_NETWORK_STATUS_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); -pub const FABRIC_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); -pub const FABRIC_NETWORK_TYPE_INVALID: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(0i32); -pub const FABRIC_NETWORK_TYPE_LOCAL: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(1i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_INVALID: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(0i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_PAUSE: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(1i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_DATA: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(3i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_NODE: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(4i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(2i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(3i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(0i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(2i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: - FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INFRASTRUCTURE: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INVALID: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(0i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); -pub const FABRIC_NODE_TRANSITION_TYPE_INVALID: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(0i32); -pub const FABRIC_NODE_TRANSITION_TYPE_START: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(1i32); -pub const FABRIC_NODE_TRANSITION_TYPE_STOP: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(2i32); -pub const FABRIC_NODE_UPGRADE_PHASE_INVALID: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(0i32); -pub const FABRIC_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(3i32); -pub const FABRIC_NODE_UPGRADE_PHASE_PRE_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(1i32); -pub const FABRIC_NODE_UPGRADE_PHASE_UPGRADING: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(2i32); -pub const FABRIC_OPERATION_TYPE_ATOMIC_GROUP_OPERATION: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(32i32); -pub const FABRIC_OPERATION_TYPE_COMMIT_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(64i32); -pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(16i32); -pub const FABRIC_OPERATION_TYPE_END_OF_STREAM: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(2i32); -pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(240i32); -pub const FABRIC_OPERATION_TYPE_INVALID: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(0i32); -pub const FABRIC_OPERATION_TYPE_NORMAL: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(1i32); -pub const FABRIC_OPERATION_TYPE_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(128i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_ALL: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(1i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CODE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(2i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CONFIG: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(3i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_DATA: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(4i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); -pub const FABRIC_PARTITION_KEY_TYPE_INT64: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(2i32); -pub const FABRIC_PARTITION_KEY_TYPE_INVALID: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(0i32); -pub const FABRIC_PARTITION_KEY_TYPE_NONE: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(1i32); -pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(3i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(7i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(2i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(6i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(3i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(4i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(5i32); -pub const FABRIC_PARTITION_SCHEME_INVALID: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(0i32); -pub const FABRIC_PARTITION_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(3i32); -pub const FABRIC_PARTITION_SCHEME_SINGLETON: FABRIC_PARTITION_SCHEME = - FABRIC_PARTITION_SCHEME(1i32); -pub const FABRIC_PARTITION_SCHEME_UNIFORM_INT64_RANGE: FABRIC_PARTITION_SCHEME = - FABRIC_PARTITION_SCHEME(2i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(2i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(0i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_PARTITION_ID: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(4i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_RANDOM: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(5i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(1i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(3i32); -pub const FABRIC_PLACEMENT_POLICY_INVALID: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(0i32); -pub const FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(1i32); -pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(5i32); -pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(3i32); -pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(2i32); -pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(4i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_EXISTS: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(3i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_SEQUENCE: - FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(4i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_INVALID: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(0i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(1i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); -pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); -pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); -pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); -pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); -pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); -pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); -pub const FABRIC_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = - FABRIC_PROTECTION_LEVEL(2i32); -pub const FABRIC_PROTECTION_LEVEL_NONE: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(0i32); -pub const FABRIC_PROTECTION_LEVEL_SIGN: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(1i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_EXTERNAL_STORE: - FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_IMAGE_STORE_PATH: - FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(1i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: FABRIC_PROVISION_APPLICATION_TYPE_KIND = - FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); -pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(5i32); -pub const FABRIC_QUERY_NODE_STATUS_DISABLING: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(4i32); -pub const FABRIC_QUERY_NODE_STATUS_DOWN: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(2i32); -pub const FABRIC_QUERY_NODE_STATUS_ENABLING: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(3i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DEFAULT: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(0i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLED: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(16i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(8i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DOWN: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(2i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_ENABLING: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(4i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(64i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(32i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_UP: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(1i32); -pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(0i32); -pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(7i32); -pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(6i32); -pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(1i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CHANGEROLE: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(4i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CLOSE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(16i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_INVALID: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(0i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_NONE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(1i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ONDATALOSS: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(64i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_UPDATEEPOCH: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_WAITFORCATCHUP: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CHANGEROLE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(4i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CLOSE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(8i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_INVALID: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(0i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_NONE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(1i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_OPEN: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(2i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_INVALID: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_IN_QUORUM_LOSS: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_NOT_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DOWN: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DROPPED: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(5i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_ALL: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DEFAULT: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(0i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DOWN: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(8i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DROPPED: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(16i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_INBUILD: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(1i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_READY: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(4i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_STANDBY: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INVALID: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_READY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(5i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(2i32); -pub const FABRIC_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = - FABRIC_QUORUM_LOSS_MODE(2i32); -pub const FABRIC_QUORUM_LOSS_MODE_INVALID: FABRIC_QUORUM_LOSS_MODE = FABRIC_QUORUM_LOSS_MODE(0i32); -pub const FABRIC_QUORUM_LOSS_MODE_QUORUM_REPLICAS: FABRIC_QUORUM_LOSS_MODE = - FABRIC_QUORUM_LOSS_MODE(1i32); -pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(7i32); -pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(6i32); -pub const FABRIC_RECONFIGURATION_PHASE_INVALID: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(0i32); -pub const FABRIC_RECONFIGURATION_PHASE_NONE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(1i32); -pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(3i32); -pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(5i32); -pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(4i32); -pub const FABRIC_RECONFIGURATION_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(2i32); -pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(2i32); -pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(0i32); -pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(4i32); -pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(3i32); -pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(1i32); -pub const FABRIC_REPAIR_IMPACT_KIND_INVALID: FABRIC_REPAIR_IMPACT_KIND = - FABRIC_REPAIR_IMPACT_KIND(0i32); -pub const FABRIC_REPAIR_IMPACT_KIND_NODE: FABRIC_REPAIR_IMPACT_KIND = - FABRIC_REPAIR_IMPACT_KIND(1i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_INVALID: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(0i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_NONE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(1i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_DATA: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(3i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_NODE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(4i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); -pub const FABRIC_REPAIR_TARGET_KIND_INVALID: FABRIC_REPAIR_TARGET_KIND = - FABRIC_REPAIR_TARGET_KIND(0i32); -pub const FABRIC_REPAIR_TARGET_KIND_NODE: FABRIC_REPAIR_TARGET_KIND = - FABRIC_REPAIR_TARGET_KIND(1i32); -pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(2i32); -pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(1i32); -pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(4i32); -pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = FABRIC_REPAIR_TASK_FLAGS(0i32); -pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(7i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_IN_PROGRESS: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_NOT_STARTED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(0i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SUCCEEDED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(2i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_PREPARING_HEALTH_CHECK: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(1i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_RESTORING_HEALTH_CHECK: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(2i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_NONE: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(0i32); -pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(2i32); -pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(8i32); -pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(4i32); -pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(0i32); -pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(16i32); -pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(1i32); -pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(8i32); -pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(2i32); -pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(64i32); -pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(1i32); -pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(16i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_ACTIVE: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(63i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_ALL: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(127i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_APPROVED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(8i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_CLAIMED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(2i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(64i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(1i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_DEFAULT: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(0i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(16i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(4i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_READY_TO_EXECUTE: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(24i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_RESTORING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(32i32); -pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(0i32); -pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(4i32); -pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(32i32); -pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); -pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); -pub const FABRIC_REPLICATOR_COPY_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(128i32); -pub const FABRIC_REPLICATOR_COPY_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(256i32); -pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_INITIAL_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(65536i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); -pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); -pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); -pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_MEMORY_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); -pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); -pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); -pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_INITIAL_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(8192i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); -pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); -pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); -pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); -pub const FABRIC_REPLICA_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = - FABRIC_REPLICA_OPEN_MODE(2i32); -pub const FABRIC_REPLICA_OPEN_MODE_INVALID: FABRIC_REPLICA_OPEN_MODE = - FABRIC_REPLICA_OPEN_MODE(0i32); -pub const FABRIC_REPLICA_OPEN_MODE_NEW: FABRIC_REPLICA_OPEN_MODE = FABRIC_REPLICA_OPEN_MODE(1i32); -pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); -pub const FABRIC_REPLICA_ROLE_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); -pub const FABRIC_REPLICA_ROLE_NONE: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(1i32); -pub const FABRIC_REPLICA_ROLE_PRIMARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(2i32); -pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); -pub const FABRIC_REPLICA_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(2i32); -pub const FABRIC_REPLICA_SET_QUORUM_INVALID: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(0i32); -pub const FABRIC_REPLICA_SET_WRITE_QUORUM: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(1i32); -pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); -pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); -pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); -pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_INVALID: - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(0i32); -pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(1i32); -pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_INVALID: FABRIC_RESTART_NODE_DESCRIPTION_KIND = - FABRIC_RESTART_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_RESTART_NODE_DESCRIPTION_KIND = FABRIC_RESTART_NODE_DESCRIPTION_KIND(1i32); -pub const FABRIC_RESTART_PARTITION_MODE_ALL_REPLICAS_OR_INSTANCES: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(1i32); -pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(0i32); -pub const FABRIC_RESTART_PARTITION_MODE_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(2i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_INVALID: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(0i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(3i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_AUTO: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(1i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_MANUAL: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(2i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_ENABLE_DELTAS: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1024i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FAILURE_ACTION: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(8i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FORCE_RESTART: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_RETRY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_STABLE: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(32i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_WAIT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_POLICY: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_NONE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(0i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_REPLICA_SET_CHECK_TIMEOUT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_DOMAIN_TIMEOUT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(256i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_HEALTH_POLICY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_MODE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); -pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(0i32); -pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = - FABRIC_SCALING_MECHANISM_KIND(0i32); -pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); -pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); -pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_PARTITION_LOAD: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(1i32); -pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_SERVICE_LOAD: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(2i32); -pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(0i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(3i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(255i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(0i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(2i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(1i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(4i32); -pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(1i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(1i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_ALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(2i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(0i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_NONALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(3i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_INVALID: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(0i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(2i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(1i32); -pub const FABRIC_SERVICE_KIND_INVALID: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(0i32); -pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); -pub const FABRIC_SERVICE_KIND_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_LOW: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(1i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_MEDIUM: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(2i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NAME_PREFIX: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NONE: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(0i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_GRANTED: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = - FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_INVALID: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = - FABRIC_SERVICE_PARTITION_ACCESS_STATUS(0i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NOT_PRIMARY: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(3i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NO_WRITE_QUORUM: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(4i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_RECONFIGURATION_PENDING: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(2i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(2i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(0i32); -pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(3i32); -pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(1i32); -pub const FABRIC_SERVICE_REPLICA_KIND_INVALID: FABRIC_SERVICE_REPLICA_KIND = - FABRIC_SERVICE_REPLICA_KIND(0i32); -pub const FABRIC_SERVICE_REPLICA_KIND_KEY_VALUE_STORE: FABRIC_SERVICE_REPLICA_KIND = - FABRIC_SERVICE_REPLICA_KIND(1i32); -pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(0i32); -pub const FABRIC_SERVICE_ROLE_STATEFUL_PRIMARY: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(2i32); -pub const FABRIC_SERVICE_ROLE_STATEFUL_SECONDARY: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(3i32); -pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(1i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_DISABLED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_INVALID: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(0i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_NOT_REGISTERED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(2i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_REGISTERED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(3i32); -pub const FABRIC_START_NODE_DESCRIPTION_KIND_INVALID: FABRIC_START_NODE_DESCRIPTION_KIND = - FABRIC_START_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_START_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_START_NODE_DESCRIPTION_KIND = - FABRIC_START_NODE_DESCRIPTION_KIND(1i32); -pub const FABRIC_STATEFUL_SERVICE_CORRELATIONS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(128i32); -pub const FABRIC_STATEFUL_SERVICE_METRICS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(256i32); -pub const FABRIC_STATEFUL_SERVICE_MIN_REPLICA_SET_SIZE: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); -pub const FABRIC_STATEFUL_SERVICE_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); -pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_STATEFUL_SERVICE_PLACEMENT_CONSTRAINTS: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); -pub const FABRIC_STATEFUL_SERVICE_POLICY_LIST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); -pub const FABRIC_STATEFUL_SERVICE_QUORUM_LOSS_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); -pub const FABRIC_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_NONE: FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(0i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_QUORUM_LOSS_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(2i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); -pub const FABRIC_STATEFUL_SERVICE_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -pub const FABRIC_STATEFUL_SERVICE_TARGET_REPLICA_SET_SIZE: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_STATELESS_SERVICE_CORRELATIONS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -pub const FABRIC_STATELESS_SERVICE_INSTANCE_COUNT: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_STATELESS_SERVICE_METRICS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); -pub const FABRIC_STATELESS_SERVICE_MOVE_COST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); -pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_STATELESS_SERVICE_PLACEMENT_CONSTRAINTS: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_STATELESS_SERVICE_POLICY_LIST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); -pub const FABRIC_STATELESS_SERVICE_SCALING_POLICY: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); -pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_INVALID: FABRIC_STOP_NODE_DESCRIPTION_KIND = - FABRIC_STOP_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_STOP_NODE_DESCRIPTION_KIND = - FABRIC_STOP_NODE_DESCRIPTION_KIND(1i32); -pub const FABRIC_STORE_BACKUP_OPTION_FULL: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(1i32); -pub const FABRIC_STORE_BACKUP_OPTION_INCREMENTAL: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(2i32); -pub const FABRIC_STORE_BACKUP_OPTION_TRUNCATE_LOGS_ONLY: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(3i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_COMPLETED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(3i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FAULTED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(4i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_INVALID: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(0i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_ROLLING_BACK: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(2i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(32i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_COMPLETED_SUCCESSFULLY: - FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(0i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_FAILED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(16i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(64i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_ROLLING_BACK: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(2i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(1i32); -pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(0i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(0i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(1i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(2i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_RESTART: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(4i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(1i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(2i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_RESTART_PARTITION: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(4i32); -pub const FABRIC_TEST_COMMAND_TYPE_START_NODE_TRANSITION: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(8i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_DEFAULT: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(0i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(3i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(0i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(2i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(1i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(2i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(1i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(0i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_OVERALL_UPGRADE_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(4i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_PROCESSING_FAILURE: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(5i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(3i32); -pub const FABRIC_UPGRADE_KIND_INVALID: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(0i32); -pub const FABRIC_UPGRADE_KIND_ROLLING: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(1i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(7i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(2i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(3i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(4i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(5i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RESOURCE_AVAILABILITY: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); -pub const FABRIC_UPGRADE_SAFETY_CHECK_KIND_INVALID: FABRIC_UPGRADE_SAFETY_CHECK_KIND = - FABRIC_UPGRADE_SAFETY_CHECK_KIND(0i32); -pub const FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(1i32); -pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); -pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(2i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(1i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(7i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(5i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(4i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(3i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(12i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(1i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(0i32); -pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(1i32); -pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(0i32); -pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(2i32); -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_DEFINITION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_TYPE_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPGRADE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPGRADE_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_CHAOS_EVENT_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CHAOS_EVENT_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_EVENT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_SCHEDULE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CHAOS_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_CHAOS_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CHAOS_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_STATUS").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CLIENT_ROLE(pub i32); -impl windows_core::TypeKind for FABRIC_CLIENT_ROLE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CLIENT_ROLE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CLIENT_ROLE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_CODE_PACKAGE_EVENT_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_DATA_LOSS_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_DATA_LOSS_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_DATA_LOSS_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_DATA_LOSS_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_DEPLOYMENT_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_DEPLOYMENT_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_DEPLOYMENT_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_DIAGNOSTICS_SINKS_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_DIAGNOSTICS_SINKS_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_DLLHOST_HOSTED_DLL_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); -impl windows_core::TypeKind for FABRIC_DLLHOST_ISOLATION_POLICY { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_DLLHOST_ISOLATION_POLICY { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_DLLHOST_ISOLATION_POLICY") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_ENTRY_POINT_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_ENTRY_POINT_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_ENTRY_POINT_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_ENUMERATION_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_ENUMERATION_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_ENUMERATION_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_ENUMERATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_ERROR_CODE(pub i32); -impl windows_core::TypeKind for FABRIC_ERROR_CODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_ERROR_CODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_ERROR_CODE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); -impl windows_core::TypeKind for FABRIC_EXEHOST_WORKING_FOLDER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_EXEHOST_WORKING_FOLDER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_EXEHOST_WORKING_FOLDER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_FAULT_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_FAULT_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_FAULT_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_FAULT_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_HEALTH_ENTITY_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HEALTH_ENTITY_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_ENTITY_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_HEALTH_EVALUATION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HEALTH_EVALUATION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_EVALUATION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HEALTH_REPORT_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_HEALTH_REPORT_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HEALTH_REPORT_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_REPORT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HEALTH_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HEALTH_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_STATE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HEALTH_STATE_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HOST_ISOLATION_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_HOST_ISOLATION_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HOST_ISOLATION_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HOST_ISOLATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_HOST_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_HOST_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_HOST_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_HOST_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(pub i32); -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_PROVIDER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_LOCAL_STORE_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_LOCAL_STORE_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_LOCAL_STORE_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_LOCAL_STORE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(pub i32); -impl windows_core::TypeKind for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_MONITORED_UPGRADE_FAILURE_ACTION") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_MOVE_COST(pub i32); -impl windows_core::TypeKind for FABRIC_MOVE_COST { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_MOVE_COST { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_COST").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NETWORK_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_NETWORK_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NETWORK_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NETWORK_STATUS_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_NETWORK_STATUS_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NETWORK_STATUS_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NETWORK_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_NETWORK_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NETWORK_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NODE_DEACTIVATION_INTENT(pub i32); -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_INTENT { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NODE_DEACTIVATION_INTENT { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_INTENT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NODE_DEACTIVATION_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NODE_DEACTIVATION_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NODE_DEACTIVATION_TASK_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_TASK_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NODE_TRANSITION_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_NODE_TRANSITION_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NODE_TRANSITION_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NODE_TRANSITION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_NODE_UPGRADE_PHASE(pub i32); -impl windows_core::TypeKind for FABRIC_NODE_UPGRADE_PHASE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_NODE_UPGRADE_PHASE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_NODE_UPGRADE_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_OPERATION_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_OPERATION_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_OPERATION_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_OPERATION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PACKAGE_SHARING_POLICY_SCOPE(pub i32); -impl windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PACKAGE_SHARING_POLICY_SCOPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_PARTITION_KEY_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PARTITION_KEY_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_KEY_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PARTITION_SCHEME(pub i32); -impl windows_core::TypeKind for FABRIC_PARTITION_SCHEME { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PARTITION_SCHEME { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_SCHEME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PARTITION_SELECTOR_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_PARTITION_SELECTOR_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PARTITION_SELECTOR_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_SELECTOR_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PLACEMENT_POLICY_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PLACEMENT_POLICY_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PLACEMENT_POLICY_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PROPERTY_BATCH_OPERATION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PROPERTY_BATCH_OPERATION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PROPERTY_TYPE_ID(pub i32); -impl windows_core::TypeKind for FABRIC_PROPERTY_TYPE_ID { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PROPERTY_TYPE_ID { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PROPERTY_TYPE_ID") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PROTECTION_LEVEL(pub i32); -impl windows_core::TypeKind for FABRIC_PROTECTION_LEVEL { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PROTECTION_LEVEL { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PROTECTION_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_PROVISION_APPLICATION_TYPE_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_PROVISION_APPLICATION_TYPE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_NODE_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_NODE_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_NODE_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_NODE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_NODE_STATUS_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_NODE_STATUS_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_NODE_STATUS_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_NODE_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_REPLICATOR_OPERATION_NAME(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_REPLICATOR_OPERATION_NAME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_SERVICE_OPERATION_NAME(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_SERVICE_OPERATION_NAME { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_SERVICE_OPERATION_NAME { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_OPERATION_NAME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_SERVICE_PARTITION_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_PARTITION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUERY_SERVICE_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_QUERY_SERVICE_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUERY_SERVICE_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_QUORUM_LOSS_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_QUORUM_LOSS_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_QUORUM_LOSS_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_QUORUM_LOSS_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_RECONFIGURATION_PHASE(pub i32); -impl windows_core::TypeKind for FABRIC_RECONFIGURATION_PHASE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_RECONFIGURATION_PHASE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_RECONFIGURATION_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_RECONFIGURATION_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_RECONFIGURATION_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_RECONFIGURATION_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_RECONFIGURATION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_IMPACT_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_IMPACT_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_IMPACT_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_IMPACT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_NODE_IMPACT_LEVEL(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_NODE_IMPACT_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TARGET_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TARGET_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TARGET_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TARGET_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_RESULT(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_RESULT { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_RESULT { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_RESULT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPAIR_TASK_STATE_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPAIR_TASK_STATE_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPLICATOR_SETTINGS_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPLICATOR_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPLICA_OPEN_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_REPLICA_OPEN_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPLICA_OPEN_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_OPEN_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPLICA_ROLE(pub i32); -impl windows_core::TypeKind for FABRIC_REPLICA_ROLE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPLICA_ROLE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_ROLE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPLICA_SET_QUORUM_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_REPLICA_SET_QUORUM_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPLICA_SET_QUORUM_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_SET_QUORUM_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_REPLICA_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_REPLICA_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_REPLICA_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_RESTART_PARTITION_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_RESTART_PARTITION_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_RESTART_PARTITION_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_PARTITION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_ROLLING_UPGRADE_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_ROLLING_UPGRADE_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SAFETY_CHECK_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SAFETY_CHECK_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SAFETY_CHECK_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SAFETY_CHECK_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SCALING_MECHANISM_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SCALING_MECHANISM_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SCALING_MECHANISM_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SCALING_MECHANISM_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SCALING_TRIGGER_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SCALING_TRIGGER_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SCALING_TRIGGER_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SCALING_TRIGGER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SECURITY_CREDENTIAL_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SECURITY_CREDENTIAL_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SECURITY_CREDENTIAL_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SECURITY_CREDENTIAL_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_CORRELATION_SCHEME(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_CORRELATION_SCHEME { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_CORRELATION_SCHEME { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_CORRELATION_SCHEME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_ENDPOINT_ROLE(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_ENDPOINT_ROLE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_ENDPOINT_ROLE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_ENDPOINT_ROLE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_KIND").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_LOAD_METRIC_WEIGHT(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_LOAD_METRIC_WEIGHT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_PARTITION_ACCESS_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PARTITION_ACCESS_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_PARTITION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_PARTITION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PARTITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_REPLICA_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_REPLICA_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_REPLICA_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(pub i32); -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_TYPE_REGISTRATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_START_NODE_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_START_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_STOP_NODE_DESCRIPTION_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_STOP_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_STORE_BACKUP_OPTION(pub i32); -impl windows_core::TypeKind for FABRIC_STORE_BACKUP_OPTION { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_STORE_BACKUP_OPTION { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_STORE_BACKUP_OPTION") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_TEST_COMMAND_PROGRESS_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_TEST_COMMAND_PROGRESS_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_TEST_COMMAND_PROGRESS_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_PROGRESS_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_TEST_COMMAND_STATE_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_TEST_COMMAND_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_TEST_COMMAND_STATE_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_TEST_COMMAND_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_TEST_COMMAND_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_TEST_COMMAND_TYPE_FILTER(pub i32); -impl windows_core::TypeKind for FABRIC_TEST_COMMAND_TYPE_FILTER { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE_FILTER { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_TYPE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_TRANSACTION_ISOLATION_LEVEL(pub i32); -impl windows_core::TypeKind for FABRIC_TRANSACTION_ISOLATION_LEVEL { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_TRANSACTION_ISOLATION_LEVEL { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_TRANSACTION_ISOLATION_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_UPGRADE_DOMAIN_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_DOMAIN_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_UPGRADE_FAILURE_REASON(pub i32); -impl windows_core::TypeKind for FABRIC_UPGRADE_FAILURE_REASON { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_UPGRADE_FAILURE_REASON { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_FAILURE_REASON") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_UPGRADE_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_UPGRADE_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_UPGRADE_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_KIND").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_UPGRADE_SAFETY_CHECK_KIND(pub i32); -impl windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_SAFETY_CHECK_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_UPGRADE_STATE(pub i32); -impl windows_core::TypeKind for FABRIC_UPGRADE_STATE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_UPGRADE_STATE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_X509_FIND_TYPE(pub i32); -impl windows_core::TypeKind for FABRIC_X509_FIND_TYPE { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_X509_FIND_TYPE { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_X509_FIND_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(PartialEq, Eq, Copy, Clone, Default)] -pub struct FABRIC_X509_STORE_LOCATION(pub i32); -impl windows_core::TypeKind for FABRIC_X509_STORE_LOCATION { - type TypeKind = windows_core::CopyType; -} -impl core::fmt::Debug for FABRIC_X509_STORE_LOCATION { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.debug_tuple("FABRIC_X509_STORE_LOCATION") - .field(&self.0) - .finish() - } -} #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { pub Authority: windows_core::PCWSTR, pub TenantId: windows_core::PCWSTR, @@ -3184,30 +10,24 @@ pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { pub ClientRedirect: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { pub LoginEndpoint: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATIONS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -3216,32 +36,50 @@ pub struct FABRIC_APPLICATIONS_HEALTH_EVALUATION { pub MaxPercentUnhealthyApplications: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATIONS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_CAPACITY_DESCRIPTION { pub MaximumNodes: u32, pub MinimumNodes: u32, pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND = + FABRIC_APPLICATION_DEFINITION_KIND(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_ALL: FABRIC_APPLICATION_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_DEFINITION_KIND_FILTER(65535i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_COMPOSE: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(2i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(4i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = + FABRIC_APPLICATION_DEFINITION_KIND(65535i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); +pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ApplicationTypeName: windows_core::PCWSTR, @@ -3249,30 +87,24 @@ pub struct FABRIC_APPLICATION_DESCRIPTION { pub ApplicationParameters: *const FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_DESCRIPTION_EX1 { pub ApplicationCapacity: *const FABRIC_APPLICATION_CAPACITY_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH { pub ApplicationName: FABRIC_URI, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -3281,16 +113,13 @@ pub struct FABRIC_APPLICATION_HEALTH { pub ServiceHealthStates: *const FABRIC_SERVICE_HEALTH_STATE_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -3298,89 +127,71 @@ pub struct FABRIC_APPLICATION_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_POLICY { - pub ConsiderWarningAsError: windows::Win32::Foundation::BOOLEAN, + pub ConsiderWarningAsError: bool, pub MaxPercentUnhealthyDeployedApplications: u8, pub DefaultServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, pub ServiceTypeHealthPolicyMap: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *mut FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { pub ApplicationName: FABRIC_URI, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, @@ -3389,74 +200,59 @@ pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub DeployedApplicationsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_REPORT { pub ApplicationName: FABRIC_URI, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE { pub ApplicationName: FABRIC_URI, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK { pub ApplicationName: FABRIC_URI, pub HealthState: FABRIC_HEALTH_STATE, @@ -3465,46 +261,37 @@ pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK { *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { pub ApplicationTypeName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ApplicationNameFilter: FABRIC_URI, @@ -3512,72 +299,57 @@ pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER { pub DeployedApplicationFilters: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { pub ApplicationTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: windows::Win32::Foundation::BOOLEAN, + pub ExcludeHealthStatistics: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_LOAD_INFORMATION { pub Name: windows_core::PCWSTR, pub MinimumNodes: u32, @@ -3586,30 +358,24 @@ pub struct FABRIC_APPLICATION_LOAD_INFORMATION { pub ApplicationLoadMetricInformation: *const FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_LOAD_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { pub ApplicationName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { pub Name: windows_core::PCWSTR, pub ReservationCapacity: i64, @@ -3617,31 +383,25 @@ pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { pub ApplicationLoad: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub LoadMetrics: *mut FABRIC_APPLICATION_LOAD_METRIC_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_METRIC_DESCRIPTION { pub Name: windows_core::PCWSTR, pub NodeReservationCapacity: u32, @@ -3649,216 +409,182 @@ pub struct FABRIC_APPLICATION_METRIC_DESCRIPTION { pub TotalApplicationCapacity: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_METRIC_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_METRIC_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_METRIC_LIST { pub Count: u32, pub Capacities: *mut FABRIC_APPLICATION_METRIC_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_APPLICATION_METRIC_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_METRIC_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { pub ServiceName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_NAME_QUERY_RESULT { pub ApplicationName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_NAME_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { pub NetworkName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_AUTOMATIC: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(2i32); +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_DEFAULT: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_INVALID: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(0i32); +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_MANUAL: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_PARAMETER { pub Name: windows_core::PCWSTR, pub Value: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_PARAMETER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_PARAMETER_LIST { pub Count: u32, pub Items: *mut FABRIC_APPLICATION_PARAMETER, } -impl windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_PARAMETER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { pub Users: *const FABRIC_SECURITY_USER_DESCRIPTION_LIST, pub Groups: *const FABRIC_SECURITY_GROUP_DESCRIPTION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION { pub ApplicationNameFilter: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { pub ApplicationTypeNameFilter: windows_core::PCWSTR, - pub ExcludeApplicationParameters: windows::Win32::Foundation::BOOLEAN, + pub ExcludeApplicationParameters: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { pub ApplicationDefinitionKindFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { pub MaxResults: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationName: FABRIC_URI, pub ApplicationTypeName: windows_core::PCWSTR, @@ -3868,59 +594,62 @@ pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { pub UpgradeTypeVersion: windows_core::PCWSTR, pub UpgradeParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { pub ApplicationDefinitionKind: FABRIC_APPLICATION_DEFINITION_KIND, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_STATUS(pub i32); +pub const FABRIC_APPLICATION_STATUS_CREATING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(3i32); +pub const FABRIC_APPLICATION_STATUS_DELETING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(4i32); +pub const FABRIC_APPLICATION_STATUS_FAILED: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(5i32); +pub const FABRIC_APPLICATION_STATUS_INVALID: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(0i32); +pub const FABRIC_APPLICATION_STATUS_READY: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(1i32); +pub const FABRIC_APPLICATION_STATUS_UPGRADING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -3930,136 +659,162 @@ pub struct FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { pub MaxPercentUnhealthyApplications: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_ALL: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(65535i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_COMPOSE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(2i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(4i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_PACKAGE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(1i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND(0i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_PACKAGE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { pub ApplicationTypeName: windows_core::PCWSTR, pub MaxPercentUnhealthyApplications: u8, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { pub ApplicationTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { pub ApplicationTypeName: windows_core::PCWSTR, pub ApplicationTypeVersion: windows_core::PCWSTR, pub DefaultParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { pub Status: FABRIC_APPLICATION_TYPE_STATUS, pub StatusDetails: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { pub ApplicationTypeDefinitionKind: FABRIC_APPLICATION_TYPE_DEFINITION_KIND, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); +pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(2i32); +pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(4i32); +pub const FABRIC_APPLICATION_TYPE_STATUS_INVALID: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(0i32); +pub const FABRIC_APPLICATION_TYPE_STATUS_PROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(1i32); +pub const FABRIC_APPLICATION_TYPE_STATUS_UNPROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION { pub Flags: u32, pub ApplicationName: FABRIC_URI, - pub RemoveApplicationCapacity: windows::Win32::Foundation::BOOLEAN, + pub RemoveApplicationCapacity: bool, pub MaximumNodes: u32, pub MinimumNodes: u32, pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MAXNODES: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(2i32); +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_METRICS: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(4i32); +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPGRADE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub TargetApplicationTypeVersion: windows_core::PCWSTR, @@ -4068,16 +823,20 @@ pub struct FABRIC_APPLICATION_UPGRADE_DESCRIPTION { pub UpgradePolicyDescription: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); +pub const FABRIC_APPLICATION_UPGRADE_KIND_INVALID: FABRIC_APPLICATION_UPGRADE_KIND = + FABRIC_APPLICATION_UPGRADE_KIND(0i32); +pub const FABRIC_APPLICATION_UPGRADE_KIND_ROLLING: FABRIC_APPLICATION_UPGRADE_KIND = + FABRIC_APPLICATION_UPGRADE_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS { pub UpgradeDescription: *const FABRIC_APPLICATION_UPGRADE_DESCRIPTION, pub UpgradeState: FABRIC_APPLICATION_UPGRADE_STATE, @@ -4090,16 +849,13 @@ pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS { pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPGRADE_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { pub StartTimestampUtc: windows::Win32::Foundation::FILETIME, pub FailureTimestampUtc: windows::Win32::Foundation::FILETIME, @@ -4107,30 +863,43 @@ pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { pub UpgradeStatusDetails: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(6i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_INVALID: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(0i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_COMPLETED: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(2i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(7i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(4i32); +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_PENDING: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, @@ -4138,168 +907,149 @@ pub struct FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { pub UpgradePolicyDescription: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { pub OperationId: windows_core::GUID, - pub Force: windows::Win32::Foundation::BOOLEAN, + pub Force: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_DESCRIPTION { pub ChaosParameters: *const FABRIC_CHAOS_PARAMETERS, pub Status: FABRIC_CHAOS_STATUS, pub ScheduleStatus: FABRIC_CHAOS_SCHEDULE_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_EVENT { pub Kind: FABRIC_CHAOS_EVENT_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_EVENTS_SEGMENT { pub ContinuationToken: windows_core::PCWSTR, pub History: *const FABRIC_CHAOS_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_EVENTS_SEGMENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { pub Filter: *const FABRIC_CHAOS_EVENTS_SEGMENT_FILTER, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { pub StartTimeUtc: windows::Win32::Foundation::FILETIME, pub EndTimeUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); +pub const FABRIC_CHAOS_EVENT_KIND_EXECUTING_FAULTS: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(2i32); +pub const FABRIC_CHAOS_EVENT_KIND_INVALID: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(0i32); +pub const FABRIC_CHAOS_EVENT_KIND_STARTED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(1i32); +pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(6i32); +pub const FABRIC_CHAOS_EVENT_KIND_TEST_ERROR: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(5i32); +pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(4i32); +pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_EVENT_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_EVENT, } -impl windows_core::TypeKind for FABRIC_CHAOS_EVENT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_EVENT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_PARAMETERS { pub MaxClusterStabilizationTimeoutInSeconds: u32, pub MaxConcurrentFaults: u32, - pub EnableMoveReplicaFaults: windows::Win32::Foundation::BOOLEAN, + pub EnableMoveReplicaFaults: bool, pub TimeToRunInSeconds: u64, pub WaitTimeBetweenIterationsInSeconds: u32, pub WaitTimeBetweenFaultsInSeconds: u32, pub Context: *const FABRIC_EVENT_CONTEXT_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_PARAMETERS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_PARAMETERS_EX1 { pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_PARAMETERS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_PARAMETERS_EX2 { pub ChaosTargetFilter: *const FABRIC_CHAOS_TARGET_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_PARAMETERS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_REPORT { pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Status: FABRIC_CHAOS_STATUS, @@ -4307,31 +1057,25 @@ pub struct FABRIC_CHAOS_REPORT { pub History: *const FABRIC_CHAOS_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_REPORT_FILTER { pub StartTimeUtc: windows::Win32::Foundation::FILETIME, pub EndTimeUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_REPORT_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_REPORT_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE { pub StartDate: windows::Win32::Foundation::FILETIME, pub ExpiryDate: windows::Win32::Foundation::FILETIME, @@ -4339,228 +1083,202 @@ pub struct FABRIC_CHAOS_SCHEDULE { pub Jobs: *const FABRIC_CHAOS_SCHEDULE_JOB_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { pub Name: windows_core::PCWSTR, pub Parameters: *const FABRIC_CHAOS_PARAMETERS, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_DESCRIPTION { pub Version: u32, pub Schedule: *const FABRIC_CHAOS_SCHEDULE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_JOB { pub ChaosParameters: windows_core::PCWSTR, pub Days: *const FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS, pub Times: *const FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_JOB { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - pub Sunday: windows::Win32::Foundation::BOOLEAN, - pub Monday: windows::Win32::Foundation::BOOLEAN, - pub Tuesday: windows::Win32::Foundation::BOOLEAN, - pub Wednesday: windows::Win32::Foundation::BOOLEAN, - pub Thursday: windows::Win32::Foundation::BOOLEAN, - pub Friday: windows::Win32::Foundation::BOOLEAN, - pub Saturday: windows::Win32::Foundation::BOOLEAN, + pub Sunday: bool, + pub Monday: bool, + pub Tuesday: bool, + pub Wednesday: bool, + pub Thursday: bool, + pub Friday: bool, + pub Saturday: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_JOB_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_JOB, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_JOB_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); +pub const FABRIC_CHAOS_SCHEDULE_STATUS_ACTIVE: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(1i32); +pub const FABRIC_CHAOS_SCHEDULE_STATUS_EXPIRED: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(2i32); +pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(0i32); +pub const FABRIC_CHAOS_SCHEDULE_STATUS_PENDING: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(3i32); +pub const FABRIC_CHAOS_SCHEDULE_STATUS_STOPPED: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { pub StartTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, pub EndTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SCHEDULE_TIME_UTC { pub Hour: u32, pub Minute: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SCHEDULE_TIME_UTC { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { pub ChaosScheduleDescription: *const FABRIC_CHAOS_SCHEDULE_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CHAOS_STATUS(pub i32); +pub const FABRIC_CHAOS_STATUS_INVALID: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(0i32); +pub const FABRIC_CHAOS_STATUS_RUNNING: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(1i32); +pub const FABRIC_CHAOS_STATUS_STOPPED: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHAOS_TARGET_FILTER { pub NodeTypeInclusionList: *const FABRIC_STRING_LIST, pub ApplicationInclusionList: *const FABRIC_STRING_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHAOS_TARGET_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHAOS_TARGET_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, - pub ExistenceCheck: windows::Win32::Foundation::BOOLEAN, + pub ExistenceCheck: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, pub SequenceNumber: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CHECK_VALUE_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, pub PropertyValue: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLAIMS_CREDENTIALS { pub ServerCommonNameCount: u32, pub ServerCommonNames: *const windows_core::PCWSTR, @@ -4570,45 +1288,49 @@ pub struct FABRIC_CLAIMS_CREDENTIALS { pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLAIMS_CREDENTIALS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLAIMS_CREDENTIALS_EX1 { pub ServerThumbprintCount: u32, pub ServerThumbprints: *const windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLAIMS_CREDENTIALS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA { pub Kind: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLAIMS_RETRIEVAL_METADATA { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLAIMS_RETRIEVAL_METADATA { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); +pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_AAD: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = + FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(1i32); +pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = + FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CLIENT_ROLE(pub i32); +pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); +pub const FABRIC_CLIENT_ROLE_UNKNOWN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(0i32); +pub const FABRIC_CLIENT_ROLE_USER: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLIENT_SETTINGS { pub PartitionLocationCacheLimit: u32, pub ServiceChangePollIntervalInSeconds: u32, @@ -4618,105 +1340,84 @@ pub struct FABRIC_CLIENT_SETTINGS { pub HealthReportSendIntervalInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLIENT_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLIENT_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLIENT_SETTINGS_EX1 { pub ClientFriendlyName: windows_core::PCWSTR, pub PartitionLocationCacheBucketCount: u32, pub HealthReportRetrySendIntervalInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLIENT_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLIENT_SETTINGS_EX2 { pub NotificationGatewayConnectionTimeoutInSeconds: u32, pub NotificationCacheUpdateTimeoutInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLIENT_SETTINGS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLIENT_SETTINGS_EX3 { pub AuthTokenBufferSize: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLIENT_SETTINGS_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLIENT_SETTINGS_EX4 { pub ConnectionIdleTimeoutInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLIENT_SETTINGS_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH { pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_CHUNK { pub HealthState: FABRIC_HEALTH_STATE, pub NodeHealthStateChunks: *const FABRIC_NODE_HEALTH_STATE_CHUNK_LIST, pub ApplicationHealthStateChunks: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, @@ -4724,90 +1425,72 @@ pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { pub NodeFilters: *const FABRIC_NODE_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_EX1 { pub NodeHealthStates: *const FABRIC_NODE_HEALTH_STATE_LIST, pub ApplicationHealthStates: *const FABRIC_APPLICATION_HEALTH_STATE_LIST, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_EX2 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_EX3 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_POLICY { - pub ConsiderWarningAsError: windows::Win32::Foundation::BOOLEAN, + pub ConsiderWarningAsError: bool, pub MaxPercentUnhealthyNodes: u8, pub MaxPercentUnhealthyApplications: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_POLICY_EX1 { pub ApplicationTypeHealthPolicyMap: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, @@ -4816,138 +1499,111 @@ pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { pub ApplicationsFilter: *const FABRIC_APPLICATION_HEALTH_STATES_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_REPORT { pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: windows::Win32::Foundation::BOOLEAN, - pub IncludeSystemApplicationHealthStatistics: windows::Win32::Foundation::BOOLEAN, + pub ExcludeHealthStatistics: bool, + pub IncludeSystemApplicationHealthStatistics: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_LOAD_INFORMATION { pub LastBalancingStartTimeUtc: windows::Win32::Foundation::FILETIME, pub LastBalancingEndTimeUtc: windows::Win32::Foundation::FILETIME, pub LoadMetricInformation: *const FABRIC_LOAD_METRIC_INFORMATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_LOAD_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_LOAD_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { pub ClusterManifestVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { pub MaxPercentDeltaUnhealthyNodes: u8, pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Version: windows_core::PCWSTR, pub ServiceManifestName: windows_core::PCWSTR, pub ServiceManifestVersion: windows_core::PCWSTR, - pub IsShared: windows::Win32::Foundation::BOOLEAN, + pub IsShared: bool, pub SetupEntryPoint: *mut FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION, pub EntryPoint: *mut FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_CODE_PACKAGE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT { pub EntryPointLocation: windows_core::PCWSTR, pub ProcessId: i64, @@ -4957,44 +1613,48 @@ pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT { pub Statistics: *const FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_ENTRY_POINT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { pub Kind: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { pub CodePackageInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_EXEHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(2i32); +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_INVALID: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(0i32); +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_NONE: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { pub LastExitCode: u32, pub LastActivationUtc: windows::Win32::Foundation::FILETIME, @@ -5009,16 +1669,13 @@ pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { pub ContinuousExitFailureCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { pub CodePackageName: windows_core::PCWSTR, pub IsSetupEntryPoint: windows::Win32::Foundation::BOOL, @@ -5029,16 +1686,30 @@ pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { pub Properties: *mut FABRIC_STRING_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_INVALID: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(0i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_READY: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(3i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STOPPED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(5i32); +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_TERMINATED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(6i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Version: windows_core::PCWSTR, @@ -5046,134 +1717,113 @@ pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { pub ServiceManifestVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_PARAMETER { pub Name: windows_core::PCWSTR, pub Value: windows_core::PCWSTR, - pub MustOverride: windows::Win32::Foundation::BOOLEAN, - pub IsEncrypted: windows::Win32::Foundation::BOOLEAN, + pub MustOverride: bool, + pub IsEncrypted: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_PARAMETER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_PARAMETER_EX1 { pub Type: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_PARAMETER_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_PARAMETER_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_PARAMETER, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_PARAMETER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_SECTION { pub Name: windows_core::PCWSTR, pub Parameters: *const FABRIC_CONFIGURATION_PARAMETER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_SECTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_SECTION_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_SECTION, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_SECTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONFIGURATION_SETTINGS { pub Sections: *const FABRIC_CONFIGURATION_SECTION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONFIGURATION_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONFIGURATION_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { pub ImageName: windows_core::PCWSTR, pub Commands: windows_core::PCWSTR, pub EntryPoint: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_DATA_LOSS_MODE(pub i32); +pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); +pub const FABRIC_DATA_LOSS_MODE_INVALID: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(0i32); +pub const FABRIC_DATA_LOSS_MODE_PARTIAL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DATA_PACKAGE_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Version: windows_core::PCWSTR, @@ -5181,88 +1831,70 @@ pub struct FABRIC_DATA_PACKAGE_DESCRIPTION { pub ServiceManifestVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DATA_PACKAGE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_DATA_PACKAGE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DELETE_APPLICATION_DESCRIPTION { pub ApplicationName: FABRIC_URI, - pub ForceDelete: windows::Win32::Foundation::BOOLEAN, + pub ForceDelete: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DELETE_APPLICATION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DELETE_APPLICATION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DELETE_NETWORK_DESCRIPTION { pub NetworkName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DELETE_NETWORK_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DELETE_NETWORK_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DELETE_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DELETE_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DELETE_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DELETE_SERVICE_DESCRIPTION { pub ServiceName: FABRIC_URI, - pub ForceDelete: windows::Win32::Foundation::BOOLEAN, + pub ForceDelete: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DELETE_SERVICE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DELETE_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -5273,16 +1905,13 @@ pub struct FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -5291,16 +1920,13 @@ pub struct FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { pub MaxPercentUnhealthyDeployedApplications: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH { pub ApplicationName: FABRIC_URI, pub NodeName: windows_core::PCWSTR, @@ -5310,16 +1936,13 @@ pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH { *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -5328,44 +1951,35 @@ pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub NodeName: windows_core::PCWSTR, @@ -5374,76 +1988,61 @@ pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub DeployedServicePackagesFilter: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { pub ApplicationName: FABRIC_URI, pub NodeName: windows_core::PCWSTR, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { pub ApplicationName: FABRIC_URI, pub NodeName: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { pub NodeName: windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, @@ -5451,32 +2050,26 @@ pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub NodeNameFilter: windows_core::PCWSTR, @@ -5484,133 +2077,106 @@ pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: windows::Win32::Foundation::BOOLEAN, + pub ExcludeHealthStatistics: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationNameFilter: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationName: FABRIC_URI, pub ApplicationTypeName: windows_core::PCWSTR, pub DeployedApplicationStatus: FABRIC_DEPLOYMENT_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { pub WorkDirectory: windows_core::PCWSTR, pub LogDirectory: windows_core::PCWSTR, pub TempDirectory: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -5618,16 +2184,13 @@ pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { pub CodePackageNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { pub CodePackageName: windows_core::PCWSTR, pub CodePackageVersion: windows_core::PCWSTR, @@ -5638,46 +2201,37 @@ pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { pub EntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub HostType: FABRIC_HOST_TYPE, pub HostIsolationMode: FABRIC_HOST_ISOLATION_MODE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -5686,30 +2240,24 @@ pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { pub CodePackageInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub NetworkName: windows_core::PCWSTR, @@ -5719,16 +2267,13 @@ pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { pub ApplicationName: FABRIC_URI, pub NetworkName: windows_core::PCWSTR, @@ -5740,73 +2285,58 @@ pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { pub ContainerId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { pub NetworkName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -5814,16 +2344,13 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { pub ApplicationName: FABRIC_URI, pub ServiceManifestName: windows_core::PCWSTR, @@ -5832,16 +2359,13 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -5851,58 +2375,46 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub NodeName: windows_core::PCWSTR, @@ -5911,30 +2423,24 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { pub ApplicationName: FABRIC_URI, pub ServiceManifestName: windows_core::PCWSTR, @@ -5942,30 +2448,24 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { pub ApplicationName: FABRIC_URI, pub ServiceManifestName: windows_core::PCWSTR, @@ -5973,236 +2473,188 @@ pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { pub ServiceManifestName: windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ServiceManifestNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { pub ServicePackageActivationIdFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, pub ServiceManifestNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { pub ServiceManifestName: windows_core::PCWSTR, pub ServiceManifestVersion: windows_core::PCWSTR, pub DeployedServicePackageStatus: FABRIC_DEPLOYMENT_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub PartitionId: windows_core::GUID, pub ReplicaId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -6210,44 +2662,35 @@ pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { pub PartitionIdFilter: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -6255,16 +2698,13 @@ pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { pub ServiceTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { pub ServiceTypeName: windows_core::PCWSTR, pub CodePackageName: windows_core::PCWSTR, @@ -6272,44 +2712,35 @@ pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { pub Status: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, @@ -6323,48 +2754,35 @@ pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { pub ReplicatorStatus: *mut FABRIC_REPLICATOR_STATUS_QUERY_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { pub ReplicaStatus: *mut FABRIC_REPLICA_STATUS_QUERY_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { pub DeployedServiceReplica: *mut FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub ServiceTypeName: windows_core::PCWSTR, @@ -6377,59 +2795,47 @@ pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub Address: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { pub ServiceManifestName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { pub HostProcessId: i64, pub ReconfigurationInformation: *mut FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, @@ -6439,34 +2845,24 @@ pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM -{ - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { pub DeployedServiceReplica: *mut FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub ServiceTypeName: windows_core::PCWSTR, @@ -6478,129 +2874,144 @@ pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub Address: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { pub ServiceManifestName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { pub HostProcessId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); +pub const FABRIC_DEPLOYMENT_STATUS_ACTIVATING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(2i32); +pub const FABRIC_DEPLOYMENT_STATUS_ACTIVE: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(3i32); +pub const FABRIC_DEPLOYMENT_STATUS_DEACTIVATING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(5i32); +pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(1i32); +pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(0i32); +pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(4i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); +pub const FABRIC_DIAGNOSTICS_SINKS_KIND_AZUREINTERNAL: FABRIC_DIAGNOSTICS_SINKS_KIND = + FABRIC_DIAGNOSTICS_SINKS_KIND(1i32); +pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = + FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { pub IsolationPolicyType: FABRIC_DLLHOST_ISOLATION_POLICY, pub HostedDlls: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { pub Kind: FABRIC_DLLHOST_HOSTED_DLL_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { pub Count: u32, pub Items: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); +pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_INVALID: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(0i32); +pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_MANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(2i32); +pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { pub AssemblyName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { pub DllName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); +pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(2i32); +pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_PROCESS: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(3i32); +pub const FABRIC_DLLHOST_ISOLATION_POLICY_INVALID: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(0i32); +pub const FABRIC_DLLHOST_ISOLATION_POLICY_SHARED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Protocol: windows_core::PCWSTR, @@ -6609,90 +3020,112 @@ pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { pub CertificateName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { pub UriScheme: windows_core::PCWSTR, pub PathSuffix: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { pub CodePackageName: windows_core::PCWSTR, pub IpAddressOrFqdn: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { pub EntityKind: FABRIC_HEALTH_ENTITY_KIND, pub HealthStateCount: *const FABRIC_HEALTH_STATE_COUNT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); +pub const FABRIC_ENTRY_POINT_STATUS_INVALID: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(0i32); +pub const FABRIC_ENTRY_POINT_STATUS_PENDING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(1i32); +pub const FABRIC_ENTRY_POINT_STATUS_STARTED: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(3i32); +pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(2i32); +pub const FABRIC_ENTRY_POINT_STATUS_STOPPED: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(5i32); +pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(4i32); +pub const FABRIC_ENUMERATION_BEST_EFFORT_FINISHED: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(4i32); +pub const FABRIC_ENUMERATION_BEST_EFFORT_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(5i32); +pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(1i32); +pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(8i32); +pub const FABRIC_ENUMERATION_CONSISTENT_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(10i32); +pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(2i32); +pub const FABRIC_ENUMERATION_FINISHED_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(12i32); +pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(0i32); +pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(3i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_ENUMERATION_STATUS(pub i32); +pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(15i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EPOCH { pub DataLossNumber: i64, pub ConfigurationNumber: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EPOCH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EPOCH { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_ERROR_CODE(pub i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS { pub DbFolderPath: windows_core::PCWSTR, pub LogFileSizeInKB: i32, @@ -6702,226 +3135,499 @@ pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS { pub MaxAsyncCommitDelayInMilliseconds: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - pub EnableIncrementalBackup: windows::Win32::Foundation::BOOLEAN, + pub EnableIncrementalBackup: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { pub MaxCacheSizeInMB: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { pub MaxDefragFrequencyInMinutes: i32, pub DefragThresholdInMB: i32, pub DatabasePageSizeInKB: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { pub CompactionThresholdInMB: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { pub IntrinsicValueThresholdInBytes: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - pub EnableOverwriteOnUpdate: windows::Win32::Foundation::BOOLEAN, + pub EnableOverwriteOnUpdate: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EVENT_CONTEXT_MAP { pub Count: u32, pub Items: *mut FABRIC_EVENT_CONTEXT_MAP_ITEM, } -impl windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EVENT_CONTEXT_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EVENT_CONTEXT_MAP_ITEM { pub Key: windows_core::PCWSTR, pub Value: windows_core::PCWSTR, } -impl windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EVENT_CONTEXT_MAP_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EVENT_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvent: *const FABRIC_HEALTH_EVENT, - pub ConsiderWarningAsError: windows::Win32::Foundation::BOOLEAN, + pub ConsiderWarningAsError: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EVENT_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EVENT_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EXECUTING_FAULTS_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub Faults: *const FABRIC_STRING_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EXECUTING_FAULTS_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EXECUTING_FAULTS_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { pub Program: windows_core::PCWSTR, pub Arguments: windows_core::PCWSTR, pub WorkingFolder: FABRIC_EXEHOST_WORKING_FOLDER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { pub PeriodicIntervalInSeconds: u32, - pub ConsoleRedirectionEnabled: windows::Win32::Foundation::BOOLEAN, + pub ConsoleRedirectionEnabled: bool, pub ConsoleRedirectionFileRetentionCount: u32, pub ConsoleRedirectionFileMaxSizeInKb: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - pub IsExternalExecutable: windows::Win32::Foundation::BOOLEAN, + pub IsExternalExecutable: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); +pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(3i32); +pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(2i32); +pub const FABRIC_EXEHOST_WORKING_FOLDER_INVALID: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(0i32); +pub const FABRIC_EXEHOST_WORKING_FOLDER_WORK: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { pub ApplicationTypeName: windows_core::PCWSTR, pub ApplicationTypeVersion: windows_core::PCWSTR, pub ApplicationPackageDownloadUri: windows_core::PCWSTR, - pub Async: windows::Win32::Foundation::BOOLEAN, + pub Async: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017662i32); +pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); +pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017764i32); +pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017721i32); +pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); +pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017722i32); +pub const FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017767i32); +pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017765i32); +pub const FABRIC_E_APPLICATION_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017766i32); +pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017768i32); +pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017648i32); +pub const FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017762i32); +pub const FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017761i32); +pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017601i32); +pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); +pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017603i32); +pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017664i32); +pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); +pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); +pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); +pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017610i32); +pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017611i32); +pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); +pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017594i32); +pub const FABRIC_E_CERTIFICATE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017641i32); +pub const FABRIC_E_CHAOS_ALREADY_RUNNING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017640i32); +pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); +pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017733i32); +pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); +pub const FABRIC_E_COMPOSE_DEPLOYMENT_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017619i32); +pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017618i32); +pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017589i32); +pub const FABRIC_E_CONFIGURATION_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017735i32); +pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017756i32); +pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017757i32); +pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); +pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017646i32); +pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); +pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017659i32); +pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017650i32); +pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); +pub const FABRIC_E_CORRUPTED_IMAGE_STORE_OBJECT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017723i32); +pub const FABRIC_E_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017595i32); +pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017734i32); +pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); +pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017647i32); +pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); +pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); +pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); +pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); +pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017671i32); +pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); +pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); +pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); +pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); +pub const FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017716i32); +pub const FABRIC_E_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017639i32); +pub const FABRIC_E_FABRIC_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017715i32); +pub const FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017714i32); +pub const FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017713i32); +pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017717i32); +pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); +pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017719i32); +pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017607i32); +pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); +pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); +pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017663i32); +pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); +pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017705i32); +pub const FABRIC_E_HEALTH_MAX_REPORTS_REACHED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017712i32); +pub const FABRIC_E_HEALTH_STALE_REPORT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017711i32); +pub const FABRIC_E_IMAGEBUILDER_ACCESS_DENIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017693i32); +pub const FABRIC_E_IMAGEBUILDER_INVALID_MSI_FILE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017692i32); +pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017642i32); +pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); +pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017720i32); +pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017754i32); +pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); +pub const FABRIC_E_INSTANCE_ID_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017680i32); +pub const FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017677i32); +pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); +pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017738i32); +pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); +pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); +pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); +pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017674i32); +pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); +pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); +pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017746i32); +pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); +pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); +pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); +pub const FABRIC_E_INVALID_FOR_STATEFUL_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017617i32); +pub const FABRIC_E_INVALID_FOR_STATELESS_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017616i32); +pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); +pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); +pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); +pub const FABRIC_E_INVALID_PACKAGE_SHARING_POLICY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017676i32); +pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); +pub const FABRIC_E_INVALID_PARTITION_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017667i32); +pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017624i32); +pub const FABRIC_E_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017741i32); +pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017670i32); +pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017623i32); +pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); +pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); +pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017600i32); +pub const FABRIC_E_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); +pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); +pub const FABRIC_E_INVALID_TEST_COMMAND_STATE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017645i32); +pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017614i32); +pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017745i32); +pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017657i32); +pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); +pub const FABRIC_E_INVALID_X509_STORE_LOCATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017744i32); +pub const FABRIC_E_INVALID_X509_STORE_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017743i32); +pub const FABRIC_E_INVALID_X509_THUMBPRINT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017742i32); +pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); +pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); +pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); +pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); +pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017668i32); +pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); +pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); +pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017658i32); +pub const FABRIC_E_NAME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017792i32); +pub const FABRIC_E_NAME_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017791i32); +pub const FABRIC_E_NAME_NOT_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017790i32); +pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); +pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); +pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017678i32); +pub const FABRIC_E_NODE_IS_DOWN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017633i32); +pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); +pub const FABRIC_E_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); +pub const FABRIC_E_NODE_TRANSITION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017632i32); +pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); +pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); +pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); +pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); +pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); +pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); +pub const FABRIC_E_ONLY_VALID_FOR_STATEFUL_PERSISTENT_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017615i32); +pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017784i32); +pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017590i32); +pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); +pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); +pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017675i32); +pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017666i32); +pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); +pub const FABRIC_E_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); +pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); +pub const FABRIC_E_PROPERTY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017783i32); +pub const FABRIC_E_RECONFIGURATION_PENDING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017782i32); +pub const FABRIC_E_RELIABLE_SESSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017702i32); +pub const FABRIC_E_RELIABLE_SESSION_CANNOT_CONNECT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017701i32); +pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017683i32); +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017698i32); +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017700i32); +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017697i32); +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017696i32); +pub const FABRIC_E_RELIABLE_SESSION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017687i32); +pub const FABRIC_E_RELIABLE_SESSION_QUEUE_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017686i32); +pub const FABRIC_E_RELIABLE_SESSION_QUOTA_EXCEEDED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017685i32); +pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017699i32); +pub const FABRIC_E_RELIABLE_SESSION_SERVICE_FAULTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017684i32); +pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017703i32); +pub const FABRIC_E_REPAIR_TASK_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017689i32); +pub const FABRIC_E_REPAIR_TASK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017688i32); +pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017681i32); +pub const FABRIC_E_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017781i32); +pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017752i32); +pub const FABRIC_E_RESTORE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017609i32); +pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017628i32); +pub const FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017608i32); +pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017665i32); +pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); +pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017588i32); +pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017592i32); +pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017708i32); +pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017660i32); +pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017776i32); +pub const FABRIC_E_SERVICE_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017780i32); +pub const FABRIC_E_SERVICE_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017779i32); +pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017732i32); +pub const FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017751i32); +pub const FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017750i32); +pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017704i32); +pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017777i32); +pub const FABRIC_E_SERVICE_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); +pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); +pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017775i32); +pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); +pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017760i32); +pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017774i32); +pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017758i32); +pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017599i32); +pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017598i32); +pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017591i32); +pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); +pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017644i32); +pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); +pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); +pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017690i32); +pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); +pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017679i32); +pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); +pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017625i32); +pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017626i32); +pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017654i32); +pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); +pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); +pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017656i32); +pub const FABRIC_E_VOLUME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017597i32); +pub const FABRIC_E_VOLUME_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017596i32); +pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_FAULT_TYPE(pub i32); +pub const FABRIC_FAULT_TYPE_INVALID: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(0i32); +pub const FABRIC_FAULT_TYPE_PERMANENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(1i32); +pub const FABRIC_FAULT_TYPE_TRANSIENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_GATEWAY_INFORMATION { pub NodeAddress: windows_core::PCWSTR, pub NodeId: FABRIC_NODE_ID, @@ -6929,135 +3635,176 @@ pub struct FABRIC_GATEWAY_INFORMATION { pub NodeName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_GATEWAY_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_GATEWAY_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_GET_CHAOS_REPORT_DESCRIPTION { pub Filter: *mut FABRIC_CHAOS_REPORT_FILTER, pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_GET_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, - pub IncludeValue: windows::Win32::Foundation::BOOLEAN, + pub IncludeValue: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_GET_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_GET_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); +pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(4i32); +pub const FABRIC_HEALTH_ENTITY_KIND_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(8i32); +pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(6i32); +pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(7i32); +pub const FABRIC_HEALTH_ENTITY_KIND_INVALID: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(0i32); +pub const FABRIC_HEALTH_ENTITY_KIND_NODE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(1i32); +pub const FABRIC_HEALTH_ENTITY_KIND_PARTITION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(2i32); +pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(5i32); +pub const FABRIC_HEALTH_ENTITY_KIND_SERVICE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVALUATION { pub Kind: FABRIC_HEALTH_EVALUATION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(18i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(8i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION_TYPE_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(19i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(17i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(5i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(16i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(4i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(1i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(0i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(12i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(7i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(14i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(3i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(13i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(2i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(15i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(6i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_SYSTEM_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(9i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DELTA_NODES_CHECK: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(20i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(10i32); +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(11i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVALUATION_LIST { pub Count: u32, pub Items: *const FABRIC_HEALTH_EVALUATION, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVALUATION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVALUATION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVENT { pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub SourceUtcTimestamp: windows::Win32::Foundation::FILETIME, pub LastModifiedUtcTimestamp: windows::Win32::Foundation::FILETIME, - pub IsExpired: windows::Win32::Foundation::BOOLEAN, + pub IsExpired: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVENTS_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVENTS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVENTS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVENT_EX1 { pub LastOkTransitionAt: windows::Win32::Foundation::FILETIME, pub LastWarningTransitionAt: windows::Win32::Foundation::FILETIME, pub LastErrorTransitionAt: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVENT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVENT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_EVENT_LIST { pub Count: u32, pub Items: *const FABRIC_HEALTH_EVENT, } -impl windows_core::TypeKind for FABRIC_HEALTH_EVENT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_EVENT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_INFORMATION { pub SourceId: windows_core::PCWSTR, pub Property: windows_core::PCWSTR, @@ -7065,109 +3812,169 @@ pub struct FABRIC_HEALTH_INFORMATION { pub State: FABRIC_HEALTH_STATE, pub Description: windows_core::PCWSTR, pub SequenceNumber: i64, - pub RemoveWhenExpired: windows::Win32::Foundation::BOOLEAN, + pub RemoveWhenExpired: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_REPORT { pub Kind: FABRIC_HEALTH_REPORT_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HEALTH_REPORT_KIND(pub i32); +pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(6i32); +pub const FABRIC_HEALTH_REPORT_KIND_CLUSTER: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(9i32); +pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(7i32); +pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(8i32); +pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(0i32); +pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(4i32); +pub const FABRIC_HEALTH_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(3i32); +pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(5i32); +pub const FABRIC_HEALTH_REPORT_KIND_STATEFUL_SERVICE_REPLICA: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(1i32); +pub const FABRIC_HEALTH_REPORT_KIND_STATELESS_SERVICE_INSTANCE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_REPORT_SEND_OPTIONS { - pub Immediate: windows::Win32::Foundation::BOOLEAN, + pub Immediate: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HEALTH_STATE(pub i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_STATE_COUNT { pub OkCount: u32, pub WarningCount: u32, pub ErrorCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_STATE_COUNT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_STATE_COUNT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HEALTH_STATE_FILTER(pub i32); +pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(65535i32); +pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(0i32); +pub const FABRIC_HEALTH_STATE_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(8i32); +pub const FABRIC_HEALTH_STATE_FILTER_NONE: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(1i32); +pub const FABRIC_HEALTH_STATE_FILTER_OK: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(2i32); +pub const FABRIC_HEALTH_STATE_FILTER_WARNING: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(4i32); +pub const FABRIC_HEALTH_STATE_INVALID: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(0i32); +pub const FABRIC_HEALTH_STATE_OK: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(1i32); +pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); +pub const FABRIC_HEALTH_STATE_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_HEALTH_STATISTICS { pub Count: u32, pub Items: *const FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_HEALTH_STATISTICS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_HEALTH_STATISTICS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HOST_ISOLATION_MODE(pub i32); +pub const FABRIC_HOST_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(2i32); +pub const FABRIC_HOST_ISOLATION_MODE_NONE: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(0i32); +pub const FABRIC_HOST_ISOLATION_MODE_PROCESS: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_HOST_TYPE(pub i32); +pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); +pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); +pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); +pub const FABRIC_IGNORE_SEQUENCE_NUMBER_CHECK: u32 = 0u32; +pub const FABRIC_INFINITE_DURATION: u32 = 4294967295u32; #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_INT64_RANGE_PARTITION_INFORMATION { pub Id: windows_core::GUID, pub LowKey: i64, pub HighKey: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_INT64_RANGE_PARTITION_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_INVALID_ATOMIC_GROUP_ID: i32 = -1i32; +pub const FABRIC_INVALID_INSTANCE_ID: i32 = -1i32; +pub const FABRIC_INVALID_NODE_INSTANCE_ID: u32 = 0u32; +pub const FABRIC_INVALID_OPERATION_INDEX: u32 = 4294967295u32; +pub const FABRIC_INVALID_REPLICA_ID: i32 = -1i32; +pub const FABRIC_INVALID_SEQUENCE_NUMBER: i32 = -1i32; +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(pub i32); +pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_DEFAULT: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(0i32); +pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_LOGICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(2i32); +pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_PHYSICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(1i32); +pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_REBUILD: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_ITEM { pub Metadata: *const FABRIC_KEY_VALUE_STORE_ITEM_METADATA, pub Value: *mut u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA { pub Key: windows_core::PCWSTR, pub ValueSizeInBytes: i32, @@ -7175,131 +3982,154 @@ pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA { pub LastModifiedUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { pub LastModifiedOnPrimaryUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(pub i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(0i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_MIGRATION: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(1i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_RESTORE_SOURCE_BACKUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_SOURCE_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(4i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_ACTIVE: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(5i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(3i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_SWAP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { pub CurrentPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, pub State: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE, pub NextPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(pub i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_CANCELED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(3i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_COMPLETED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(2i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_FAILED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(0i32); +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_PROCESSING: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(pub i32); +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_INVALID: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(0i32); +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NONE: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(1i32); +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NON_BLOCKING_QUORUM_ACKED: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(pub i32); +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_ESE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(1i32); +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_TSTORE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(2i32); +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_UNKNOWN: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { pub TransactionDrainTimeoutInSeconds: u32, pub SecondaryNotificationMode: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - pub EnableCopyNotificationPrefetch: windows::Win32::Foundation::BOOLEAN, + pub EnableCopyNotificationPrefetch: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { pub FullCopyMode: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { pub LogTruncationIntervalInMinutes: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - pub InlineReopen: windows::Win32::Foundation::BOOLEAN, + pub InlineReopen: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - pub EnableLsnCheck: windows::Win32::Foundation::BOOLEAN, + pub EnableLsnCheck: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { pub DatabaseRowCountEstimate: i64, pub DatabaseLogicalSizeEstimate: i64, @@ -7308,53 +4138,41 @@ pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { pub StatusDetails: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { pub ProviderKind: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND, pub MigrationStatus: *const FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { pub SerializationBlockSize: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC { pub Name: windows_core::PCWSTR, pub Value: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -7364,33 +4182,27 @@ impl Default for FABRIC_LOAD_METRIC { #[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC_INFORMATION { pub Name: windows_core::PCWSTR, - pub IsBalancedBefore: windows::Win32::Foundation::BOOLEAN, - pub IsBalancedAfter: windows::Win32::Foundation::BOOLEAN, + pub IsBalancedBefore: bool, + pub IsBalancedAfter: bool, pub DeviationBefore: f64, pub DeviationAfter: f64, pub BalancingThreshold: f64, pub Action: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC_INFORMATION_EX1 { pub ActivityThreshold: u32, pub ClusterCapacity: i64, pub ClusterLoad: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_INFORMATION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -7403,16 +4215,13 @@ pub struct FABRIC_LOAD_METRIC_INFORMATION_EX2 { pub NodeBufferPercentage: f64, pub BufferedCapacity: i64, pub RemainingBufferedCapacity: i64, - pub IsClusterCapacityViolation: windows::Win32::Foundation::BOOLEAN, + pub IsClusterCapacityViolation: bool, pub MinNodeLoadValue: i64, pub MinNodeLoadNodeId: FABRIC_NODE_ID, pub MaxNodeLoadValue: i64, pub MaxNodeLoadNodeId: FABRIC_NODE_ID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_INFORMATION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -7428,39 +4237,30 @@ pub struct FABRIC_LOAD_METRIC_INFORMATION_EX3 { pub MinimumNodeLoad: f64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_INFORMATION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub Items: *mut FABRIC_LOAD_METRIC_INFORMATION, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_INFORMATION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC_REPORT { pub Name: windows_core::PCWSTR, pub Value: u32, pub LastReportedUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -7472,153 +4272,162 @@ pub struct FABRIC_LOAD_METRIC_REPORT_EX1 { pub CurrentValue: f64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_REPORT_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOAD_METRIC_REPORT_LIST { pub Count: u32, pub Items: *mut FABRIC_LOAD_METRIC_REPORT, } -impl windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOAD_METRIC_REPORT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { pub NetworkAddressPrefix: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOCAL_NETWORK_DESCRIPTION { pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOCAL_NETWORK_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOCAL_NETWORK_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_LOCAL_NETWORK_INFORMATION { pub NetworkName: windows_core::PCWSTR, pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, pub NetworkStatus: FABRIC_NETWORK_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_LOCAL_NETWORK_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_LOCAL_NETWORK_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_LOCAL_STORE_KIND(pub i32); +pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); +pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(pub i32); +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_INVALID: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(0i32); +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_ROLLBACK: + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_MOVE_COST(pub i32); +pub const FABRIC_MOVE_COST_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); +pub const FABRIC_MOVE_COST_LOW: FABRIC_MOVE_COST = FABRIC_MOVE_COST(1i32); +pub const FABRIC_MOVE_COST_MEDIUM: FABRIC_MOVE_COST = FABRIC_MOVE_COST(2i32); +pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION2 { pub Kind: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(pub i32); +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(0i32); +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(1i32); +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { pub NodeName: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, - pub IgnoreConstraints: windows::Win32::Foundation::BOOLEAN, + pub IgnoreConstraints: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_PRIMARY_RESULT { pub NodeName: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_PRIMARY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_PRIMARY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION2 { pub Kind: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(pub i32); +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(0i32); +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(1i32); +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { pub CurrentNodeName: windows_core::PCWSTR, pub NewNodeName: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, - pub IgnoreConstraints: windows::Win32::Foundation::BOOLEAN, + pub IgnoreConstraints: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_MOVE_SECONDARY_RESULT { pub CurrentNodeName: windows_core::PCWSTR, pub NewNodeName: windows_core::PCWSTR, @@ -7626,61 +4435,49 @@ pub struct FABRIC_MOVE_SECONDARY_RESULT { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_MOVE_SECONDARY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_MOVE_SECONDARY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_PARTITION_INFORMATION { pub Id: windows_core::GUID, pub Name: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_PARTITION_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_PARTITION_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { pub PartitionCount: i32, pub Names: *const windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_PROPERTY { pub Metadata: *const FABRIC_NAMED_PROPERTY_METADATA, pub Value: *mut u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_PROPERTY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_PROPERTY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_PROPERTY_METADATA { pub PropertyName: windows_core::PCWSTR, pub TypeId: FABRIC_PROPERTY_TYPE_ID, @@ -7690,30 +4487,24 @@ pub struct FABRIC_NAMED_PROPERTY_METADATA { pub Name: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_PROPERTY_METADATA { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_PROPERTY_METADATA_EX1 { pub CustomTypeId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_PROPERTY_METADATA_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NAMED_REPARTITION_DESCRIPTION { pub NamesToAddCount: u32, pub NamesToAdd: *const windows_core::PCWSTR, @@ -7721,162 +4512,161 @@ pub struct FABRIC_NAMED_REPARTITION_DESCRIPTION { pub NamesToRemove: *const windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NAMED_REPARTITION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NAMED_REPARTITION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { pub NetworkName: windows_core::PCWSTR, pub ApplicationNameFilter: FABRIC_URI, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_DESCRIPTION { pub NetworkType: FABRIC_NETWORK_TYPE, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_INFORMATION { pub NetworkType: FABRIC_NETWORK_TYPE, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { pub NetworkName: windows_core::PCWSTR, pub NodeNameFilter: windows_core::PCWSTR, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { pub NodeName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_QUERY_DESCRIPTION { pub NetworkNameFilter: windows_core::PCWSTR, pub NetworkStatusFilter: u32, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NETWORK_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_INFORMATION, } -impl windows_core::TypeKind for FABRIC_NETWORK_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NETWORK_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NETWORK_STATUS(pub i32); +pub const FABRIC_NETWORK_STATUS_CREATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(2i32); +pub const FABRIC_NETWORK_STATUS_DELETING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(3i32); +pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NETWORK_STATUS_FILTER(pub i32); +pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(65535i32); +pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(2i32); +pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(0i32); +pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(4i32); +pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(16i32); +pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(1i32); +pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(8i32); +pub const FABRIC_NETWORK_STATUS_INVALID: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(0i32); +pub const FABRIC_NETWORK_STATUS_READY: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(1i32); +pub const FABRIC_NETWORK_STATUS_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NETWORK_TYPE(pub i32); +pub const FABRIC_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); +pub const FABRIC_NETWORK_TYPE_INVALID: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(0i32); +pub const FABRIC_NETWORK_TYPE_LOCAL: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODES_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -7885,16 +4675,13 @@ pub struct FABRIC_NODES_HEALTH_EVALUATION { pub MaxPercentUnhealthyNodes: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODES_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODES_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_CONTEXT { pub NodeName: windows_core::PCWSTR, pub NodeType: windows_core::PCWSTR, @@ -7903,106 +4690,120 @@ pub struct FABRIC_NODE_CONTEXT { pub NodeId: FABRIC_NODE_ID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_CONTEXT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_CONTEXT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NODE_DEACTIVATION_INTENT(pub i32); +pub const FABRIC_NODE_DEACTIVATION_INTENT_INVALID: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(0i32); +pub const FABRIC_NODE_DEACTIVATION_INTENT_PAUSE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(1i32); +pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_DATA: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(3i32); +pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_NODE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(4i32); +pub const FABRIC_NODE_DEACTIVATION_INTENT_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { pub EffectiveIntent: FABRIC_NODE_DEACTIVATION_INTENT, pub Status: FABRIC_NODE_DEACTIVATION_STATUS, pub Tasks: *const FABRIC_NODE_DEACTIVATION_TASK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { pub PendingSafetyChecks: *const FABRIC_SAFETY_CHECK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NODE_DEACTIVATION_STATUS(pub i32); +pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(3i32); +pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(0i32); +pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(2i32); +pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: + FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_DEACTIVATION_TASK { pub TaskId: *const FABRIC_NODE_DEACTIVATION_TASK_ID, pub Intent: FABRIC_NODE_DEACTIVATION_INTENT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_DEACTIVATION_TASK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_DEACTIVATION_TASK_ID { pub Id: windows_core::PCWSTR, pub Type: FABRIC_NODE_DEACTIVATION_TASK_TYPE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_ID { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_DEACTIVATION_TASK_ID { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_DEACTIVATION_TASK_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_DEACTIVATION_TASK, } -impl windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_DEACTIVATION_TASK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NODE_DEACTIVATION_TASK_TYPE(pub i32); +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INFRASTRUCTURE: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INVALID: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(0i32); +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH { pub NodeName: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub NodeName: windows_core::PCWSTR, @@ -8010,234 +4811,186 @@ pub struct FABRIC_NODE_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_REPORT { pub NodeName: windows_core::PCWSTR, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE { pub NodeName: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE_CHUNK { pub NodeName: windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub NodeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_ID { pub Low: u64, pub High: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_ID { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_ID { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_LOAD_INFORMATION { pub NodeName: windows_core::PCWSTR, pub NodeLoadMetricInformation: *const FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION { pub Name: windows_core::PCWSTR, pub NodeCapacity: i64, pub NodeLoad: i64, pub NodeRemainingCapacity: i64, - pub IsCapacityViolation: windows::Win32::Foundation::BOOLEAN, + pub IsCapacityViolation: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_METRIC_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { pub NodeBufferedCapacity: i64, pub NodeRemainingBufferedCapacity: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -8251,86 +5004,68 @@ pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { pub BufferedNodeCapacityRemaining: f64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub Items: *mut FABRIC_NODE_LOAD_METRIC_INFORMATION, } -impl windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_DESCRIPTION { pub NodeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX1 { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX2 { pub NodeStatusFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX3 { pub MaxResults: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM { pub NodeName: windows_core::PCWSTR, pub IpAddressOrFQDN: windows_core::PCWSTR, @@ -8340,151 +5075,121 @@ pub struct FABRIC_NODE_QUERY_RESULT_ITEM { pub NodeStatus: FABRIC_QUERY_NODE_STATUS, pub NodeUpTimeInSeconds: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub IsSeedNode: windows::Win32::Foundation::BOOLEAN, + pub IsSeedNode: bool, pub UpgradeDomain: windows_core::PCWSTR, pub FaultDomain: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { pub NodeId: FABRIC_NODE_ID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { pub NodeInstanceId: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { pub NodeDeactivationInfo: *const FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - pub IsStopped: windows::Win32::Foundation::BOOLEAN, + pub IsStopped: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { pub NodeDownTimeInSeconds: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { pub NodeUpAt: windows::Win32::Foundation::FILETIME, pub NodeDownAt: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_RESULT { pub NodeName: windows_core::PCWSTR, pub NodeInstance: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_START_DESCRIPTION { pub OperationId: windows_core::GUID, pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_START_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_START_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_STOP_DESCRIPTION { pub OperationId: windows_core::GUID, pub NodeName: windows_core::PCWSTR, @@ -8492,237 +5197,238 @@ pub struct FABRIC_NODE_STOP_DESCRIPTION { pub StopDurationInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_STOP_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_STOP_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_TRANSITION_DESCRIPTION { pub NodeTransitionType: FABRIC_NODE_TRANSITION_TYPE, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_TRANSITION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_TRANSITION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_TRANSITION_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_NODE_TRANSITION_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_TRANSITION_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_TRANSITION_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_TRANSITION_RESULT { pub ErrorCode: windows_core::HRESULT, pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_TRANSITION_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_TRANSITION_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NODE_TRANSITION_TYPE(pub i32); +pub const FABRIC_NODE_TRANSITION_TYPE_INVALID: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(0i32); +pub const FABRIC_NODE_TRANSITION_TYPE_START: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(1i32); +pub const FABRIC_NODE_TRANSITION_TYPE_STOP: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_NODE_UPGRADE_PHASE(pub i32); +pub const FABRIC_NODE_UPGRADE_PHASE_INVALID: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(0i32); +pub const FABRIC_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(3i32); +pub const FABRIC_NODE_UPGRADE_PHASE_PRE_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(1i32); +pub const FABRIC_NODE_UPGRADE_PHASE_UPGRADING: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_UPGRADE_PROGRESS { pub NodeName: windows_core::PCWSTR, pub UpgradePhase: FABRIC_NODE_UPGRADE_PHASE, pub PendingSafetyChecks: *const FABRIC_UPGRADE_SAFETY_CHECK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_UPGRADE_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_NODE_UPGRADE_PROGRESS_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_UPGRADE_PROGRESS, } -impl windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_NODE_UPGRADE_PROGRESS_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_OPERATION_DATA_BUFFER { pub BufferSize: u32, pub Buffer: *mut u8, } -impl windows_core::TypeKind for FABRIC_OPERATION_DATA_BUFFER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_OPERATION_DATA_BUFFER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_OPERATION_ID { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_OPERATION_ID { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_OPERATION_ID { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_OPERATION_METADATA { pub Type: FABRIC_OPERATION_TYPE, pub SequenceNumber: i64, pub AtomicGroupId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_OPERATION_METADATA { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_OPERATION_METADATA { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_OPERATION_TYPE(pub i32); +pub const FABRIC_OPERATION_TYPE_ATOMIC_GROUP_OPERATION: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(32i32); +pub const FABRIC_OPERATION_TYPE_COMMIT_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(64i32); +pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(16i32); +pub const FABRIC_OPERATION_TYPE_END_OF_STREAM: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(2i32); +pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(240i32); +pub const FABRIC_OPERATION_TYPE_INVALID: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(0i32); +pub const FABRIC_OPERATION_TYPE_NORMAL: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(1i32); +pub const FABRIC_OPERATION_TYPE_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(128i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { pub UpgradeState: FABRIC_UPGRADE_STATE, pub ProgressStatus: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { pub ConfigVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { pub Details: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PACKAGE_SHARING_POLICY { pub PackageName: windows_core::PCWSTR, pub Scope: FABRIC_PACKAGE_SHARING_POLICY_SCOPE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PACKAGE_SHARING_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PACKAGE_SHARING_POLICY_LIST { pub Count: u32, pub Items: *const FABRIC_PACKAGE_SHARING_POLICY, } -impl windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PACKAGE_SHARING_POLICY_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PACKAGE_SHARING_POLICY_SCOPE(pub i32); +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_ALL: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(1i32); +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CODE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(2i32); +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CONFIG: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(3i32); +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_DATA: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(4i32); +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationNameFilter: FABRIC_URI, - pub IncludeHealthState: windows::Win32::Foundation::BOOLEAN, + pub IncludeHealthState: bool, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PAGING_STATUS { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PAGING_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PAGING_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITIONS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -8731,46 +5437,37 @@ pub struct FABRIC_PARTITIONS_HEALTH_EVALUATION { pub MaxPercentUnhealthyPartitionsPerService: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITIONS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITIONS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_DATA_LOSS_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_DATA_LOSS_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_DATA_LOSS_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_DATA_LOSS_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, pub ErrorCode: windows_core::HRESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_DATA_LOSS_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH { pub PartitionId: windows_core::GUID, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -8778,16 +5475,13 @@ pub struct FABRIC_PARTITION_HEALTH { pub ReplicaHealthStates: *const FABRIC_REPLICA_HEALTH_STATE_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub PartitionId: windows_core::GUID, @@ -8795,44 +5489,35 @@ pub struct FABRIC_PARTITION_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, @@ -8840,508 +5525,509 @@ pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { pub ReplicasFilter: *const FABRIC_REPLICA_HEALTH_STATES_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_PARTITION_HEALTH_STATISTICS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_REPORT { pub PartitionId: windows_core::GUID, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE { pub PartitionId: windows_core::GUID, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK { pub PartitionId: windows_core::GUID, pub HealthState: FABRIC_HEALTH_STATE, pub ReplicaHealthStateChunks: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub PartitionIdFilter: windows_core::GUID, pub ReplicaFilters: *const FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: windows::Win32::Foundation::BOOLEAN, + pub ExcludeHealthStatistics: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); +pub const FABRIC_PARTITION_KEY_TYPE_INT64: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(2i32); +pub const FABRIC_PARTITION_KEY_TYPE_INVALID: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(0i32); +pub const FABRIC_PARTITION_KEY_TYPE_NONE: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(1i32); +pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_LOAD_INFORMATION { pub PartitionId: windows_core::GUID, pub PrimaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub SecondaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_LOAD_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_QUORUM_LOSS_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_QUORUM_LOSS_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, pub ErrorCode: windows_core::HRESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_QUORUM_LOSS_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_RESTART_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_RESTART_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_RESTART_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_RESTART_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_RESTART_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, pub ErrorCode: windows_core::HRESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_RESTART_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_RESTART_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_SAFETY_CHECK { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(7i32); +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(2i32); +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(6i32); +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(3i32); +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(4i32); +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(5i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PARTITION_SCHEME(pub i32); +pub const FABRIC_PARTITION_SCHEME_INVALID: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(0i32); +pub const FABRIC_PARTITION_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(3i32); +pub const FABRIC_PARTITION_SCHEME_SINGLETON: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(1i32); +pub const FABRIC_PARTITION_SCHEME_UNIFORM_INT64_RANGE: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PARTITION_SELECTOR { pub ServiceName: FABRIC_URI, pub PartitionSelectorType: FABRIC_PARTITION_SELECTOR_TYPE, pub PartitionKey: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PARTITION_SELECTOR { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PARTITION_SELECTOR { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PARTITION_SELECTOR_TYPE(pub i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(2i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(0i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_PARTITION_ID: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(4i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_RANDOM: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(5i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(1i32); +pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(3i32); +pub const FABRIC_PLACEMENT_POLICY_INVALID: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(0i32); +pub const FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { pub InvalidFaultDomain: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(5i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { pub PreferredPrimaryFaultDomain: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { pub RequiredFaultDomain: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PLACEMENT_POLICY_TYPE(pub i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, pub RemoteReplicators: *mut FABRIC_REMOTE_REPLICATOR_STATUS_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROPERTY_BATCH_OPERATION { pub Kind: FABRIC_PROPERTY_BATCH_OPERATION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROPERTY_BATCH_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROPERTY_BATCH_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PROPERTY_BATCH_OPERATION_KIND(pub i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_EXISTS: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(3i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_SEQUENCE: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(4i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_INVALID: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(0i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(1i32); +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); +pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); +pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); +pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PROPERTY_TYPE_ID(pub i32); +pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); +pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); +pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PROTECTION_LEVEL(pub i32); +pub const FABRIC_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = + FABRIC_PROTECTION_LEVEL(2i32); +pub const FABRIC_PROTECTION_LEVEL_NONE: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(0i32); +pub const FABRIC_PROTECTION_LEVEL_SIGN: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { pub CodeVersionFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { pub CodeVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { pub ConfigVersionFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { pub ConfigVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { pub BuildPath: windows_core::PCWSTR, - pub Async: windows::Win32::Foundation::BOOLEAN, + pub Async: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { pub Kind: FABRIC_PROVISION_APPLICATION_TYPE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { pub ApplicationPackageCleanupPolicy: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_PROVISION_APPLICATION_TYPE_KIND(pub i32); +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_EXTERNAL_STORE: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_IMAGE_STORE_PATH: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(1i32); +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: FABRIC_PROVISION_APPLICATION_TYPE_KIND = + FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, @@ -9349,47 +6035,187 @@ pub struct FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { pub PropertyCustomTypeId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_PUT_PROPERTY_OPERATION { pub PropertyName: windows_core::PCWSTR, pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, pub PropertyValue: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_PUT_PROPERTY_OPERATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_PUT_PROPERTY_OPERATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_NODE_STATUS(pub i32); +pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(5i32); +pub const FABRIC_QUERY_NODE_STATUS_DISABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(4i32); +pub const FABRIC_QUERY_NODE_STATUS_DOWN: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(2i32); +pub const FABRIC_QUERY_NODE_STATUS_ENABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(3i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_NODE_STATUS_FILTER(pub i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DEFAULT: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(0i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(16i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(8i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(2i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_ENABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(4i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(64i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(32i32); +pub const FABRIC_QUERY_NODE_STATUS_FILTER_UP: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(1i32); +pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(0i32); +pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(7i32); +pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(6i32); +pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_QUERY_PAGING_DESCRIPTION { pub ContinuationToken: windows_core::PCWSTR, pub MaxResults: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_QUERY_PAGING_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_QUERY_PAGING_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_REPLICATOR_OPERATION_NAME(pub i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CHANGEROLE: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(4i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CLOSE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(16i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_INVALID: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(0i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_NONE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(1i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ONDATALOSS: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(64i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_UPDATEEPOCH: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_WAITFORCATCHUP: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_SERVICE_OPERATION_NAME(pub i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CHANGEROLE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(4i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CLOSE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(8i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_INVALID: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(0i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_NONE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(1i32); +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_OPEN: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_SERVICE_PARTITION_STATUS(pub i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_INVALID: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(0i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_IN_QUORUM_LOSS: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_NOT_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(2i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS(pub i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DOWN: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(4i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DROPPED: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(5i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(pub i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_ALL: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DEFAULT: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(0i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DOWN: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(8i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DROPPED: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(16i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_INBUILD: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(1i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_READY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(4i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_STANDBY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INVALID: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(0i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_READY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(3i32); +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUERY_SERVICE_STATUS(pub i32); +pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(1i32); +pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(4i32); +pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(3i32); +pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(5i32); +pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(0i32); +pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_QUORUM_LOSS_MODE(pub i32); +pub const FABRIC_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(2i32); +pub const FABRIC_QUORUM_LOSS_MODE_INVALID: FABRIC_QUORUM_LOSS_MODE = FABRIC_QUORUM_LOSS_MODE(0i32); +pub const FABRIC_QUORUM_LOSS_MODE_QUORUM_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(1i32); +pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(7i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { pub PreviousConfigurationRole: FABRIC_REPLICA_ROLE, pub ReconfigurationPhase: FABRIC_RECONFIGURATION_PHASE, @@ -9397,16 +6223,43 @@ pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { pub ReconfigurationStartTimeUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_RECONFIGURATION_PHASE(pub i32); +pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(6i32); +pub const FABRIC_RECONFIGURATION_PHASE_INVALID: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(0i32); +pub const FABRIC_RECONFIGURATION_PHASE_NONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(1i32); +pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(3i32); +pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(5i32); +pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(4i32); +pub const FABRIC_RECONFIGURATION_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_RECONFIGURATION_TYPE(pub i32); +pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(2i32); +pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(0i32); +pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(4i32); +pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(3i32); +pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { pub AverageReceiveDurationMilliseconds: i64, pub AverageApplyDurationMilliseconds: i64, @@ -9414,247 +6267,233 @@ pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { pub ReceivedAndNotAppliedCount: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { pub CopyStreamAcknowledgementDetails: *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, pub ReplicationStreamAcknowledgementDetails: *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOTE_REPLICATOR_STATUS { pub ReplicaId: i64, pub LastAcknowledgementProcessedTimeUtc: windows::Win32::Foundation::FILETIME, pub LastReceivedReplicationSequenceNumber: i64, pub LastAppliedReplicationSequenceNumber: i64, - pub IsInBuild: windows::Win32::Foundation::BOOLEAN, + pub IsInBuild: bool, pub LastReceivedCopySequenceNumber: i64, pub LastAppliedCopySequenceNumber: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOTE_REPLICATOR_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOTE_REPLICATOR_STATUS_LIST { pub Count: u32, pub Items: *mut FABRIC_REMOTE_REPLICATOR_STATUS, } -impl windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub PartitionId: windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOVE_REPLICA_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - pub ForceRemove: windows::Win32::Foundation::BOOLEAN, + pub ForceRemove: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_APPROVE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, pub RepairTaskId: windows_core::PCWSTR, pub Version: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_APPROVE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_APPROVE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_CANCEL_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, pub RepairTaskId: windows_core::PCWSTR, pub Version: i64, - pub RequestAbort: windows::Win32::Foundation::BOOLEAN, + pub RequestAbort: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_CANCEL_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_CANCEL_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_DELETE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, pub RepairTaskId: windows_core::PCWSTR, pub Version: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_DELETE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_DELETE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_EXECUTOR_STATE { pub Executor: windows_core::PCWSTR, pub ExecutorData: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_EXECUTOR_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_EXECUTOR_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_IMPACT_DESCRIPTION { pub Kind: FABRIC_REPAIR_IMPACT_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_IMPACT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_IMPACT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_IMPACT_KIND(pub i32); +pub const FABRIC_REPAIR_IMPACT_KIND_INVALID: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(0i32); +pub const FABRIC_REPAIR_IMPACT_KIND_NODE: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_NODE_IMPACT { pub NodeName: windows_core::PCWSTR, pub ImpactLevel: FABRIC_REPAIR_NODE_IMPACT_LEVEL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_NODE_IMPACT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_NODE_IMPACT_LEVEL(pub i32); +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_INVALID: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(0i32); +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_NONE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(1i32); +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_DATA: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(3i32); +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_NODE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(4i32); +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_NODE_IMPACT_LIST { pub Count: u32, pub Items: *const FABRIC_REPAIR_NODE_IMPACT, } -impl windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_NODE_IMPACT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_RESULT_DESCRIPTION { pub ResultStatus: FABRIC_REPAIR_TASK_RESULT, pub ResultCode: windows_core::HRESULT, pub ResultDetails: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_RESULT_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_RESULT_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER { pub Kind: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_SCOPE_IDENTIFIER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_SCOPE_IDENTIFIER { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(pub i32); +pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); +pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TARGET_DESCRIPTION { pub Kind: FABRIC_REPAIR_TARGET_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TARGET_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TARGET_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TARGET_KIND(pub i32); +pub const FABRIC_REPAIR_TARGET_KIND_INVALID: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(0i32); +pub const FABRIC_REPAIR_TARGET_KIND_NODE: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK { pub Scope: *const FABRIC_REPAIR_SCOPE_IDENTIFIER, pub TaskId: windows_core::PCWSTR, @@ -9670,52 +6509,80 @@ pub struct FABRIC_REPAIR_TASK { pub History: *const FABRIC_REPAIR_TASK_HISTORY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_EX1 { - pub PerformPreparingHealthCheck: windows::Win32::Foundation::BOOLEAN, - pub PerformRestoringHealthCheck: windows::Win32::Foundation::BOOLEAN, + pub PerformPreparingHealthCheck: bool, + pub PerformRestoringHealthCheck: bool, pub PreparingHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, pub RestoringHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_FLAGS(pub i32); +pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(2i32); +pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(1i32); +pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(4i32); +pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = FABRIC_REPAIR_TASK_FLAGS(0i32); +pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(7i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_IN_PROGRESS: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_NOT_STARTED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(0i32); +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SUCCEEDED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(2i32); +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, pub RepairTaskId: windows_core::PCWSTR, pub Version: i64, pub Flags: u32, - pub PerformPreparingHealthCheck: windows::Win32::Foundation::BOOLEAN, - pub PerformRestoringHealthCheck: windows::Win32::Foundation::BOOLEAN, + pub PerformPreparingHealthCheck: bool, + pub PerformRestoringHealthCheck: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(pub i32); +pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_PREPARING_HEALTH_CHECK: + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(1i32); +pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_RESTORING_HEALTH_CHECK: + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(2i32); +pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_NONE: + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_HISTORY { pub CreatedUtcTimestamp: windows::Win32::Foundation::FILETIME, pub ClaimedUtcTimestamp: windows::Win32::Foundation::FILETIME, @@ -9726,16 +6593,13 @@ pub struct FABRIC_REPAIR_TASK_HISTORY { pub CompletedUtcTimestamp: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_HISTORY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { pub PreparingHealthCheckStartUtcTimestamp: windows::Win32::Foundation::FILETIME, pub PreparingHealthCheckEndUtcTimestamp: windows::Win32::Foundation::FILETIME, @@ -9743,30 +6607,24 @@ pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { pub RestoringHealthCheckEndUtcTimestamp: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_HISTORY_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_LIST { pub Count: u32, pub Items: *mut FABRIC_REPAIR_TASK, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, pub TaskIdFilter: windows_core::PCWSTR, @@ -9774,16 +6632,72 @@ pub struct FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { pub ExecutorFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_RESULT(pub i32); +pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(2i32); +pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(8i32); +pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(4i32); +pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(0i32); +pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(16i32); +pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_STATE(pub i32); +pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(8i32); +pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(2i32); +pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(64i32); +pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(1i32); +pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(16i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPAIR_TASK_STATE_FILTER(pub i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_ACTIVE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(63i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_ALL: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(127i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_APPROVED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(8i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_CLAIMED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(2i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(64i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(1i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_DEFAULT: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(0i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(16i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(4i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_READY_TO_EXECUTE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(24i32); +pub const FABRIC_REPAIR_TASK_STATE_FILTER_RESTORING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(32i32); +pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(0i32); +pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(4i32); +pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(32i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICAS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -9792,16 +6706,33 @@ pub struct FABRIC_REPLICAS_HEALTH_EVALUATION { pub MaxPercentUnhealthyReplicasPerPartition: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICAS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICAS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); +pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); +pub const FABRIC_REPLICATOR_COPY_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(128i32); +pub const FABRIC_REPLICATOR_COPY_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(256i32); +pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(65536i32); +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); +pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); +pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_QUEUE_STATUS { pub QueueUtilizationPercentage: u32, pub QueueMemorySize: i64, @@ -9811,22 +6742,41 @@ pub struct FABRIC_REPLICATOR_QUEUE_STATUS { pub LastSequenceNumber: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_QUEUE_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_QUEUE_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_MEMORY_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); +pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); +pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); +pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(8192i32); +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); +pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_SETTINGS { pub Flags: u32, pub RetryIntervalMilliseconds: u32, pub BatchAcknowledgementIntervalMilliseconds: u32, pub ReplicatorAddress: windows_core::PCWSTR, - pub RequireServiceAck: windows::Win32::Foundation::BOOLEAN, + pub RequireServiceAck: bool, pub InitialReplicationQueueSize: u32, pub MaxReplicationQueueSize: u32, pub InitialCopyQueueSize: u32, @@ -9834,46 +6784,37 @@ pub struct FABRIC_REPLICATOR_SETTINGS { pub SecurityCredentials: *const FABRIC_SECURITY_CREDENTIALS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_SETTINGS_EX1 { pub MaxReplicationQueueMemorySize: u32, - pub SecondaryClearAcknowledgedOperations: windows::Win32::Foundation::BOOLEAN, + pub SecondaryClearAcknowledgedOperations: bool, pub MaxReplicationMessageSize: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_SETTINGS_EX2 { - pub UseStreamFaultsAndEndOfStreamOperationAck: windows::Win32::Foundation::BOOLEAN, + pub UseStreamFaultsAndEndOfStreamOperationAck: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_SETTINGS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_SETTINGS_EX3 { pub InitialPrimaryReplicationQueueSize: u32, pub MaxPrimaryReplicationQueueSize: u32, @@ -9884,59 +6825,54 @@ pub struct FABRIC_REPLICATOR_SETTINGS_EX3 { pub PrimaryWaitForPendingQuorumsTimeoutMilliseconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_SETTINGS_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_SETTINGS_EX4 { pub ReplicatorListenAddress: windows_core::PCWSTR, pub ReplicatorPublishAddress: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_SETTINGS_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPLICATOR_SETTINGS_FLAGS(pub i32); +pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICATOR_STATUS_QUERY_RESULT { pub Role: FABRIC_REPLICA_ROLE, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub PartitionId: windows_core::GUID, @@ -9945,16 +6881,13 @@ pub struct FABRIC_REPLICA_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub ReplicaOrInstanceId: i64, @@ -9962,118 +6895,94 @@ pub struct FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK { pub ReplicaOrInstanceId: i64, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ReplicaOrInstanceIdFilter: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_INFORMATION { pub Id: i64, pub Role: FABRIC_REPLICA_ROLE, @@ -10083,107 +6992,117 @@ pub struct FABRIC_REPLICA_INFORMATION { pub CatchUpCapability: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_INFORMATION_EX1 { - pub MustCatchup: windows::Win32::Foundation::BOOLEAN, + pub MustCatchup: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_INFORMATION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_INFORMATION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_LOAD_INFORMATION { pub PartitionId: windows_core::GUID, pub ReplicaOrInstanceId: i64, pub LoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_LOAD_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPLICA_OPEN_MODE(pub i32); +pub const FABRIC_REPLICA_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(2i32); +pub const FABRIC_REPLICA_OPEN_MODE_INVALID: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(0i32); +pub const FABRIC_REPLICA_OPEN_MODE_NEW: FABRIC_REPLICA_OPEN_MODE = FABRIC_REPLICA_OPEN_MODE(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPLICA_ROLE(pub i32); +pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); +pub const FABRIC_REPLICA_ROLE_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); +pub const FABRIC_REPLICA_ROLE_NONE: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(1i32); +pub const FABRIC_REPLICA_ROLE_PRIMARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(2i32); +pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_SET_CONFIGURATION { pub ReplicaCount: u32, pub Replicas: *const FABRIC_REPLICA_INFORMATION, pub WriteQuorum: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_SET_CONFIGURATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_SET_CONFIGURATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_REPLICA_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(2i32); +pub const FABRIC_REPLICA_SET_QUORUM_INVALID: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPLICA_SET_QUORUM_MODE(pub i32); +pub const FABRIC_REPLICA_SET_WRITE_QUORUM: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_REPLICA_STATUS(pub i32); +pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); +pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_REPLICA_STATUS_QUERY_RESULT { pub Kind: FABRIC_SERVICE_REPLICA_KIND, pub Value: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_REPLICA_STATUS_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_REPLICA_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESOLVED_SERVICE_ENDPOINT { pub Address: windows_core::PCWSTR, pub Role: FABRIC_SERVICE_ENDPOINT_ROLE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_ENDPOINT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESOLVED_SERVICE_ENDPOINT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESOLVED_SERVICE_PARTITION { pub Info: FABRIC_SERVICE_PARTITION_INFORMATION, pub EndpointCount: u32, @@ -10191,16 +7110,13 @@ pub struct FABRIC_RESOLVED_SERVICE_PARTITION { pub ServiceName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_PARTITION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESOLVED_SERVICE_PARTITION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -10209,30 +7125,33 @@ pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { pub CodePackageInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { pub Kind: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(pub i32); +pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_INVALID: + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(0i32); +pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { pub NodeName: windows_core::PCWSTR, pub ApplicationName: FABRIC_URI, @@ -10241,121 +7160,122 @@ pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { pub CodePackageInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { pub ServicePackageActivationId: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 -{ - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_NODE_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_NODE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_NODE_DESCRIPTION2 { pub Kind: FABRIC_RESTART_NODE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_NODE_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - pub CreateFabricDump: windows::Win32::Foundation::BOOLEAN, + pub CreateFabricDump: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_RESTART_NODE_DESCRIPTION_KIND(pub i32); +pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_INVALID: FABRIC_RESTART_NODE_DESCRIPTION_KIND = + FABRIC_RESTART_NODE_DESCRIPTION_KIND(0i32); +pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_RESTART_NODE_DESCRIPTION_KIND = FABRIC_RESTART_NODE_DESCRIPTION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, - pub ShouldCreateFabricDump: windows::Win32::Foundation::BOOLEAN, + pub ShouldCreateFabricDump: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_NODE_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_NODE_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_RESTART_PARTITION_MODE(pub i32); +pub const FABRIC_RESTART_PARTITION_MODE_ALL_REPLICAS_OR_INSTANCES: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(1i32); +pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(0i32); +pub const FABRIC_RESTART_PARTITION_MODE_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RESTART_REPLICA_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub PartitionId: windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RESTART_REPLICA_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RESTART_REPLICA_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_ROLLING_UPGRADE_MODE(pub i32); +pub const FABRIC_ROLLING_UPGRADE_MODE_INVALID: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(0i32); +pub const FABRIC_ROLLING_UPGRADE_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(3i32); +pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_AUTO: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(1i32); +pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_MANUAL: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { pub FailureAction: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION, pub HealthCheckWaitDurationInSeconds: u32, @@ -10364,185 +7284,191 @@ pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { pub UpgradeDomainTimeoutInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { pub HealthCheckStableDurationInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { pub RollingUpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub ForceRestart: windows::Win32::Foundation::BOOLEAN, + pub ForceRestart: bool, pub UpgradeReplicaSetCheckTimeoutInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { pub MonitoringPolicy: *const FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, pub HealthPolicy: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - pub EnableDeltaHealthEvaluation: windows::Win32::Foundation::BOOLEAN, + pub EnableDeltaHealthEvaluation: bool, pub UpgradeHealthPolicy: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(pub i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_ENABLE_DELTAS: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1024i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FAILURE_ACTION: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(8i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FORCE_RESTART: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_RETRY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_STABLE: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(32i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_WAIT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_POLICY: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_NONE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(0i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_REPLICA_SET_CHECK_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_DOMAIN_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(256i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_HEALTH_POLICY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_MODE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_RUNAS_POLICY_DESCRIPTION { pub UserName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_RUNAS_POLICY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_RUNAS_POLICY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SAFETY_CHECK { pub Kind: FABRIC_SAFETY_CHECK_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SAFETY_CHECK_KIND(pub i32); +pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SAFETY_CHECK_LIST { pub Count: u32, pub Items: *const FABRIC_SAFETY_CHECK, } -impl windows_core::TypeKind for FABRIC_SAFETY_CHECK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SAFETY_CHECK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SCALING_MECHANISM { pub ScalingMechanismKind: FABRIC_SCALING_MECHANISM_KIND, pub ScalingMechanismDescription: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_MECHANISM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_MECHANISM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { pub MaximumPartitionCount: i32, pub MinimumPartitionCount: i32, pub ScaleIncrement: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = + FABRIC_SCALING_MECHANISM_KIND(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SCALING_MECHANISM_KIND(pub i32); +pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); +pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { pub MaximumInstanceCount: i32, pub MinimumInstanceCount: i32, pub ScaleIncrement: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SCALING_TRIGGER { pub ScalingTriggerKind: FABRIC_SCALING_TRIGGER_KIND, pub ScalingTriggerDescription: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_TRIGGER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_TRIGGER { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -10557,9 +7483,6 @@ pub struct FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { pub ScaleIntervalInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -10574,49 +7497,49 @@ pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { pub ScaleIntervalInSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - pub UseOnlyPrimaryLoad: windows::Win32::Foundation::BOOLEAN, + pub UseOnlyPrimaryLoad: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SCALING_TRIGGER_KIND(pub i32); +pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_PARTITION_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(1i32); +pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_SERVICE_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(2i32); +pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, pub LastReplicationOperationReceivedTimeUtc: windows::Win32::Foundation::FILETIME, - pub IsInBuild: windows::Win32::Foundation::BOOLEAN, + pub IsInBuild: bool, pub CopyQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, pub LastCopyOperationReceivedTimeUtc: windows::Win32::Foundation::FILETIME, pub LastAcknowledgementSentTimeUtc: windows::Win32::Foundation::FILETIME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECRET { pub Name: windows_core::PCWSTR, pub Version: windows_core::PCWSTR, @@ -10624,72 +7547,72 @@ pub struct FABRIC_SECRET { pub Kind: windows_core::PCWSTR, pub ContentType: windows_core::PCWSTR, } -impl windows_core::TypeKind for FABRIC_SECRET { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECRET { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECRET_LIST { pub Count: u32, pub Items: *mut FABRIC_SECRET, } -impl windows_core::TypeKind for FABRIC_SECRET_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECRET_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECRET_REFERENCE { pub Name: windows_core::PCWSTR, pub Version: windows_core::PCWSTR, } -impl windows_core::TypeKind for FABRIC_SECRET_REFERENCE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECRET_REFERENCE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECRET_REFERENCE_LIST { pub Count: u32, pub Items: *mut FABRIC_SECRET_REFERENCE, } -impl windows_core::TypeKind for FABRIC_SECRET_REFERENCE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECRET_REFERENCE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECURITY_CREDENTIALS { pub Kind: FABRIC_SECURITY_CREDENTIAL_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SECURITY_CREDENTIALS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECURITY_CREDENTIALS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SECURITY_CREDENTIAL_KIND(pub i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(3i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(255i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(0i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(2i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(1i32); +pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECURITY_GROUP_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Sid: windows_core::PCWSTR, @@ -10698,30 +7621,24 @@ pub struct FABRIC_SECURITY_GROUP_DESCRIPTION { pub DomainUserMembers: *const FABRIC_STRING_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECURITY_GROUP_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SECURITY_GROUP_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECURITY_USER_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Sid: windows_core::PCWSTR, @@ -10729,58 +7646,48 @@ pub struct FABRIC_SECURITY_USER_DESCRIPTION { pub ParentApplicationGroups: *const FABRIC_STRING_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECURITY_USER_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SECURITY_USER_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SECURITY_USER_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SECURITY_USER_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SEED_NODE_SAFETY_CHECK { pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SEED_NODE_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SEED_NODE_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SELECTED_PARTITION { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SELECTED_PARTITION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SELECTED_PARTITION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICES_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -10790,45 +7697,59 @@ pub struct FABRIC_SERVICES_HEALTH_EVALUATION { pub MaxPercentUnhealthyServices: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICES_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICES_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_CORRELATION_DESCRIPTION { pub ServiceName: FABRIC_URI, pub Scheme: FABRIC_SERVICE_CORRELATION_SCHEME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_CORRELATION_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_CORRELATION_SCHEME(pub i32); +pub const FABRIC_SERVICE_CORRELATION_SCHEME_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(1i32); +pub const FABRIC_SERVICE_CORRELATION_SCHEME_ALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(2i32); +pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(0i32); +pub const FABRIC_SERVICE_CORRELATION_SCHEME_NONALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_DESCRIPTION { pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_DESCRIPTION_KIND(pub i32); +pub const FABRIC_SERVICE_DESCRIPTION_KIND_INVALID: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(0i32); +pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(2i32); +pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_ENDPOINT_ROLE(pub i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceName: FABRIC_URI, @@ -10839,32 +7760,26 @@ pub struct FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { pub InitializationData: *mut u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_DESCRIPTION { pub Description: *mut FABRIC_SERVICE_DESCRIPTION, pub MemberCount: u32, pub MemberDescriptions: *mut FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceName: FABRIC_URI, @@ -10874,16 +7789,13 @@ pub struct FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { pub InitializationData: *mut u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { pub ServiceType: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, @@ -10893,208 +7805,166 @@ pub struct FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { pub ServiceType: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceNameFilter: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub Members: *mut FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { pub ApplicationTypeName: windows_core::PCWSTR, pub ApplicationTypeVersion: windows_core::PCWSTR, pub ServiceGroupTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { pub ServiceGroupMemberTypeDescription: *mut FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, pub ServiceManifestVersion: windows_core::PCWSTR, pub ServiceManifestName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { pub Description: *const FABRIC_SERVICE_TYPE_DESCRIPTION, pub Members: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, - pub UseImplicitFactory: windows::Win32::Foundation::BOOLEAN, + pub UseImplicitFactory: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { pub ServiceTypeName: windows_core::PCWSTR, pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { pub Description: *mut FABRIC_SERVICE_UPDATE_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH { pub ServiceName: FABRIC_URI, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -11102,16 +7972,13 @@ pub struct FABRIC_SERVICE_HEALTH { pub PartitionHealthStates: *const FABRIC_PARTITION_HEALTH_STATE_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub ServiceName: FABRIC_URI, @@ -11119,44 +7986,35 @@ pub struct FABRIC_SERVICE_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { pub ServiceName: FABRIC_URI, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, @@ -11164,164 +8022,137 @@ pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { pub PartitionsFilter: *const FABRIC_PARTITION_HEALTH_STATES_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_SERVICE_HEALTH_STATISTICS_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_REPORT { pub ServiceName: FABRIC_URI, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE { pub ServiceName: FABRIC_URI, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATES_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATES_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK { pub ServiceName: FABRIC_URI, pub HealthState: FABRIC_HEALTH_STATE, pub PartitionHealthStateChunks: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK, pub TotalCount: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ServiceNameFilter: FABRIC_URI, pub PartitionFilters: *const FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE_FILTER, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATE_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: windows::Win32::Foundation::BOOLEAN, + pub ExcludeHealthStatistics: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_KIND(pub i32); +pub const FABRIC_SERVICE_KIND_INVALID: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(0i32); +pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); +pub const FABRIC_SERVICE_KIND_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { pub Name: windows_core::PCWSTR, pub Weight: FABRIC_SERVICE_LOAD_METRIC_WEIGHT, @@ -11329,58 +8160,57 @@ pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { pub SecondaryDefaultLoad: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_LOAD_METRIC_WEIGHT(pub i32); +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_LOW: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(1i32); +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_MEDIUM: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(2i32); +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_NAME_QUERY_RESULT { pub ServiceName: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_RESULT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_NAME_QUERY_RESULT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_NOTIFICATION { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, @@ -11389,548 +8219,500 @@ pub struct FABRIC_SERVICE_NOTIFICATION { pub PartitionInfo: *mut FABRIC_SERVICE_PARTITION_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_NOTIFICATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { pub Name: FABRIC_URI, pub Flags: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(pub i32); +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NAME_PREFIX: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NONE: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(0i32); +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(pub i32); +pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); +pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_PARTITION_ACCESS_STATUS(pub i32); +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_GRANTED: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = + FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_INVALID: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = + FABRIC_SERVICE_PARTITION_ACCESS_STATUS(0i32); +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NOT_PRIMARY: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(3i32); +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NO_WRITE_QUORUM: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(4i32); +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_RECONFIGURATION_PENDING: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PARTITION_INFORMATION { pub Kind: FABRIC_SERVICE_PARTITION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PARTITION_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_PARTITION_KIND(pub i32); +pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(2i32); +pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(0i32); +pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(3i32); +pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { pub ServiceName: FABRIC_URI, pub PartitionIdFilter: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { pub Type: FABRIC_PLACEMENT_POLICY_TYPE, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_PLACEMENT_POLICY_LIST { pub PolicyCount: u32, pub Policies: *mut FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceNameFilter: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { pub ServiceTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { pub MaxResults: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_REPLICA_KIND(pub i32); +pub const FABRIC_SERVICE_REPLICA_KIND_INVALID: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(0i32); +pub const FABRIC_SERVICE_REPLICA_KIND_KEY_VALUE_STORE: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { pub PartitionId: windows_core::GUID, pub ReplicaIdOrInstanceIdFilter: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { pub ReplicaStatusFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { pub ContinuationToken: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(0i32); +pub const FABRIC_SERVICE_ROLE_STATEFUL_PRIMARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(2i32); +pub const FABRIC_SERVICE_ROLE_STATEFUL_SECONDARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(3i32); +pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_SCALING_POLICY { pub ServiceScalingPolicyTrigger: FABRIC_SCALING_TRIGGER, pub ServiceScalingPolicyMechanism: FABRIC_SCALING_MECHANISM, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_SCALING_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_SCALING_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { pub Name: windows_core::PCWSTR, pub Value: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY { pub MaxPercentUnhealthyServices: u8, pub MaxPercentUnhealthyPartitionsPerService: u8, pub MaxPercentUnhealthyReplicasPerPartition: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *mut FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { pub ServiceTypeName: windows_core::PCWSTR, pub ServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { pub ApplicationTypeName: windows_core::PCWSTR, pub ApplicationTypeVersion: windows_core::PCWSTR, pub ServiceTypeNameFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { pub ServiceTypeDescription: *mut FABRIC_SERVICE_TYPE_DESCRIPTION, pub ServiceManifestVersion: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { pub ServiceManifestName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: windows::Win32::Foundation::BOOLEAN, + pub IsServiceGroup: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM, } -impl windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(pub i32); +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_DISABLED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_INVALID: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(0i32); +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_NOT_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(2i32); +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SERVICE_UPDATE_DESCRIPTION { pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SERVICE_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SERVICE_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SINGLETON_PARTITION_INFORMATION { pub Id: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SINGLETON_PARTITION_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SINGLETON_PARTITION_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STARTED_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STARTED_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STARTED_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { pub OperationId: windows_core::GUID, pub ClusterConfigPath: windows_core::PCWSTR, - pub RollbackOnFailure: windows::Win32::Foundation::BOOLEAN, + pub RollbackOnFailure: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_CHAOS_DESCRIPTION { pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_CHAOS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_CHAOS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_NODE_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, @@ -11938,30 +8720,31 @@ pub struct FABRIC_START_NODE_DESCRIPTION { pub ClusterConnectionPort: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_NODE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_NODE_DESCRIPTION2 { pub Kind: FABRIC_START_NODE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_NODE_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_START_NODE_DESCRIPTION_KIND(pub i32); +pub const FABRIC_START_NODE_DESCRIPTION_KIND_INVALID: FABRIC_START_NODE_DESCRIPTION_KIND = + FABRIC_START_NODE_DESCRIPTION_KIND(0i32); +pub const FABRIC_START_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_START_NODE_DESCRIPTION_KIND = + FABRIC_START_NODE_DESCRIPTION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, @@ -11969,46 +8752,37 @@ pub struct FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { pub ClusterConnectionPort: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_NODE_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_NODE_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { pub OperationId: windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, pub DataLossMode: FABRIC_DATA_LOSS_MODE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { pub OperationId: windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, @@ -12016,32 +8790,26 @@ pub struct FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { pub QuorumLossDurationInMilliSeconds: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_PARTITION_RESTART_DESCRIPTION { pub OperationId: windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, pub RestartPartitionMode: FABRIC_RESTART_PARTITION_MODE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_PARTITION_RESTART_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_UPGRADE_DESCRIPTION { pub ClusterConfig: windows_core::PCWSTR, pub HealthCheckRetryTimeoutInSeconds: u32, @@ -12055,30 +8823,26 @@ pub struct FABRIC_START_UPGRADE_DESCRIPTION { pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_UPGRADE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_START_UPGRADE_DESCRIPTION_EX1 { pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATEFUL_SERVICE_CORRELATIONS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(128i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceName: FABRIC_URI, @@ -12094,109 +8858,100 @@ pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, pub MetricCount: u32, pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub HasPersistedState: windows::Win32::Foundation::BOOLEAN, + pub HasPersistedState: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub FailoverSettings: *mut FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - pub IsDefaultMoveCostSpecified: windows::Win32::Foundation::BOOLEAN, + pub IsDefaultMoveCostSpecified: bool, pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, pub ServiceDnsName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { pub ScalingPolicyCount: u32, pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { pub Flags: u32, pub ReplicaRestartWaitDurationSeconds: u32, pub QuorumLossWaitDurationSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { pub StandByReplicaKeepDurationSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(pub i32); +pub const FABRIC_STATEFUL_SERVICE_METRICS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(256i32); +pub const FABRIC_STATEFUL_SERVICE_MIN_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); +pub const FABRIC_STATEFUL_SERVICE_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); +pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, pub TargetReplicaSetSize: u32, @@ -12206,76 +8961,69 @@ pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub LastQuorumLossDurationInSeconds: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { pub PrimaryEpoch: FABRIC_EPOCH, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATEFUL_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); +pub const FABRIC_STATEFUL_SERVICE_POLICY_LIST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub ServiceTypeName: windows_core::PCWSTR, pub ServiceManifestVersion: windows_core::PCWSTR, - pub HasPersistedState: windows::Win32::Foundation::BOOLEAN, + pub HasPersistedState: bool, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: windows::Win32::Foundation::BOOLEAN, + pub IsServiceGroup: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATEFUL_SERVICE_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { pub PartitionId: windows_core::GUID, pub ReplicaId: i64, @@ -12283,76 +9031,61 @@ pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { pub PartitionId: windows_core::GUID, pub ReplicaId: i64, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { pub PartitionId: windows_core::GUID, pub ReplicaId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub ReplicaId: i64, pub ReplicaRole: FABRIC_REPLICA_ROLE, @@ -12363,48 +9096,61 @@ pub struct FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub LastInBuildDurationInSeconds: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); +pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_NONE: FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(0i32); +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(2i32); +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); +pub const FABRIC_STATEFUL_SERVICE_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); +pub const FABRIC_STATEFUL_SERVICE_TARGET_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { pub ServiceTypeName: windows_core::PCWSTR, pub PlacementConstraints: windows_core::PCWSTR, pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, - pub HasPersistedState: windows::Win32::Foundation::BOOLEAN, + pub HasPersistedState: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { pub Flags: u32, pub TargetReplicaSetSize: i32, @@ -12412,44 +9158,35 @@ pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { pub QuorumLossWaitDurationSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { pub StandByReplicaKeepDurationSeconds: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { pub MinReplicaSetSize: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { pub PlacementConstraints: windows_core::PCWSTR, pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, @@ -12459,30 +9196,24 @@ pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, pub RepartitionDescription: *mut core::ffi::c_void, @@ -12490,16 +9221,18 @@ pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); +pub const FABRIC_STATELESS_SERVICE_CORRELATIONS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION { pub ApplicationName: FABRIC_URI, pub ServiceName: FABRIC_URI, @@ -12516,75 +9249,63 @@ pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION { pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - pub IsDefaultMoveCostSpecified: windows::Win32::Foundation::BOOLEAN, + pub IsDefaultMoveCostSpecified: bool, pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, pub ServiceDnsName: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { pub ScalingPolicyCount: u32, pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATELESS_SERVICE_INSTANCE_COUNT: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { pub PartitionId: windows_core::GUID, pub InstanceId: i64, @@ -12592,76 +9313,61 @@ pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { pub PartitionId: windows_core::GUID, pub InstanceId: i64, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { pub PartitionId: windows_core::GUID, pub InstanceId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub InstanceId: i64, pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, @@ -12671,16 +9377,19 @@ pub struct FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub LastInBuildDurationInSeconds: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATELESS_SERVICE_METRICS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); +pub const FABRIC_STATELESS_SERVICE_MOVE_COST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); +pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, pub InstanceCount: u32, @@ -12688,16 +9397,18 @@ pub struct FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub PartitionStatus: FABRIC_QUERY_SERVICE_PARTITION_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATELESS_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); +pub const FABRIC_STATELESS_SERVICE_POLICY_LIST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { pub ServiceName: FABRIC_URI, pub ServiceTypeName: windows_core::PCWSTR, @@ -12705,91 +9416,76 @@ pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: windows::Win32::Foundation::BOOLEAN, + pub IsServiceGroup: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_STATELESS_SERVICE_SCALING_POLICY: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { pub ServiceTypeName: windows_core::PCWSTR, pub PlacementConstraints: windows_core::PCWSTR, pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, - pub UseImplicitHost: windows::Win32::Foundation::BOOLEAN, + pub UseImplicitHost: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { pub Flags: u32, pub InstanceCount: i32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { pub PlacementConstraints: windows_core::PCWSTR, pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, @@ -12799,30 +9495,24 @@ pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, pub RepartitionDescription: *mut core::ffi::c_void, @@ -12830,285 +9520,324 @@ pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STOPPED_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub Reason: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STOPPED_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STOPPED_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STOP_NODE_DESCRIPTION { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STOP_NODE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STOP_NODE_DESCRIPTION2 { pub Kind: FABRIC_STOP_NODE_DESCRIPTION_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STOP_NODE_DESCRIPTION2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_STOP_NODE_DESCRIPTION_KIND(pub i32); +pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_INVALID: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(0i32); +pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { pub NodeName: windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STOP_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STOP_NODE_STATUS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STOP_NODE_STATUS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STORE_BACKUP_INFO { pub BackupFolder: windows_core::PCWSTR, pub BackupOption: FABRIC_STORE_BACKUP_OPTION, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STORE_BACKUP_INFO { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STORE_BACKUP_INFO_EX1 { pub BackupChainId: windows_core::GUID, pub BackupIndex: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STORE_BACKUP_INFO_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_STORE_BACKUP_OPTION(pub i32); +pub const FABRIC_STORE_BACKUP_OPTION_FULL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(1i32); +pub const FABRIC_STORE_BACKUP_OPTION_INCREMENTAL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(2i32); +pub const FABRIC_STORE_BACKUP_OPTION_TRUNCATE_LOGS_ONLY: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STRING_LIST { pub Count: u32, pub Items: *const windows_core::PCWSTR, } -impl windows_core::TypeKind for FABRIC_STRING_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STRING_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_STRING_MAP { pub Count: u32, pub Items: *const FABRIC_APPLICATION_PARAMETER, } -impl windows_core::TypeKind for FABRIC_STRING_MAP { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_STRING_MAP { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { pub SystemServiceNameFilter: FABRIC_URI, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_TEST_COMMAND_LIST_DESCRIPTION { pub TestCommandStateFilter: FABRIC_TEST_COMMAND_STATE_FILTER, pub TestCommandTypeFilter: FABRIC_TEST_COMMAND_TYPE_FILTER, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_TEST_COMMAND_PROGRESS_STATE(pub i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_COMPLETED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(3i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FAULTED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(4i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_INVALID: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(0i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_ROLLING_BACK: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(2i32); +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_TEST_COMMAND_STATE_FILTER(pub i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(32i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_COMPLETED_SUCCESSFULLY: + FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(0i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_FAILED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(16i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(64i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_ROLLING_BACK: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(2i32); +pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_TEST_COMMAND_TYPE(pub i32); +pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(0i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_TEST_COMMAND_TYPE_FILTER(pub i32); +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(0i32); +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(1i32); +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(2i32); +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_RESTART: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(4i32); +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(1i32); +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(2i32); +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_RESTART_PARTITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(4i32); +pub const FABRIC_TEST_COMMAND_TYPE_START_NODE_TRANSITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(8i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_TEST_ERROR_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub Reason: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_TEST_ERROR_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_TEST_ERROR_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_TRANSACTION_ISOLATION_LEVEL(pub i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_DEFAULT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(0i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { pub PartitionCount: i32, pub LowKey: i64, pub HighKey: i64, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, pub UnplacedReplicaReasons: *const FABRIC_STRING_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UNPLACED_REPLICA_INFORMATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { pub Count: u32, pub Items: *const windows_core::PCWSTR, } -impl windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { pub ServiceName: FABRIC_URI, pub PartitionId: windows_core::GUID, - pub OnlyQueryPrimaries: windows::Win32::Foundation::BOOLEAN, + pub OnlyQueryPrimaries: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { pub ApplicationTypeName: windows_core::PCWSTR, pub ApplicationTypeVersion: windows_core::PCWSTR, - pub Async: windows::Win32::Foundation::BOOLEAN, + pub Async: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DESCRIPTION { pub CodeVersion: windows_core::PCWSTR, pub ConfigVersion: windows_core::PCWSTR, @@ -13116,16 +9845,13 @@ pub struct FABRIC_UPGRADE_DESCRIPTION { pub UpgradePolicyDescription: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -13137,16 +9863,13 @@ pub struct FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -13156,16 +9879,13 @@ pub struct FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { pub MaxPercentUnhealthyDeployedApplications: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { pub Description: windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -13175,60 +9895,79 @@ pub struct FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { pub MaxPercentUnhealthyNodes: u8, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_PROGRESS { pub UpgradeDomainName: windows_core::PCWSTR, pub NodeProgressList: *mut FABRIC_NODE_UPGRADE_PROGRESS_LIST, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_UPGRADE_DOMAIN_STATE(pub i32); +pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(3i32); +pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(0i32); +pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(2i32); +pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { pub Name: windows_core::PCWSTR, pub State: FABRIC_UPGRADE_DOMAIN_STATE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, } -impl windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_UPGRADE_FAILURE_REASON(pub i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(2i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(1i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(0i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_OVERALL_UPGRADE_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(4i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_PROCESSING_FAILURE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(5i32); +pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(3i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_UPGRADE_KIND(pub i32); +pub const FABRIC_UPGRADE_KIND_INVALID: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(0i32); +pub const FABRIC_UPGRADE_KIND_ROLLING: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(1i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { pub CurrentCodeVersion: windows_core::PCWSTR, pub CurrentManifestVersion: windows_core::PCWSTR, @@ -13237,30 +9976,38 @@ pub struct FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { pub PendingUpgradeType: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { pub PartitionId: windows_core::GUID, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(7i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(2i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(3i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(4i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(5i32); +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RESOURCE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_PROGRESS { pub UpgradeDescription: *const FABRIC_UPGRADE_DESCRIPTION, pub UpgradeState: FABRIC_UPGRADE_STATE, @@ -13273,16 +10020,13 @@ pub struct FABRIC_UPGRADE_PROGRESS { pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_PROGRESS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_PROGRESS_EX1 { pub StartTimestampUtc: windows::Win32::Foundation::FILETIME, pub FailureTimestampUtc: windows::Win32::Foundation::FILETIME, @@ -13290,66 +10034,75 @@ pub struct FABRIC_UPGRADE_PROGRESS_EX1 { pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_PROGRESS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_SAFETY_CHECK { pub Kind: FABRIC_UPGRADE_SAFETY_CHECK_KIND, pub Value: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_UPGRADE_SAFETY_CHECK_KIND(pub i32); +pub const FABRIC_UPGRADE_SAFETY_CHECK_KIND_INVALID: FABRIC_UPGRADE_SAFETY_CHECK_KIND = + FABRIC_UPGRADE_SAFETY_CHECK_KIND(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_SAFETY_CHECK_LIST { pub Count: u32, pub Items: *const FABRIC_UPGRADE_SAFETY_CHECK, } -impl windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_SAFETY_CHECK_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { fn default() -> Self { unsafe { core::mem::zeroed() } } } +pub const FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(1i32); +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_UPGRADE_STATE(pub i32); +pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); +pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(2i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(1i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(7i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(5i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(4i32); +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(3i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_UPGRADE_UPDATE_DESCRIPTION { pub UpgradeKind: FABRIC_UPGRADE_KIND, pub UpdateFlags: u32, pub UpgradePolicyDescription: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_UPGRADE_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } @@ -13368,41 +10121,32 @@ impl Default for FABRIC_URI { unsafe { core::mem::zeroed() } } } -impl windows_core::TypeKind for FABRIC_URI { - type TypeKind = windows_core::CopyType; -} #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_VALIDATION_FAILED_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub Reason: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_VALIDATION_FAILED_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_VALIDATION_FAILED_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_WAITING_EVENT { pub TimeStampUtc: windows::Win32::Foundation::FILETIME, pub Reason: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_WAITING_EVENT { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_WAITING_EVENT { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_WINDOWS_CREDENTIALS { pub RemoteSpn: windows_core::PCWSTR, pub RemoteIdentityCount: u32, @@ -13410,16 +10154,13 @@ pub struct FABRIC_WINDOWS_CREDENTIALS { pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_WINDOWS_CREDENTIALS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_WINDOWS_CREDENTIALS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_CREDENTIALS { pub AllowedCommonNameCount: u32, pub AllowedCommonNames: *const windows_core::PCWSTR, @@ -13430,16 +10171,13 @@ pub struct FABRIC_X509_CREDENTIALS { pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_CREDENTIALS { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_CREDENTIALS { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_CREDENTIALS2 { pub CertLoadPath: windows_core::PCWSTR, pub RemoteCertThumbprintCount: u32, @@ -13449,31 +10187,25 @@ pub struct FABRIC_X509_CREDENTIALS2 { pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_CREDENTIALS2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_CREDENTIALS2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_CREDENTIALS_EX1 { pub IssuerThumbprintCount: u32, pub IssuerThumbprints: *const windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_CREDENTIALS_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_CREDENTIALS_EX2 { pub RemoteCertThumbprintCount: u32, pub RemoteCertThumbprints: *const windows_core::PCWSTR, @@ -13482,130 +10214,121 @@ pub struct FABRIC_X509_CREDENTIALS_EX2 { pub FindValueSecondary: *mut core::ffi::c_void, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_CREDENTIALS_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_CREDENTIALS_EX3 { pub RemoteCertIssuerCount: u32, pub RemoteCertIssuers: *mut FABRIC_X509_ISSUER_NAME, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX3 { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_CREDENTIALS_EX3 { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_X509_FIND_TYPE(pub i32); +pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(12i32); +pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(1i32); +pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(0i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_ISSUER_NAME { pub Name: windows_core::PCWSTR, pub IssuerStoreCount: u32, pub IssuerStores: *const windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_ISSUER_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_ISSUER_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct FABRIC_X509_NAME { pub Name: windows_core::PCWSTR, pub IssuerCertThumbprint: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for FABRIC_X509_NAME { - type TypeKind = windows_core::CopyType; -} impl Default for FABRIC_X509_NAME { fn default() -> Self { unsafe { core::mem::zeroed() } } } +#[repr(transparent)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] +pub struct FABRIC_X509_STORE_LOCATION(pub i32); +pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(1i32); +pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(0i32); +pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(2i32); #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { pub ApplicationTypeNameFilter: windows_core::PCWSTR, pub MaxResults: i32, pub ContinuationToken: windows_core::PCWSTR, - pub ExcludeApplicationParameters: windows::Win32::Foundation::BOOLEAN, + pub ExcludeApplicationParameters: bool, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type TypeKind = windows_core::CopyType; -} impl Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { pub ApplicationTypeVersionFilter: windows_core::PCWSTR, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - type TypeKind = windows_core::CopyType; -} impl Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { pub ApplicationTypeDefinitionKindFilter: u32, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - type TypeKind = windows_core::CopyType; -} impl Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct TEST_COMMAND_QUERY_RESULT_ITEM { pub OperationId: windows_core::GUID, pub TestCommandState: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub TestCommandType: FABRIC_TEST_COMMAND_TYPE, pub Reserved: *mut core::ffi::c_void, } -impl windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_ITEM { - type TypeKind = windows_core::CopyType; -} impl Default for TEST_COMMAND_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { core::mem::zeroed() } } } #[repr(C)] -#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub struct TEST_COMMAND_QUERY_RESULT_LIST { pub Count: u32, pub Items: *mut core::ffi::c_void, } -impl windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_LIST { - type TypeKind = windows_core::CopyType; -} impl Default for TEST_COMMAND_QUERY_RESULT_LIST { fn default() -> Self { unsafe { core::mem::zeroed() } diff --git a/crates/libs/com/src/Microsoft/ServiceFabric/mod.rs b/crates/libs/com/src/Microsoft/ServiceFabric/mod.rs index 5b0a639f..9eaf07cd 100644 --- a/crates/libs/com/src/Microsoft/ServiceFabric/mod.rs +++ b/crates/libs/com/src/Microsoft/ServiceFabric/mod.rs @@ -1,9 +1,10 @@ -// ------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. -// ------------------------------------------------------------ +// Bindings generated by `windows-bindgen` 0.59.0 +#[cfg(feature = "ServiceFabric_FabricClient")] pub mod FabricClient; +#[cfg(feature = "ServiceFabric_FabricCommon")] pub mod FabricCommon; +#[cfg(feature = "ServiceFabric_FabricRuntime")] pub mod FabricRuntime; +#[cfg(feature = "ServiceFabric_FabricTypes")] pub mod FabricTypes; diff --git a/crates/libs/com/src/Microsoft/mod.rs b/crates/libs/com/src/Microsoft/mod.rs index 59abc16c..052e0458 100644 --- a/crates/libs/com/src/Microsoft/mod.rs +++ b/crates/libs/com/src/Microsoft/mod.rs @@ -1 +1,4 @@ +// Bindings generated by `windows-bindgen` 0.59.0 + +#[cfg(feature = "ServiceFabric")] pub mod ServiceFabric; diff --git a/crates/libs/com/src/lib.rs b/crates/libs/com/src/lib.rs index 5d411b66..3df63a87 100644 --- a/crates/libs/com/src/lib.rs +++ b/crates/libs/com/src/lib.rs @@ -3,9 +3,13 @@ // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ -#![doc(html_no_source)] -// extern crate windows; -#![allow(non_snake_case)] +#![allow( + non_snake_case, + non_camel_case_types, + non_upper_case_globals, + clippy::all +)] + pub mod Microsoft; // expose mod directly diff --git a/crates/libs/core/Cargo.toml b/crates/libs/core/Cargo.toml index 5cb9dbad..c6d8cb7d 100644 --- a/crates/libs/core/Cargo.toml +++ b/crates/libs/core/Cargo.toml @@ -40,7 +40,7 @@ tokio = { version = "1", features = ["sync" , "rt-multi-thread", "rt", "macros", # windows dep is only enabled on windows os. [target.'cfg(windows)'.dependencies.windows] -version = "0.58" +version = "0.59" features = [ "Win32_System_Kernel", # for debug api "Win32_System_Diagnostics_Debug_Extensions" @@ -56,4 +56,5 @@ version = "0.0.17" [dependencies.mssf-com] path = "../com" version = "0.0.17" -default-features = false \ No newline at end of file +default-features = false +features = ["ServiceFabric_FabricClient", "ServiceFabric_FabricCommon", "ServiceFabric_FabricTypes", "ServiceFabric_FabricRuntime"] \ No newline at end of file diff --git a/crates/libs/core/src/client/connection.rs b/crates/libs/core/src/client/connection.rs index 86398aea..6e434783 100644 --- a/crates/libs/core/src/client/connection.rs +++ b/crates/libs/core/src/client/connection.rs @@ -67,7 +67,7 @@ where { fn OnConnected( &self, - gw_info: Option<&IFabricGatewayInformationResult>, + gw_info: windows_core::Ref, ) -> windows_core::Result<()> { let info = GatewayInformationResult::from_com(gw_info.unwrap()); self.inner.on_connected(&info) @@ -75,7 +75,7 @@ where fn OnDisconnected( &self, - gw_info: Option<&IFabricGatewayInformationResult>, + gw_info: windows_core::Ref, ) -> windows_core::Result<()> { let info = GatewayInformationResult::from_com(gw_info.unwrap()); self.inner.on_disconnected(&info) diff --git a/crates/libs/core/src/client/notification.rs b/crates/libs/core/src/client/notification.rs index aff9c13e..3a9c2269 100644 --- a/crates/libs/core/src/client/notification.rs +++ b/crates/libs/core/src/client/notification.rs @@ -164,7 +164,7 @@ where { fn OnNotification( &self, - notification: Option<&IFabricServiceNotification>, + notification: windows_core::Ref, ) -> crate::Result<()> { let com = notification.unwrap(); let msg = ServiceNotification::from_com(com.to_owned()); diff --git a/crates/libs/core/src/lib.rs b/crates/libs/core/src/lib.rs index a7669a8c..7a075cb7 100644 --- a/crates/libs/core/src/lib.rs +++ b/crates/libs/core/src/lib.rs @@ -37,5 +37,3 @@ pub mod types; // re-export some windows types pub use windows_core::{Error, Interface, Result, WString, GUID, HRESULT, PCWSTR}; // Note cannot re-export windows_core::implement because the macro using it has hard coded mod name. - -pub use windows_core::Win32::Foundation::BOOLEAN; diff --git a/crates/libs/core/src/runtime/config.rs b/crates/libs/core/src/runtime/config.rs index b7a23048..f16304af 100644 --- a/crates/libs/core/src/runtime/config.rs +++ b/crates/libs/core/src/runtime/config.rs @@ -3,7 +3,6 @@ // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ -use crate::BOOLEAN; use crate::{error::FabricErrorCode, WString}; use mssf_com::{ FabricRuntime::IFabricConfigurationPackage, @@ -110,15 +109,15 @@ impl ConfigurationPackage { section_name: &WString, parameter_name: &WString, ) -> crate::Result<(WString, bool)> { - let mut is_encrypted: BOOLEAN = Default::default(); + let mut is_encrypted: u8 = Default::default(); let raw = unsafe { self.com.GetValue( section_name.as_pcwstr(), parameter_name.as_pcwstr(), - std::ptr::addr_of_mut!(is_encrypted.0), + std::ptr::addr_of_mut!(is_encrypted), ) }?; - Ok((WStringWrap::from(raw).into(), is_encrypted.as_bool())) + Ok((WStringWrap::from(raw).into(), is_encrypted != 0)) } pub fn decrypt_value(&self, encryptedvalue: &WString) -> windows_core::Result { @@ -197,8 +196,8 @@ impl From<&FABRIC_CONFIGURATION_PARAMETER> for ConfigurationParameter { }; Self { name: WStringWrap::from(value.Name).into(), - is_encrypted: value.IsEncrypted.as_bool(), - must_overrride: value.MustOverride.as_bool(), + is_encrypted: value.IsEncrypted, + must_overrride: value.MustOverride, value: WStringWrap::from(value.Value).into(), r#type: WStringWrap::from(raw1.Type).into(), } diff --git a/crates/libs/core/src/runtime/package_change/config.rs b/crates/libs/core/src/runtime/package_change/config.rs index 6bb7733a..5c24a4b4 100644 --- a/crates/libs/core/src/runtime/package_change/config.rs +++ b/crates/libs/core/src/runtime/package_change/config.rs @@ -44,8 +44,8 @@ where { fn OnPackageAdded( &self, - _source: Option<&mssf_com::FabricRuntime::IFabricCodePackageActivationContext>, - configpackage: Option<&mssf_com::FabricRuntime::IFabricConfigurationPackage>, + _source: windows_core::Ref, + configpackage: windows_core::Ref, ) { let new_package = ConfigurationPackage::from_com(configpackage.unwrap().clone()); let event = ConfigurationPackageChangeEvent::Addition { new_package }; @@ -54,8 +54,8 @@ where fn OnPackageRemoved( &self, - _source: Option<&mssf_com::FabricRuntime::IFabricCodePackageActivationContext>, - configpackage: Option<&mssf_com::FabricRuntime::IFabricConfigurationPackage>, + _source: windows_core::Ref, + configpackage: windows_core::Ref, ) { let previous_package = ConfigurationPackage::from_com(configpackage.unwrap().clone()); let event = ConfigurationPackageChangeEvent::Removal { previous_package }; @@ -64,9 +64,11 @@ where fn OnPackageModified( &self, - _source: Option<&mssf_com::FabricRuntime::IFabricCodePackageActivationContext>, - previousconfigpackage: Option<&mssf_com::FabricRuntime::IFabricConfigurationPackage>, - configpackage: Option<&mssf_com::FabricRuntime::IFabricConfigurationPackage>, + _source: windows_core::Ref, + previousconfigpackage: windows_core::Ref< + mssf_com::FabricRuntime::IFabricConfigurationPackage, + >, + configpackage: windows_core::Ref, ) { let new_package = ConfigurationPackage::from_com(configpackage.unwrap().clone()); let previous_package = diff --git a/crates/libs/core/src/runtime/stateful_bridge.rs b/crates/libs/core/src/runtime/stateful_bridge.rs index 1ffe7614..e99544c2 100644 --- a/crates/libs/core/src/runtime/stateful_bridge.rs +++ b/crates/libs/core/src/runtime/stateful_bridge.rs @@ -146,7 +146,7 @@ where { fn BeginOpen( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricReplicatorBridge::BeginOpen"); let inner = self.inner.clone(); @@ -161,7 +161,7 @@ where fn EndOpen( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { debug!("IFabricReplicatorBridge::EndOpen"); BridgeContext3::result(context)? @@ -172,7 +172,7 @@ where &self, epoch: *const FABRIC_EPOCH, role: FABRIC_REPLICA_ROLE, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let epoch2: Epoch = unsafe { epoch.as_ref().unwrap().into() }; @@ -190,7 +190,7 @@ where fn EndChangeRole( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricReplicatorBridge::EndChangeRole"); BridgeContext3::result(context)? @@ -200,7 +200,7 @@ where fn BeginUpdateEpoch( &self, epoch: *const FABRIC_EPOCH, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let epoch2: Epoch = unsafe { epoch.as_ref().unwrap().into() }; @@ -217,7 +217,7 @@ where fn EndUpdateEpoch( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricReplicatorBridge::BeginUpdateEpoch"); BridgeContext3::result(context)? @@ -225,7 +225,7 @@ where fn BeginClose( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricReplicatorBridge::BeginClose"); let inner = self.inner.clone(); @@ -235,7 +235,7 @@ where fn EndClose( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricReplicatorBridge::EndClose"); BridgeContext3::result(context)? @@ -316,16 +316,16 @@ where { fn BeginOpen( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { - unsafe { self.rplctr.BeginOpen(callback) } + unsafe { self.rplctr.BeginOpen(callback.as_ref()) } } fn EndOpen( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { - unsafe { self.rplctr.EndOpen(context) } + unsafe { self.rplctr.EndOpen(context.as_ref()) } } #[allow(clippy::not_unsafe_ptr_arg_deref)] @@ -333,46 +333,46 @@ where &self, epoch: *const FABRIC_EPOCH, role: FABRIC_REPLICA_ROLE, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { - unsafe { self.rplctr.BeginChangeRole(epoch, role, callback) } + unsafe { self.rplctr.BeginChangeRole(epoch, role, callback.as_ref()) } } fn EndChangeRole( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { - unsafe { self.rplctr.EndChangeRole(context) } + unsafe { self.rplctr.EndChangeRole(context.as_ref()) } } #[allow(clippy::not_unsafe_ptr_arg_deref)] fn BeginUpdateEpoch( &self, epoch: *const FABRIC_EPOCH, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { - unsafe { self.rplctr.BeginUpdateEpoch(epoch, callback) } + unsafe { self.rplctr.BeginUpdateEpoch(epoch, callback.as_ref()) } } fn EndUpdateEpoch( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { - unsafe { self.rplctr.EndUpdateEpoch(context) } + unsafe { self.rplctr.EndUpdateEpoch(context.as_ref()) } } fn BeginClose( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { - unsafe { self.rplctr.BeginClose(callback) } + unsafe { self.rplctr.BeginClose(callback.as_ref()) } } fn EndClose( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { - unsafe { self.rplctr.EndClose(context) } + unsafe { self.rplctr.EndClose(context.as_ref()) } } fn Abort(&self) { @@ -395,7 +395,7 @@ where { fn BeginOnDataLoss( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricPrimaryReplicatorBridge::BeginOnDataLoss"); let inner = self.inner.clone(); @@ -406,7 +406,7 @@ where fn EndOnDataLoss( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { debug!("IFabricPrimaryReplicatorBridge::EndOnDataLoss"); BridgeContext3::result(context)? @@ -428,7 +428,7 @@ where fn BeginWaitForCatchUpQuorum( &self, catchupmode: FABRIC_REPLICA_SET_QUORUM_MODE, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let catchupmode = catchupmode.into(); debug!( @@ -444,7 +444,7 @@ where fn EndWaitForCatchUpQuorum( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricPrimaryReplicatorBridge::BeginWaitForCatchUpQuorum"); BridgeContext3::result(context)? @@ -467,7 +467,7 @@ where fn BeginBuildReplica( &self, replica: *const FABRIC_REPLICA_INFORMATION, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let r = ReplicaInformation::from(unsafe { replica.as_ref().unwrap() }); @@ -486,7 +486,7 @@ where fn EndBuildReplica( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricPrimaryReplicatorBridge::EndBuildReplica"); BridgeContext3::result(context)? @@ -542,8 +542,8 @@ where fn BeginOpen( &self, openmode: FABRIC_REPLICA_OPEN_MODE, - partition: ::core::option::Option<&IFabricStatefulServicePartition>, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + partition: windows_core::Ref, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let rt_cp = self.rt.clone(); @@ -569,7 +569,7 @@ where fn EndOpen( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatefulReplicaBridge::EndOpen"); BridgeContext3::result(context)? @@ -578,7 +578,7 @@ where fn BeginChangeRole( &self, newrole: FABRIC_REPLICA_ROLE, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let newrole2: ReplicaRole = (&newrole).into(); @@ -597,7 +597,7 @@ where fn EndChangeRole( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatefulReplicaBridge::EndChangeRole"); BridgeContext3::result(context)? @@ -605,7 +605,7 @@ where fn BeginClose( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatefulReplicaBridge::BeginClose"); let inner = self.inner.clone(); @@ -615,7 +615,7 @@ where fn EndClose( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricStatefulReplicaBridge::EndClose"); BridgeContext3::result(context)? diff --git a/crates/libs/core/src/runtime/stateless_bridge.rs b/crates/libs/core/src/runtime/stateless_bridge.rs index 4ddeaa92..d807f7ee 100644 --- a/crates/libs/core/src/runtime/stateless_bridge.rs +++ b/crates/libs/core/src/runtime/stateless_bridge.rs @@ -123,8 +123,8 @@ where { fn BeginOpen( &self, - partition: ::core::option::Option<&IFabricStatelessServicePartition>, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + partition: windows_core::Ref, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatelessServiceInstanceBridge::BeginOpen"); let partition_cp = partition.unwrap().clone(); @@ -141,7 +141,7 @@ where fn EndOpen( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatelessServiceInstanceBridge::EndOpen"); BridgeContext3::result(context)? @@ -149,7 +149,7 @@ where fn BeginClose( &self, - callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { debug!("IFabricStatelessServiceInstanceBridge::BeginClose"); let inner = self.inner.clone(); @@ -159,7 +159,7 @@ where fn EndClose( &self, - context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { debug!("IFabricStatelessServiceInstanceBridge::EndClose"); BridgeContext3::result(context)? diff --git a/crates/libs/core/src/sync/bridge_context.rs b/crates/libs/core/src/sync/bridge_context.rs index 8e597b3e..a4252516 100644 --- a/crates/libs/core/src/sync/bridge_context.rs +++ b/crates/libs/core/src/sync/bridge_context.rs @@ -55,7 +55,9 @@ where /// Creates the context from callback, and returns a cancellation token that /// can be used in rust code, and the cancellation token is hooked into self, /// where Cancel() api cancels the operation. - pub fn make(callback: Option<&IFabricAsyncOperationCallback>) -> (Self, CancellationToken) { + pub fn make( + callback: windows_core::Ref, + ) -> (Self, CancellationToken) { let token = CancellationToken::new(); let ctx = Self::new(callback.unwrap().clone(), token.clone()); (ctx, token) @@ -104,7 +106,7 @@ where /// return type. /// Note that if T is of Result type, the current function return type is /// Result>, so unwrap is needed. - pub fn result(context: Option<&IFabricAsyncOperationContext>) -> crate::Result { + pub fn result(context: windows_core::Ref) -> crate::Result { let self_impl: &BridgeContext3 = unsafe { context.unwrap().as_impl() }; self_impl.consume_content() } @@ -147,15 +149,13 @@ where } impl IFabricAsyncOperationContext_Impl for BridgeContext3_Impl { - fn IsCompleted(&self) -> crate::BOOLEAN { - self.is_completed - .load(std::sync::atomic::Ordering::Relaxed) - .into() + fn IsCompleted(&self) -> bool { + self.is_completed.load(std::sync::atomic::Ordering::Relaxed) } // This always returns false because we defer all tasks in the background executuor. - fn CompletedSynchronously(&self) -> crate::BOOLEAN { - self.is_completed_synchronously.into() + fn CompletedSynchronously(&self) -> bool { + self.is_completed_synchronously } fn Callback(&self) -> crate::Result { diff --git a/crates/libs/core/src/sync/cancel.rs b/crates/libs/core/src/sync/cancel.rs index 0685da43..f93c6355 100644 --- a/crates/libs/core/src/sync/cancel.rs +++ b/crates/libs/core/src/sync/cancel.rs @@ -226,7 +226,7 @@ where let (tx, mut rx) = oneshot_channel(token); let callback = crate::sync::AwaitableCallback2::i_new(move |ctx| { - let res = end(ctx); + let res = end(ctx.as_ref()); tx.send(res); }); let ctx = begin(Some(&callback)); @@ -456,7 +456,7 @@ mod test { &self, delay: Duration, ignore_cancel: bool, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let (ctx, token) = BridgeContext3::make(callback); @@ -469,7 +469,7 @@ mod test { pub fn end_get_data_delay( &self, - context: ::core::option::Option<&IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result { BridgeContext3::result(context)? } @@ -478,7 +478,7 @@ mod test { &self, input: String, delay: Duration, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> crate::Result { let inner = self.inner.clone(); let (ctx, token) = BridgeContext3::make(callback); @@ -489,7 +489,7 @@ mod test { pub fn end_set_data_delay( &self, - context: ::core::option::Option<&IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> crate::Result<()> { BridgeContext3::result(context)? } @@ -508,6 +508,16 @@ mod test { } } + /// Converts option ref to windows ref for testing. + /// They have the same ABI. + /// Returned ref has the same lifetime as the opt. + fn option_to_ref(opt: Option<&T>) -> windows_core::Ref + where + T: windows_core::Interface, + { + unsafe { core::mem::transmute_copy(opt.unwrap()) } + } + // The test trait implementation impl IMyObj for MyObjProxy { async fn get_data_delay( @@ -519,8 +529,10 @@ mod test { let com1 = &self.com; let com2 = self.com.clone(); fabric_begin_end_proxy2( - move |callback| com1.begin_get_data_delay(delay, ignore_cancel, callback), - move |context| com2.end_get_data_delay(context), + move |callback| { + com1.begin_get_data_delay(delay, ignore_cancel, option_to_ref(callback)) + }, + move |context| com2.end_get_data_delay(option_to_ref(context)), token, ) .await? @@ -535,8 +547,8 @@ mod test { let com1 = &self.com; let com2 = self.com.clone(); fabric_begin_end_proxy2( - move |callback| com1.begin_set_data_delay(input, delay, callback), - move |context| com2.end_set_data_delay(context), + move |callback| com1.begin_set_data_delay(input, delay, option_to_ref(callback)), + move |context| com2.end_set_data_delay(option_to_ref(context)), token, ) .await? diff --git a/crates/libs/core/src/sync/mod.rs b/crates/libs/core/src/sync/mod.rs index e6481691..7efcf9c2 100644 --- a/crates/libs/core/src/sync/mod.rs +++ b/crates/libs/core/src/sync/mod.rs @@ -33,11 +33,8 @@ pub use cancel::*; // fabric code begins here -pub trait Callback: - FnOnce(::core::option::Option<&IFabricAsyncOperationContext>) + 'static -{ -} -impl) + 'static> Callback for T {} +pub trait Callback: FnOnce(windows_core::Ref) + 'static {} +impl) + 'static> Callback for T {} // TODO: rename. // Fabric Callback that wraps an arbitrary Fn closure. @@ -52,7 +49,7 @@ where impl IFabricAsyncOperationCallback_Impl for AwaitableCallback2_Impl { // notify the function has been invoked. - fn Invoke(&self, context: ::core::option::Option<&IFabricAsyncOperationContext>) { + fn Invoke(&self, context: windows_core::Ref) { let cb_opt = self.callback.take(); match cb_opt { Some(cb) => { @@ -125,7 +122,7 @@ mod async_tests { impl IFabricAsyncOperationCallback_Impl for AwaitableCallback_Impl { // notify the function has been invoked. - fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { + fn Invoke(&self, _context: windows_core::Ref) { let tx = self.tx.take(); let txx = tx.expect("tx is empty"); // This means invoke is called twice. txx.send(()).expect("fail to send"); @@ -301,7 +298,7 @@ mod async_tests { let com_cp = self.com.clone(); let callback = AwaitableCallback2::i_new(move |ctx| { - let res = unsafe { com_cp.EndGetNodeList(ctx) }; + let res = unsafe { com_cp.EndGetNodeList(ctx.as_ref()) }; tx.send(res); }); let ctx = unsafe { self.com.BeginGetNodeList(querydescription, 1000, &callback) }; diff --git a/crates/libs/core/src/sync/wait.rs b/crates/libs/core/src/sync/wait.rs index b982d5c1..45c28caf 100644 --- a/crates/libs/core/src/sync/wait.rs +++ b/crates/libs/core/src/sync/wait.rs @@ -48,7 +48,7 @@ impl WaitableCallback { impl IFabricAsyncOperationCallback_Impl for WaitableCallback_Impl { // notify the function has been invoked. - fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { + fn Invoke(&self, _context: windows_core::Ref) { //println!("WaitableCallback Invoke."); let (lock, cvar) = &*self.pair_; let mut started = lock.lock().unwrap(); @@ -92,12 +92,12 @@ impl AsyncContext { } impl IFabricAsyncOperationContext_Impl for AsyncContext_Impl { - fn IsCompleted(&self) -> crate::BOOLEAN { - crate::BOOLEAN::from(true) + fn IsCompleted(&self) -> bool { + true } - fn CompletedSynchronously(&self) -> crate::BOOLEAN { - crate::BOOLEAN::from(true) + fn CompletedSynchronously(&self) -> bool { + true } fn Callback(&self) -> crate::Result { diff --git a/crates/libs/core/src/types/client/node.rs b/crates/libs/core/src/types/client/node.rs index fc2d472c..d92c8a15 100644 --- a/crates/libs/core/src/types/client/node.rs +++ b/crates/libs/core/src/types/client/node.rs @@ -138,7 +138,7 @@ impl From<&FABRIC_NODE_QUERY_RESULT_ITEM> for Node { code_version: WStringWrap::from(raw.CodeVersion).into(), config_version: WStringWrap::from(raw.ConfigVersion).into(), node_up_time_in_seconds: raw.NodeUpTimeInSeconds, - is_seed_node: raw.IsSeedNode.as_bool(), + is_seed_node: raw.IsSeedNode, upgrade_domain: WStringWrap::from(raw.UpgradeDomain).into(), fault_domain: WStringWrap::from(windows_core::PCWSTR(raw.FaultDomain.0)).into(), node_instance_id: raw2.NodeInstanceId, diff --git a/crates/libs/core/src/types/runtime/health.rs b/crates/libs/core/src/types/runtime/health.rs index 781b0a32..203bdd47 100644 --- a/crates/libs/core/src/types/runtime/health.rs +++ b/crates/libs/core/src/types/runtime/health.rs @@ -46,7 +46,7 @@ impl From<&FABRIC_HEALTH_INFORMATION> for HealthInformation { state: HealthState::from(&value.State), description: WStringWrap::from(value.Description).into(), sequence_number: value.SequenceNumber, - remove_when_expired: value.RemoveWhenExpired.as_bool(), + remove_when_expired: value.RemoveWhenExpired, } } } @@ -61,7 +61,7 @@ impl From<&HealthInformation> for FABRIC_HEALTH_INFORMATION { State: (&value.state).into(), Description: PCWSTR(value.description.as_ptr()), SequenceNumber: value.sequence_number, - RemoveWhenExpired: value.remove_when_expired.into(), + RemoveWhenExpired: value.remove_when_expired, Reserved: std::ptr::null_mut(), } } @@ -75,7 +75,7 @@ pub struct HealthReportSendOption { impl From<&FABRIC_HEALTH_REPORT_SEND_OPTIONS> for HealthReportSendOption { fn from(value: &FABRIC_HEALTH_REPORT_SEND_OPTIONS) -> Self { Self { - immediate: value.Immediate.as_bool(), + immediate: value.Immediate, } } } @@ -83,7 +83,7 @@ impl From<&FABRIC_HEALTH_REPORT_SEND_OPTIONS> for HealthReportSendOption { impl From<&HealthReportSendOption> for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn from(value: &HealthReportSendOption) -> Self { Self { - Immediate: value.immediate.into(), + Immediate: value.immediate, Reserved: std::ptr::null_mut(), } } diff --git a/crates/libs/core/src/types/runtime/stateful.rs b/crates/libs/core/src/types/runtime/stateful.rs index 4d5ea131..a4441be9 100644 --- a/crates/libs/core/src/types/runtime/stateful.rs +++ b/crates/libs/core/src/types/runtime/stateful.rs @@ -221,7 +221,7 @@ impl From<&FABRIC_REPLICA_INFORMATION> for ReplicaInformation { let mut must_catchup = false; if !ex1.is_null() { if let Some(ex1ref) = unsafe { ex1.as_ref() } { - must_catchup = ex1ref.MustCatchup.as_bool(); + must_catchup = ex1ref.MustCatchup; } } ReplicaInformation { @@ -251,7 +251,7 @@ impl ReplicaInformation { Reserved: std::ptr::null_mut(), }; let ex1 = FABRIC_REPLICA_INFORMATION_EX1 { - MustCatchup: self.must_catch_up.into(), + MustCatchup: self.must_catch_up, Reserved: std::ptr::null_mut(), }; (info, ex1) @@ -302,7 +302,7 @@ mod test { // caller needs to stitch the reserved ptr. fn create_test_data(id: i64) -> (FABRIC_REPLICA_INFORMATION, FABRIC_REPLICA_INFORMATION_EX1) { let ex1 = FABRIC_REPLICA_INFORMATION_EX1 { - MustCatchup: true.into(), + MustCatchup: true, Reserved: std::ptr::null_mut(), }; let info = FABRIC_REPLICA_INFORMATION { diff --git a/crates/libs/core/src/types/runtime/store.rs b/crates/libs/core/src/types/runtime/store.rs index a2bb48d7..1145535d 100644 --- a/crates/libs/core/src/types/runtime/store.rs +++ b/crates/libs/core/src/types/runtime/store.rs @@ -37,7 +37,7 @@ impl ReplicatorSettings { BatchAcknowledgementIntervalMilliseconds: self .batch_acknowledgement_interval_milliseconds, ReplicatorAddress: PCWSTR::from_raw(self.replicator_address.as_ptr()), - RequireServiceAck: self.require_service_ack.into(), + RequireServiceAck: self.require_service_ack, InitialReplicationQueueSize: self.initial_replication_queue_size, MaxReplicationQueueSize: self.max_replication_queue_size, InitialCopyQueueSize: self.initial_copy_queue_size, diff --git a/crates/libs/pal/Cargo.toml b/crates/libs/pal/Cargo.toml index cd0fa288..f3872118 100644 --- a/crates/libs/pal/Cargo.toml +++ b/crates/libs/pal/Cargo.toml @@ -18,4 +18,4 @@ path = "src/lib.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -windows-core = "0.58" \ No newline at end of file +windows-core = "0.59" \ No newline at end of file diff --git a/crates/libs/pal/src/Win32.rs b/crates/libs/pal/src/Win32.rs index 8fee9320..f60b609b 100644 --- a/crates/libs/pal/src/Win32.rs +++ b/crates/libs/pal/src/Win32.rs @@ -4,30 +4,6 @@ // ------------------------------------------------------------ pub mod Foundation { - #[repr(transparent)] - #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)] - pub struct BOOLEAN(pub u8); - - impl windows_core::TypeKind for BOOLEAN { - type TypeKind = windows_core::CopyType; - } - - impl BOOLEAN { - #[inline] - pub fn as_bool(&self) -> bool { - self.0 != 0 - } - } - - impl From for BOOLEAN { - fn from(value: bool) -> Self { - match value { - true => Self(1), - false => Self(0), - } - } - } - #[repr(C)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub struct FILETIME { @@ -38,6 +14,7 @@ pub mod Foundation { type TypeKind = windows_core::CopyType; } + /// TODO: windows-bindgen needs to remap this to regular bool. #[must_use] #[repr(transparent)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/libs/pal/src/lib.rs b/crates/libs/pal/src/lib.rs index 60de26b7..06d64b01 100644 --- a/crates/libs/pal/src/lib.rs +++ b/crates/libs/pal/src/lib.rs @@ -15,10 +15,10 @@ pub mod imp { pub use windows_core::imp::*; } pub use windows_core::{ - from_raw_borrowed, implement, AsImpl, ComObject, ComObjectInner, ComObjectInterface, CopyType, - Error, IInspectable, IInspectable_Vtbl, IUnknown, IUnknownImpl, IUnknown_Vtbl, Interface, - InterfaceRef, OutParam, Param, ParamValue, Result, RuntimeName, RuntimeType, Type, TypeKind, - DYNAMIC_CAST_IID, GUID, HRESULT, + implement, AsImpl, ComObject, ComObjectInner, ComObjectInterface, CopyType, Error, + IInspectable, IInspectable_Vtbl, IUnknown, IUnknownImpl, IUnknown_Vtbl, Interface, + InterfaceRef, OutParam, OutRef, Param, ParamValue, Ref, Result, RuntimeName, RuntimeType, + StaticComObject, Type, TypeKind, DYNAMIC_CAST_IID, GUID, HRESULT, }; // provide other implemenations missing for linux diff --git a/crates/samples/echomain-stateful/src/app.rs b/crates/samples/echomain-stateful/src/app.rs index d932f0ef..3667c516 100644 --- a/crates/samples/echomain-stateful/src/app.rs +++ b/crates/samples/echomain-stateful/src/app.rs @@ -112,10 +112,10 @@ impl AppFabricReplicator { impl IFabricReplicator_Impl for AppFabricReplicator_Impl { fn BeginOpen( &self, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> mssf_core::Result { info!("AppFabricReplicator::BeginOpen"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) @@ -123,7 +123,7 @@ impl IFabricReplicator_Impl for AppFabricReplicator_Impl { fn EndOpen( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> mssf_core::Result { info!("AppFabricReplicator::EndOpen"); let addr = echo::get_addr(self.port_, self.hostname_.clone()); @@ -136,10 +136,10 @@ impl IFabricReplicator_Impl for AppFabricReplicator_Impl { &self, _epoch: *const FABRIC_EPOCH, _role: FABRIC_REPLICA_ROLE, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> mssf_core::Result { info!("AppFabricReplicator::BeginChangeRole"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) @@ -147,7 +147,7 @@ impl IFabricReplicator_Impl for AppFabricReplicator_Impl { fn EndChangeRole( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> mssf_core::Result<()> { info!("AppFabricReplicator::EndChangeRole"); Ok(()) @@ -156,34 +156,34 @@ impl IFabricReplicator_Impl for AppFabricReplicator_Impl { fn BeginUpdateEpoch( &self, _epoch: *const FABRIC_EPOCH, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> mssf_core::Result { info!("AppFabricReplicator::BeginUpdateEpoch"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) } fn EndUpdateEpoch( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result<()> { info!("AppFabricReplicator::EndUpdateEpoch"); Ok(()) } fn BeginClose( &self, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppFabricReplicator::BeginClose"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) } fn EndClose( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result<()> { info!("AppFabricReplicator::EndClose"); Ok(()) @@ -207,17 +207,17 @@ impl IFabricReplicator_Impl for AppFabricReplicator_Impl { impl IFabricPrimaryReplicator_Impl for AppFabricReplicator_Impl { fn BeginOnDataLoss( &self, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppFabricReplicator::BeginOnDataLoss"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) } fn EndOnDataLoss( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppFabricReplicator::EndOnDataLoss"); let v = 0; @@ -234,17 +234,17 @@ impl IFabricPrimaryReplicator_Impl for AppFabricReplicator_Impl { fn BeginWaitForCatchUpQuorum( &self, _catchupmode: FABRIC_REPLICA_SET_QUORUM_MODE, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppFabricReplicator::BeginWaitForCatchUpQuorum"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) } fn EndWaitForCatchUpQuorum( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result<()> { info!("AppFabricReplicator::EndWaitForCatchUpQuorum"); Ok(()) @@ -259,17 +259,17 @@ impl IFabricPrimaryReplicator_Impl for AppFabricReplicator_Impl { fn BeginBuildReplica( &self, _replica: *const FABRIC_REPLICA_INFORMATION, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppFabricReplicator::BeginBuildReplica"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) } fn EndBuildReplica( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result<()> { info!("AppFabricReplicator::EndBuildReplica"); Ok(()) @@ -311,8 +311,8 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn BeginOpen( &self, openmode: FABRIC_REPLICA_OPEN_MODE, - partition: ::core::option::Option<&IFabricStatefulServicePartition>, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + partition: windows_core::Ref, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("echo_replica::BeginOpen"); @@ -326,7 +326,7 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { let info = unsafe { p.GetPartitionInfo() }.expect("getpartition info failed"); info!("AppInstance::BeginOpen partition kind {:#?}", info); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; @@ -346,16 +346,10 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn EndOpen( &self, - context: ::core::option::Option<&IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppInstance::EndOpen"); - let completed = unsafe { - context - .as_ref() - .expect("not ctx") - .CompletedSynchronously() - .as_bool() - }; + let completed = unsafe { context.as_ref().expect("not ctx").CompletedSynchronously() }; if !completed { info!("AppInstance::EndOpen callback not completed"); } @@ -365,7 +359,7 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn BeginClose( &self, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppInstance::BeginClose"); @@ -395,7 +389,7 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { info!("AppInstance:: sender is None"); } - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) @@ -403,16 +397,10 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn EndClose( &self, - context: ::core::option::Option<&IFabricAsyncOperationContext>, + context: windows_core::Ref, ) -> ::mssf_core::Result<()> { info!("AppInstance::EndClose"); - let completed = unsafe { - context - .as_ref() - .expect("not ctx") - .CompletedSynchronously() - .as_bool() - }; + let completed = unsafe { context.as_ref().expect("not ctx").CompletedSynchronously() }; if !completed { info!("AppInstance::EndClose callback not completed"); } @@ -426,10 +414,10 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn BeginChangeRole( &self, _newrole: FABRIC_REPLICA_ROLE, - callback: ::core::option::Option<&IFabricAsyncOperationCallback>, + callback: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppInstance::BeginChangeRole"); - let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback).into(); + let ctx: IFabricAsyncOperationContext = AsyncContext::new(callback.as_ref()).into(); // invoke callback right away unsafe { ctx.Callback().expect("cannot get callback").Invoke(&ctx) }; Ok(ctx) @@ -437,7 +425,7 @@ impl IFabricStatefulServiceReplica_Impl for AppInstance_Impl { fn EndChangeRole( &self, - _context: ::core::option::Option<&IFabricAsyncOperationContext>, + _context: windows_core::Ref, ) -> ::mssf_core::Result { info!("AppInstance::EndChangeRole"); let addr = echo::get_addr(self.port_, self.hostname_.clone()); diff --git a/crates/tools/api/Cargo.toml b/crates/tools/api/Cargo.toml index 5ba4ea3d..33a7ab2d 100644 --- a/crates/tools/api/Cargo.toml +++ b/crates/tools/api/Cargo.toml @@ -5,4 +5,4 @@ edition = "2018" publish = false [dependencies] -windows-bindgen = "0.58" +windows-bindgen.workspace = true diff --git a/crates/tools/api/src/main.rs b/crates/tools/api/src/main.rs index 83fb8d37..5b764f51 100644 --- a/crates/tools/api/src/main.rs +++ b/crates/tools/api/src/main.rs @@ -2,48 +2,35 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ -use std::{ - fs::{self, File}, - io::{self, BufRead, Write}, -}; +use std::fs::{self}; -use windows_bindgen::{bindgen, Result}; +use windows_bindgen::bindgen; -fn main() -> Result<()> { +fn main() { let winmd = "./build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd"; // create output dir if not exist fs::create_dir_all("crates/libs/com/src/Microsoft/ServiceFabric/").unwrap(); - // Generate FabricTypes + { - let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricTypes/mod.rs"; - let log = bindgen([ + let out_file = "crates/libs/com/"; + + let args = vec![ "--in", winmd, - "--out", - out_file, - "--filter", - "Microsoft.ServiceFabric.FabricTypes", // include fabric types - "--config", - "implement", - ])?; - println!("{}", log); - // TODO: need to modify the generated files. - let mut lines = read_file_as_lines(out_file); - remove_namespace(&mut lines, "pub mod ServiceFabric "); - remove_namespace(&mut lines, "pub mod FabricTypes "); - write_content(out_file, lines); - } - // Generate FabricCommon - { - let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricCommon/mod.rs"; - let log = bindgen([ "--in", - winmd, + "default", "--out", out_file, - // include types + "--package", + "--no-allow", + "--reference", + "windows,skip-root,Windows", "--filter", - "Microsoft.ServiceFabric.FabricCommon", + ]; + + let filter_types = vec!["Microsoft.ServiceFabric.FabricTypes"]; + let filter_common = vec![ + "Microsoft.ServiceFabric.FabricCommon", // include fabric types // exclude functions "!Microsoft.ServiceFabric.FabricCommon.FabricDecryptText", "!Microsoft.ServiceFabric.FabricCommon.FabricDecryptValue", @@ -51,24 +38,9 @@ fn main() -> Result<()> { "!Microsoft.ServiceFabric.FabricCommon.FabricEncryptText2", "!Microsoft.ServiceFabric.FabricCommon.FabricEncryptValue", "!Microsoft.ServiceFabric.FabricCommon.FabricGetLastErrorMessage", - "--config", - "implement", - ])?; - println!("{}", log); - let mut lines = read_file_as_lines(out_file); - remove_namespace(&mut lines, "pub mod ServiceFabric"); - remove_namespace(&mut lines, "pub mod FabricCommon"); - write_content(out_file, lines); - } - // Generate FabricRuntime - { - let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricRuntime/mod.rs"; - let log = bindgen([ - "--in", - winmd, - "--out", - out_file, - "--filter", + ]; + + let filter_runtime = vec![ "Microsoft.ServiceFabric.FabricRuntime", // include fabric types // exclude functions "!Microsoft.ServiceFabric.FabricRuntime.FabricBeginCreateRuntime", @@ -91,25 +63,9 @@ fn main() -> Result<()> { "!Microsoft.ServiceFabric.FabricRuntime.FabricLoadEseLocalStoreSettings", "!Microsoft.ServiceFabric.FabricRuntime.FabricLoadReplicatorSettings", "!Microsoft.ServiceFabric.FabricRuntime.FabricLoadSecurityCredentials", - "--config", - "implement", - ])?; - println!("{}", log); - let mut lines = read_file_as_lines(out_file); - remove_namespace(&mut lines, "pub mod ServiceFabric"); - remove_namespace(&mut lines, "pub mod FabricRuntime"); - write_content(out_file, lines); - } + ]; - // Generate FabricClient - { - let out_file = "crates/libs/com/src/Microsoft/ServiceFabric/FabricClient/mod.rs"; - let log = bindgen([ - "--in", - winmd, - "--out", - out_file, - "--filter", + let filter_client = vec![ "Microsoft.ServiceFabric.FabricClient", // include fabric types // exclude functions "!Microsoft.ServiceFabric.FabricClient.FabricCreateClient", @@ -120,38 +76,14 @@ fn main() -> Result<()> { "!Microsoft.ServiceFabric.FabricClient.FabricCreateLocalClient3", "!Microsoft.ServiceFabric.FabricClient.FabricCreateLocalClient4", "!Microsoft.ServiceFabric.FabricClient.FabricGetDefaultRollingUpgradeMonitoringPolicy", - "--config", - "implement", - ])?; - println!("{}", log); - let mut lines = read_file_as_lines(out_file); - remove_namespace(&mut lines, "pub mod ServiceFabric"); - remove_namespace(&mut lines, "pub mod FabricClient"); - write_content(out_file, lines); - } - Ok(()) -} - -fn read_file_as_lines(path: &str) -> Vec { - let r = File::open(path).unwrap(); - let reader = io::BufReader::new(r); - // process each line and skip the lines targeted - reader.lines().map(|x| x.unwrap()).collect::>() -} + ]; -fn remove_namespace(lines: &mut Vec, skip_str: &str) { - lines.retain(|line| { - if line.contains(skip_str) { - return false; - } - true - }); - lines.pop(); -} - -fn write_content(path: &str, lines: Vec) { - File::create(path) - .unwrap() - .write_all(lines.join("\n").as_bytes()) - .unwrap(); + bindgen( + args.into_iter() + .chain(filter_types) + .chain(filter_common) + .chain(filter_runtime) + .chain(filter_client), + ); + } }